:root{color-scheme:light;--ink:#132b2a;--muted:#617270;--teal:#073c3a;--teal2:#0d5954;--cream:#fff9ec;--paper:#fffdf8;--coral:#f36f4d;--yellow:#f4c84c;--line:#d7e0dc;--shadow:0 18px 50px rgba(7,60,58,.12)}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;color:var(--ink);background:var(--paper);font-family:"Hiragino Kaku Gothic ProN","Yu Gothic",Meiryo,system-ui,sans-serif;font-size:16px;line-height:1.7}button,input{font:inherit}button{cursor:pointer}
.topbar{position:sticky;z-index:20;top:0;height:68px;padding:0 clamp(20px,5vw,72px);display:flex;align-items:center;justify-content:space-between;color:#fff;background:rgba(7,60,58,.96);backdrop-filter:blur(12px)}.brand{display:flex;align-items:center;gap:11px;color:inherit;text-decoration:none;font-weight:800;letter-spacing:.03em}.brand-mark{display:grid;place-items:center;width:34px;height:34px;border-radius:10px 10px 10px 3px;color:var(--teal);background:var(--yellow);font-weight:900}.recipe-count{padding:3px 11px;border:1px solid rgba(255,255,255,.35);border-radius:999px;font-size:.82rem}
.topbar-actions{display:flex;align-items:center;gap:18px}.topbar-actions>a{color:#fff;font-weight:700;text-underline-offset:4px}.topbar-actions>a:hover,.topbar-actions>a:focus-visible{color:var(--yellow)}
main{max-width:1240px;margin:0 auto;padding:34px clamp(20px,5vw,64px) 72px}.intro{display:grid;grid-template-columns:minmax(0,1.08fr) minmax(300px,.92fr);min-height:405px;border-radius:30px;overflow:hidden;background:var(--cream);box-shadow:var(--shadow)}.intro-copy{align-self:center;padding:clamp(36px,6vw,74px)}.eyebrow,.section-kicker{margin:0 0 8px;color:var(--coral);font-size:.78rem;font-weight:900;letter-spacing:.18em}h1{max-width:650px;margin:0;font-size:clamp(2.3rem,5vw,4.7rem);line-height:1.08;letter-spacing:-.04em}.intro-copy>p:not(.eyebrow){max-width:620px;margin:22px 0 28px;color:#435957}.feature-photo{position:relative;margin:0;min-height:320px;background:var(--teal)}.feature-photo img{width:100%;height:100%;object-fit:cover;display:block}.feature-photo:after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,transparent 60%,rgba(4,35,33,.66));pointer-events:none}.feature-photo figcaption{position:absolute;z-index:1;left:22px;bottom:17px;color:#fff;font-size:.88rem}
.search-box{display:flex;align-items:center;gap:10px;max-width:560px;min-height:58px;padding:0 12px 0 18px;border:2px solid transparent;border-radius:16px;background:#fff;box-shadow:0 10px 30px rgba(7,60,58,.09)}.search-box:focus-within{border-color:var(--coral)}.search-box>span{color:var(--teal2);font-size:1.7rem;line-height:1;transform:rotate(-15deg)}.search-box input{flex:1;width:100%;min-width:0;border:0;outline:0;color:var(--ink);background:transparent}.search-box button{width:34px;height:34px;border:0;border-radius:50%;color:var(--muted);background:#eef3f1;font-size:1.3rem;line-height:1}
.new-recipes{margin-top:26px;padding:20px 24px;border:1px solid #e5c575;border-radius:20px;background:#fff8e7}.new-recipes h2{margin:0 0 10px;color:var(--teal);font-size:1.15rem}.new-recipes ul{display:flex;flex-wrap:wrap;gap:8px 18px;margin:0;padding:0;list-style:none}.new-recipes a{display:inline-block;padding:5px 0;color:var(--teal2);font-weight:700;text-underline-offset:4px}.new-recipes a:hover,.new-recipes a:focus-visible{color:#a63f25}
.toc-page{max-width:940px;min-height:calc(100vh - 180px)}.toc-page h1{margin:22px 0 30px;font-size:clamp(2.2rem,5vw,3.6rem)}.toc-back{color:var(--teal2);font-weight:700}.toc-groups{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.toc-group{padding:22px 26px;border:1px solid var(--line);border-radius:18px;background:#fff}.toc-group h2{margin:0 0 12px;color:var(--teal);font-size:1.35rem}.toc-group ul{margin:0;padding-left:1.3em}.toc-group li+li{margin-top:8px}.toc-group a{color:var(--teal2);text-underline-offset:4px}.toc-group a:hover,.toc-group a:focus-visible{color:#a63f25}
.filters{display:flex;gap:10px;padding:34px 0 20px;overflow-x:auto;scrollbar-width:thin}.filter{flex:0 0 auto;padding:10px 17px;border:1px solid var(--line);border-radius:999px;color:var(--ink);background:#fff;font-weight:700}.filter:hover{border-color:var(--teal2)}.filter.is-active{border-color:var(--teal);color:#fff;background:var(--teal)}.filter-special:not(.is-active){border-color:#f1b8a8;color:#a63f25;background:#fff2ed}.filter-extra:not(.is-active){border-color:#d9bb55;color:#765b00;background:#fff7d7}
.results{padding-top:24px}.results-heading{display:flex;align-items:end;justify-content:space-between;gap:20px;margin-bottom:24px}.results-heading h2{margin:0;font-size:clamp(1.7rem,3vw,2.5rem);line-height:1.2}.results-heading>p{margin:0 0 3px;color:var(--muted);font-size:.9rem}.recipe-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.recipe-card{display:flex;flex-direction:column;min-height:214px;padding:23px;border:1px solid var(--line);border-radius:20px;background:#fff;box-shadow:0 7px 22px rgba(7,60,58,.055);transition:.2s}.recipe-card:hover{transform:translateY(-4px);border-color:#9ab8b2;box-shadow:0 16px 35px rgba(7,60,58,.12)}.guide-card{border-color:#e1c769;background:linear-gradient(145deg,#fffbed,#fff3bf)}.guide-card .category-badge{color:#6c5400;background:#f7df81}.card-top{display:flex;align-items:center;justify-content:space-between;gap:12px}.category-badge{display:inline-flex;padding:4px 10px;border-radius:999px;color:var(--teal2);background:#e8f3f0;font-size:.76rem;font-weight:800}.card-number{color:#a9b7b4;font-weight:900;font-size:.82rem}.guide-card .card-number{color:#92751a}.recipe-card h3{margin:20px 0 9px;font-size:1.22rem;line-height:1.45}.recipe-card>p{margin:0;color:var(--muted);font-size:.9rem}.open-recipe{display:flex;align-items:center;justify-content:space-between;width:100%;margin-top:auto;padding:17px 0 0;border:0;color:var(--teal2);background:transparent;font-weight:800;text-align:left}.open-recipe span:last-child{display:grid;place-items:center;width:34px;height:34px;border-radius:50%;color:#fff;background:var(--coral);transition:.2s}.recipe-card:hover .open-recipe span:last-child{transform:translateX(3px)}
.empty-state{padding:68px 20px;border:1px dashed #a8bbb7;border-radius:20px;text-align:center;background:#f5f9f7}.empty-icon{margin:0;font-size:2.5rem}.empty-state h3{margin:10px 0 2px}.empty-state p:not(.empty-icon){margin:0 0 18px;color:var(--muted)}.empty-state button{padding:10px 18px;border:0;border-radius:12px;color:#fff;background:var(--teal);font-weight:800}
dialog{width:min(760px,calc(100% - 24px));max-height:min(88vh,920px);padding:0;border:0;border-radius:24px;color:var(--ink);background:#fff;box-shadow:0 30px 90px rgba(0,0,0,.35)}dialog::backdrop{background:rgba(4,26,25,.72);backdrop-filter:blur(5px)}.dialog-shell{position:relative}.dialog-close{position:sticky;z-index:2;top:14px;float:right;width:42px;height:42px;margin:14px 14px -56px 0;border:0;border-radius:50%;color:#fff;background:var(--teal);font-size:1.55rem;line-height:1}.dialog-content{padding:clamp(28px,6vw,58px)}.dialog-kicker{margin:0 0 9px;color:var(--coral);font-size:.78rem;font-weight:900;letter-spacing:.14em}.dialog-content h2{max-width:620px;margin:0;padding-right:46px;font-size:clamp(1.65rem,4vw,2.5rem);line-height:1.3}.dialog-content h3{margin:30px 0 10px;font-size:1rem;color:var(--teal2)}.ingredient-list,.step-list{margin:0;padding:0;list-style:none}.ingredient-list li{display:flex;justify-content:space-between;gap:20px;padding:10px 0;border-bottom:1px solid #edf1ef}.ingredient-list li span:last-child{flex:0 0 auto;color:var(--muted);text-align:right}.step-list{counter-reset:steps}.step-list li{position:relative;min-height:38px;margin:0 0 14px;padding-left:47px}.step-list li:before{counter-increment:steps;content:counter(steps);position:absolute;left:0;top:-1px;display:grid;place-items:center;width:32px;height:32px;border-radius:10px;color:#fff;background:var(--coral);font-weight:900}.recipe-memo{margin-top:30px;padding:18px 20px;border-left:4px solid var(--yellow);background:var(--cream)}.recipe-memo strong{display:block;margin-bottom:3px}
.serving-control{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:24px 0 6px;padding:14px 16px;border:1px solid var(--line);border-radius:16px;background:#f5f9f7}.serving-control>div:first-child{display:flex;flex-direction:column}.serving-control strong{font-size:.95rem}.serving-control #servingNote{color:var(--muted);font-size:.76rem}.serving-stepper{display:flex;align-items:center;gap:10px}.serving-stepper button{display:grid;place-items:center;width:38px;height:38px;border:0;border-radius:12px;color:#fff;background:var(--teal);font-size:1.3rem;line-height:1}.serving-stepper button:disabled{cursor:not-allowed;opacity:.35}.serving-stepper output{min-width:26px;text-align:right;font-size:1.25rem;font-weight:900}.serving-stepper span{margin-left:-6px;font-size:.88rem}.guide-intro{margin:18px 0 8px;color:var(--muted)}.guide-sections{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-top:20px}.guide-sections section{padding:17px;border:1px solid #eadb9f;border-radius:15px;background:#fffaf0}.guide-sections h3{margin:0 0 8px;color:#755b00}.guide-sections ul{margin:0;padding-left:1.25rem}.guide-sections li+li{margin-top:6px}.source-link{display:inline-flex;margin-top:15px;color:var(--teal2);font-weight:800;text-underline-offset:3px}
footer{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:28px clamp(20px,5vw,72px);color:#dbe9e6;background:var(--teal);font-size:.88rem}footer p{margin:0}footer a{color:#fff}
@media(max-width:900px){.intro{grid-template-columns:1fr}.feature-photo{min-height:260px;order:-1}.intro-copy{padding:38px 30px 42px}.recipe-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.topbar{height:60px;padding-inline:16px}.brand{gap:8px;font-size:.95rem}.brand-mark{width:31px;height:31px}main{padding:18px 14px 54px}.intro{min-height:0;border-radius:22px}.feature-photo{min-height:210px}.intro-copy{padding:28px 20px 30px}h1{font-size:2.35rem}.intro-copy>p:not(.eyebrow){margin:15px 0 22px}.search-box{min-height:54px}.filters{margin-inline:-14px;padding:26px 14px 14px}.results{padding-top:18px}.results-heading{align-items:flex-start}.results-heading>p{padding-top:7px;white-space:nowrap}.recipe-grid{grid-template-columns:1fr;gap:12px}.recipe-card{min-height:190px;padding:20px}dialog{width:calc(100% - 16px);max-height:calc(100vh - 20px);border-radius:20px}.dialog-content{padding:32px 22px 38px}.ingredient-list li{display:block}.ingredient-list li span{display:block}.ingredient-list li span:last-child{text-align:left;font-size:.9rem}.guide-sections{grid-template-columns:1fr}footer{align-items:flex-start;flex-direction:column}}
@media(max-width:600px){.new-recipes{padding:18px 20px}.new-recipes ul{display:block}.new-recipes li+li{margin-top:2px}}
@media(max-width:600px){.topbar-actions{gap:0}.topbar-actions>a{font-size:.88rem}.recipe-count{display:none}.toc-groups{grid-template-columns:1fr;gap:12px}.toc-group{padding:18px 20px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;transition:none!important}}

.install-help{max-width:1200px;margin:0 auto 1.5rem;padding:0 1.5rem;font-size:.875rem;line-height:1.7}.install-help summary{cursor:pointer;color:#073c3a;font-weight:600}.install-help p{max-width:48rem;margin:.6rem 0}.install-help summary:focus-visible{outline:2px solid #073c3a;outline-offset:4px}@media(display-mode:standalone){.install-help{display:none}}

.recipe-card-photo{display:block;width:100%;height:160px;object-fit:cover;border-radius:10px;margin-bottom:1rem}.recipe-detail-photo{display:block;width:100%;max-height:340px;object-fit:cover;border-radius:12px;margin:1rem 0}


.photo-label{display:block;font-size:.75rem;color:#71675d;margin:-.55rem 0 .8rem;text-align:right}

.flavor-control{display:flex;align-items:center;gap:12px;margin:16px 0;color:var(--teal2);font-weight:700}.flavor-control select{appearance:none;padding:8px 32px 8px 12px;border:1px solid var(--line);border-radius:10px;background:#f5f9f7 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='%23376456' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 10px center;color:inherit;font:inherit}
