:root{
  --navy:#9A3412; --navy-dark:#7C2D12; --accent:#D9480F;
  --ink:#2B1F17; --sub:#4A3528; --muted:#6B5446;
  --line:#F3E3D6; --line2:#EED3BF; --tint:#FFF3EA; --soft:#FFF8F2; --white:#FFFFFF;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;font-family:"Zen Kaku Gothic New",sans-serif;color:var(--ink);background:var(--white);line-height:1.75;font-size:16px}
img,svg{max-width:100%}
a{color:var(--navy)} a:hover{color:var(--navy-dark)}
.wrap{max-width:1120px;margin:0 auto;padding:0 20px}
.narrow{max-width:860px}
.display{font-family:"Zen Maru Gothic",sans-serif}
.section{padding:80px 0}
.section.tint{background:var(--tint)} .section.soft{background:var(--soft)}
.h2{margin:0 0 12px;font-family:"Zen Maru Gothic",sans-serif;font-size:32px;color:var(--navy);text-align:center;line-height:1.4}
.lead{margin:0 0 40px;text-align:center;color:var(--sub)}
.note{font-size:13px;color:var(--muted)}
.row{display:flex;flex-wrap:wrap;gap:24px}
.row > *{min-width:0}

/* header */
.site-header{background:var(--white);border-bottom:1px solid var(--line);position:sticky;top:0;z-index:10}
.site-header .wrap{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;padding-top:14px;padding-bottom:14px}
.logo{text-decoration:none;font-family:"Zen Maru Gothic",sans-serif;font-weight:700;font-size:26px;color:var(--navy);letter-spacing:.04em}
.logo small{font-family:"Zen Kaku Gothic New",sans-serif;font-size:13px;font-weight:400;color:var(--muted);margin-left:10px;letter-spacing:0}
.nav{display:flex;flex-wrap:wrap;align-items:center;gap:18px;font-size:14px;font-weight:500}
.nav a{text-decoration:none}
.nav a[aria-current="page"]{font-weight:700}

/* buttons */
.btn{display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:12px 28px;border-radius:999px;font-weight:700;font-size:17px;text-decoration:none;border:2px solid transparent;cursor:pointer;font-family:inherit}
.btn-primary{background:var(--accent);color:#fff} .btn-primary:hover{color:#fff;filter:brightness(.92)}
.btn-outline{background:#fff;color:var(--navy);border-color:var(--navy)}
.btn-white{background:#fff;color:var(--navy)}
.btn-sm{min-height:44px;padding:8px 18px;font-size:14px}
.btn[aria-disabled="true"],.btn:disabled{background:#B8A99E;color:#fff;cursor:not-allowed;filter:none}

/* hero */
.hero .wrap{display:flex;flex-wrap:wrap;gap:48px;align-items:center;padding-top:72px;padding-bottom:80px}
.hero-text{flex:999 1 520px;min-width:0;display:flex;flex-direction:column;gap:22px}
.eyebrow{margin:0;font-size:14px;font-weight:700;color:var(--navy);letter-spacing:.08em}
.hero h1{margin:0;font-family:"Zen Maru Gothic",sans-serif;font-size:46px;line-height:1.35;color:var(--navy)}
.hero p.big{margin:0;font-size:18px;color:var(--sub)}
.chips{display:flex;flex-wrap:wrap;gap:8px;font-size:14px;font-weight:500}
.chips span{background:#fff;border:1px solid var(--line2);border-radius:999px;padding:6px 14px}
.hero-art{flex:1 1 360px;min-width:0;height:380px;border-radius:24px;overflow:hidden;background:#FFE3CF}
.hero-art svg{width:100%;height:100%;display:block}
.actions{display:flex;flex-wrap:wrap;gap:12px}

/* cards */
.card{flex:1 1 300px;border:1px solid var(--line);border-radius:20px;padding:32px;display:flex;flex-direction:column;gap:12px;background:#fff}
.card h3{margin:0;font-size:20px;color:var(--navy)}
.card p{margin:0;color:var(--sub)}

/* products */
.product{flex:1 1 300px;min-width:0;background:#fff;border:1px solid var(--line);border-radius:18px;overflow:hidden;display:flex;flex-direction:column;text-decoration:none;color:inherit;text-align:left;padding:0;font:inherit;cursor:pointer}
.product:hover{color:inherit;box-shadow:0 6px 20px rgba(154,52,18,.12)}
.product-img{position:relative;height:240px;display:flex;align-items:center;justify-content:center;overflow:hidden;width:100%}
.ribbon{position:absolute;top:18px;left:-42px;width:160px;transform:rotate(-45deg);color:#fff;font-size:13px;font-weight:700;text-align:center;padding:4px 0}
.strip{position:absolute;left:0;bottom:0;background:#fff;color:var(--navy);font-size:12px;font-weight:700;padding:6px 12px}
.product-body{padding:18px 20px 22px;display:flex;flex-direction:column;gap:4px}
.product-name{font-size:17px;font-weight:700}
.product-sub{font-size:13px;color:var(--muted)}
.product-price{margin-top:6px;font-size:24px;font-weight:700;color:var(--navy)}
.product-more{font-size:14px;font-weight:700;color:var(--accent)}
.product.option{border:2px dashed #F5B48A;cursor:default}
.product.option:hover{box-shadow:none}

/* steps */
.steps{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:20px}
.steps li{flex:1 1 220px;min-width:0;border:1px solid var(--line);border-radius:20px;padding:24px;display:flex;flex-direction:column;gap:8px}
.steps .num{width:40px;height:40px;border-radius:999px;background:var(--navy);color:#fff;font-weight:700;display:flex;align-items:center;justify-content:center}
.steps h3{margin:0;font-size:18px}
.steps p{margin:0;font-size:15px;color:var(--sub)}

/* tables */
.table-box{overflow-x:auto}
table{width:100%;min-width:460px;border-collapse:collapse;font-size:15px}
caption{text-align:left;font-weight:700;font-size:18px;color:var(--navy);padding-bottom:12px}
th,td{text-align:left;padding:12px 16px;border-bottom:1px solid var(--line);vertical-align:top}
thead tr{background:var(--tint)} thead th{border-bottom-color:var(--line2)}
.info th{width:200px;background:var(--soft);font-weight:700}

/* faq */
.faq{display:flex;flex-direction:column;gap:16px}
.faq details{background:#fff;border-radius:16px;padding:20px 24px}
.faq summary{font-weight:700;color:var(--navy);cursor:pointer;font-size:17px}
.faq p{margin:10px 0 0;color:var(--sub)}

/* cta / footer */
.cta{background:var(--navy);color:#fff;text-align:center}
.cta .wrap{display:flex;flex-direction:column;align-items:center;gap:18px;padding-top:72px;padding-bottom:72px}
.cta h2{margin:0;font-family:"Zen Maru Gothic",sans-serif;font-size:32px}
.site-footer{background:var(--navy-dark);color:#FFE8DA}
.site-footer .wrap{padding-top:56px;padding-bottom:40px;display:flex;flex-direction:column;gap:24px}
.site-footer h2{margin:0;font-size:18px;color:#fff}
.site-footer a{color:#FFE8DA}
.site-footer table{font-size:14px} .site-footer th,.site-footer td{border-bottom:1px solid #B4461A;padding:10px 12px}
.site-footer th{width:220px;font-weight:500}
.footer-nav{display:flex;flex-wrap:wrap;gap:20px;font-size:14px}

/* shop detail */
.back{border:none;background:none;padding:10px 0;min-height:44px;font:inherit;font-weight:700;color:var(--navy);cursor:pointer}
.detail{display:flex;flex-wrap:wrap;gap:40px;margin-top:8px}
.detail-img{flex:1 1 380px;min-width:0;height:420px;border-radius:20px;display:flex;align-items:center;justify-content:center;position:relative;overflow:hidden}
.detail-body{flex:999 1 420px;min-width:0;display:flex;flex-direction:column;gap:20px}
.detail-body h1{margin:0;font-family:"Zen Maru Gothic",sans-serif;font-size:28px;color:var(--navy)}
.price-lg{font-size:30px;font-weight:700;color:var(--navy)}
.price-lg small{font-size:14px;font-weight:500;color:var(--muted)}
fieldset{border:none;margin:0;padding:0}
legend{font-weight:700;padding:0;margin-bottom:10px}
.dates{display:flex;flex-wrap:wrap;gap:10px}
.date-btn{flex:1 1 140px;min-height:64px;border:1px solid var(--line2);background:#fff;border-radius:12px;padding:8px 12px;font:inherit;color:var(--ink);cursor:pointer;text-align:left;display:flex;flex-direction:column}
.date-btn b{font-weight:700} .date-btn span{font-size:12px;color:var(--muted)}
.date-btn[aria-pressed="true"]{border:2px solid var(--navy);background:var(--tint);color:var(--navy)}
.date-btn:disabled{opacity:.45;cursor:not-allowed}
.veg-box{border:1px solid var(--line2);border-radius:12px;background:#fff;padding:14px 16px;display:flex;align-items:flex-start;gap:12px}
.veg-box input{width:22px;height:22px;margin-top:3px;accent-color:var(--navy)}
.veg-box label{display:flex;flex-direction:column;gap:2px;cursor:pointer}
.total{border-top:1px solid var(--line);padding-top:16px;display:flex;align-items:baseline;justify-content:space-between;gap:12px}
.total b{font-size:28px;color:var(--navy)}
.small-list{margin:0;padding-left:20px;font-size:13px;color:var(--muted)}
.hidden{display:none !important}

@media (min-width:900px){
  .product{max-width:calc((100% - 48px) / 3)}
}
@media (max-width:640px){
  .hero h1{font-size:34px}
  .h2,.cta h2{font-size:26px}
  .section{padding:56px 0}
  .info th,.site-footer th{width:120px}
  .logo small{display:none}
}

/* おすすめ画面 */
.rec{max-width:640px;margin:0 auto}
.rec-added{display:flex;align-items:center;gap:12px;background:#EEF5EA;border:1px solid #CFE3C6;border-radius:12px;padding:14px 16px}
.rec-check{flex:none;width:28px;height:28px;border-radius:50%;background:#2F6B3F;color:#fff;display:grid;place-items:center;font-weight:700}
.rec-item{display:flex;align-items:center;gap:14px;border:1px solid var(--line2);border-radius:12px;padding:14px;background:var(--white)}
.rec-img{flex:none;width:104px;height:88px;border-radius:8px;background:#EEF5EA;display:grid;place-items:center}
.rec-body{display:flex;flex-direction:column;gap:2px;min-width:0;flex:1}
.rec-price{font-size:20px;font-weight:700;color:var(--navy)}
.rec-add{flex:none;min-height:48px;padding:0 16px;border-radius:999px;border:2px solid var(--navy);background:var(--white);color:var(--navy);font:inherit;font-weight:700;cursor:pointer}
.rec-add[aria-pressed="true"]{background:var(--navy);color:#fff}
.rec-add:disabled{opacity:.5;cursor:not-allowed}
@media (max-width:520px){
  .rec-item{flex-wrap:wrap}
  .rec-add{width:100%}
}

/* ロゴ・ブランドオレンジ */
:root{--brand:#FF751F}
.logo{display:inline-flex;align-items:center;gap:10px}
.logo small{margin-left:4px}
.logo img{width:44px;height:44px;flex:none}
.site-header{border-bottom:3px solid var(--brand)}

/* ── 開いたときの動き（.anim は index.html の先頭で付与） ── */
.splash{display:none}
.anim{--d:1.65s}
.anim.no-splash{--d:0s}
.anim .splash{display:block;position:fixed;inset:0;z-index:100;background:#1A120C;overflow:hidden;cursor:pointer;
  animation:yh-out .4s ease 3.2s forwards} /* 万一スクリプトが動かなくても3秒ほどで消える */
.anim.no-splash .splash{display:none}
.splash canvas{position:absolute;inset:0;width:100%;height:100%}
.splash img{position:absolute;left:50%;top:50%;width:min(46vw,260px);height:auto;opacity:0;transform:translate(-50%,-50%) scale(.15);will-change:transform}
@keyframes yh-out{to{opacity:0;visibility:hidden}}

.anim .hero-text > *{animation:yh-up .7s cubic-bezier(.2,.8,.3,1) both}
.anim .hero-text > :nth-child(1){animation-delay:calc(var(--d) + .05s)}
.anim .hero-text > :nth-child(2){animation-delay:calc(var(--d) + .15s)}
.anim .hero-text > :nth-child(3){animation-delay:calc(var(--d) + .25s)}
.anim .hero-text > :nth-child(4){animation-delay:calc(var(--d) + .35s)}
.anim .hero-text > :nth-child(5){animation-delay:calc(var(--d) + .45s)}
.anim .hero-art{animation:yh-up .8s cubic-bezier(.2,.8,.3,1) both;animation-delay:calc(var(--d) + .1s)}
@keyframes yh-up{from{opacity:0;transform:translateY(24px)}to{opacity:1;transform:none}}

.anim .a-sun{animation:yh-sun 1.2s ease-out both;animation-delay:calc(var(--d) + .2s)}
@keyframes yh-sun{from{transform:translateY(60px);opacity:0}to{transform:none;opacity:1}}
.a-cloud{animation:yh-cloud 14s ease-in-out infinite alternate}
@keyframes yh-cloud{from{transform:translateX(-20px)}to{transform:translateX(60px)}}
.anim .a-house{animation:yh-up .8s cubic-bezier(.2,.8,.3,1) both;animation-delay:calc(var(--d) + .3s)}
.anim .a-truck{animation:yh-drive 1.1s cubic-bezier(.25,.9,.35,1) both;animation-delay:calc(var(--d) + .6s)}
@keyframes yh-drive{0%{transform:translateX(-160px)}80%{transform:translateX(6px)}100%{transform:none}}
.anim .a-drop{animation:yh-drop .7s cubic-bezier(.3,1.6,.5,1) both;animation-delay:calc(var(--d) + 1.5s)}
.anim .a-drop2{animation-delay:calc(var(--d) + 1.7s)}
@keyframes yh-drop{from{opacity:0;transform:translateY(-70px)}to{opacity:1;transform:none}}

/* スクロールで出てくる */
.anim .reveal{opacity:0;transform:translateY(28px);transition:opacity .6s ease,transform .6s cubic-bezier(.2,.8,.3,1)}
.anim .reveal.in{opacity:1;transform:none}
.anim .row > .reveal:nth-child(2){transition-delay:.1s}
.anim .row > .reveal:nth-child(3){transition-delay:.2s}

/* ボタン・商品カードの手ざわり */
.btn{transition:transform .15s ease,box-shadow .15s ease,filter .15s ease}
.btn:not([aria-disabled="true"]):hover{transform:translateY(-2px);box-shadow:0 6px 16px rgba(154,52,18,.18)}
.btn:not([aria-disabled="true"]):active{transform:translateY(0)}
.product{transition:transform .2s ease,box-shadow .2s ease}
.product:hover{transform:translateY(-4px)}

@media (prefers-reduced-motion: reduce){
  .a-cloud{animation:none}
  .btn,.product{transition:none}
  .btn:hover,.product:hover{transform:none}
}

/* 商品写真（背景を透過した画像） */
.prod-photo{width:auto;max-width:80%;object-fit:contain;filter:drop-shadow(0 6px 10px rgba(74,53,40,.18))}

/* 野菜セット */
.veg-feature{margin-top:24px;display:flex;flex-wrap:wrap;gap:28px;align-items:center;background:#fff;border:1px solid var(--line);border-radius:20px;padding:28px}
.veg-photo{position:relative;flex:1 1 300px;min-width:0;background:#EEF5EA;border-radius:16px;padding:24px;display:flex;justify-content:center}
.veg-photo img{width:100%;max-width:420px;height:auto;filter:drop-shadow(0 8px 12px rgba(46,70,30,.18))}
.veg-info{flex:999 1 380px;min-width:0;display:flex;flex-direction:column;gap:10px}
.veg-info h3{margin:0;font-size:22px;color:var(--navy)}
.veg-info p{margin:0;color:var(--sub)}
.veg-label{font-size:13px;font-weight:700;color:#2F6B3F}
.veg-tag{position:absolute;top:14px;left:14px;background:#2F6B3F;color:#fff;font-size:13px;font-weight:700;border-radius:999px;padding:4px 12px}
.veg-tag-inline{position:static;align-self:flex-start;margin-bottom:4px;font-size:12px;padding:2px 10px}
.veg-deal{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 12px}
.veg-deal b{font-size:26px;color:var(--navy)}
.veg-deal span,.rec-deal{font-weight:700;color:#2F6B3F}
.veg-recipes{border:1px solid #CFE3C6;background:#F6FAF3;border-radius:12px;padding:0 16px}
.veg-recipes summary{cursor:pointer;font-weight:700;padding:12px 0;color:#2F6B3F;list-style-position:inside}
.veg-recipes dl{margin:0 0 14px}
.veg-recipes dt{font-weight:700;margin-top:8px}
.veg-recipes dd{margin:2px 0 0;color:var(--sub);font-size:15px}
.rec-text{font-size:14px;color:var(--sub);line-height:1.6}
.rec-img img{width:92px;height:auto}
.veg-card-photo{max-width:78%;max-height:170px}
.product.option .strip{background:#2F6B3F;color:#fff}
.veg-photo{padding-top:56px}
@media (max-width:520px){
  .rec-img{width:100%;height:auto;padding:12px}
  .rec-img img{width:170px}
  .rec-body{flex-basis:100%}
}
.rec-text.rec-deal{color:#2F6B3F;font-weight:700}
.product.soon .product-img > *:not(.ribbon){opacity:.55}
.product.soon .product-price{color:var(--muted);font-size:20px}

/* 安さの理由 */
.why-flow{display:flex;flex-direction:column;gap:12px;margin:0 auto 32px;max-width:920px}
.why-row{display:flex;flex-wrap:wrap;align-items:center;gap:8px;background:#fff;border:1px solid var(--line);border-radius:14px;padding:14px 16px}
.why-row-us{border:2px solid var(--brand);background:#FFF8F2}
.why-label{flex:0 0 100px;font-weight:700;color:var(--muted)}
.why-row-us .why-label{color:var(--accent)}
.why-step{background:var(--soft);border-radius:999px;padding:6px 14px;font-size:14px;font-weight:500}
.why-row-us .why-step{background:#FFE3CF;color:var(--navy);font-weight:700}
.why-arrow{color:var(--muted);font-weight:700}
.why-points .card{flex:1 1 220px;padding:24px}
.why-num{width:32px;height:32px;border-radius:50%;background:var(--accent);color:#fff;font-weight:700;display:grid;place-items:center}
@media (max-width:520px){.why-label{flex-basis:100%}}

/* スマホではメニューを1行にして横スクロール（ヘッダーが画面を占めないように） */
@media (max-width:720px){
  .site-header .wrap{padding-top:10px;padding-bottom:8px;gap:6px}
  .nav{flex-wrap:nowrap;overflow-x:auto;width:100%;gap:16px;white-space:nowrap;scrollbar-width:none;-webkit-overflow-scrolling:touch}
  .nav::-webkit-scrollbar{display:none}
  .nav .btn-sm{min-height:34px;padding:4px 14px;font-size:13px}
}

/* トップの「ヨイハチについて」リンク */
.tiles{gap:12px}
.tile{flex:1 1 300px;min-width:0;display:grid;grid-template-columns:1fr auto;gap:2px 12px;align-items:center;background:#fff;border:1px solid var(--line);border-radius:14px;padding:16px 18px;text-decoration:none;color:var(--ink);transition:border-color .15s,transform .15s}
.tile b{color:var(--navy);font-size:16px}
.tile span{grid-column:1;font-size:13px;color:var(--muted)}
.tile i{grid-column:2;grid-row:1 / span 2;font-style:normal;font-weight:700;color:var(--accent);font-size:18px}
.tile:hover{border-color:var(--brand);color:var(--ink);transform:translateY(-2px)}
@media (max-width:720px){.hero .wrap{padding-top:36px;padding-bottom:40px;gap:28px}.hero h1{font-size:32px}.hero-art{height:240px;flex-basis:100%}}

/* スマホでは商品を2列に（通販サイトのように一覧で見比べられる） */
@media (max-width:720px){
  #items .row:first-of-type,#product-list{gap:10px}
  #items .row:first-of-type > .product,#product-list > .product:not(.option){flex:1 1 calc(50% - 5px);max-width:calc(50% - 5px)}
  #items .product-img,#product-list .product:not(.option) .product-img{height:170px}
  #items .prod-photo,#product-list .product:not(.option) .prod-photo{height:140px !important}
  #items .product-body,#product-list .product:not(.option) .product-body{padding:12px}
  #items .product-name,#product-list .product:not(.option) .product-name{font-size:14px;line-height:1.45}
  #items .product-sub,#product-list .product:not(.option) .product-sub{font-size:11px;line-height:1.5}
  #items .product-price,#product-list .product:not(.option) .product-price{font-size:20px}
  #items .ribbon,#product-list .ribbon{font-size:11px;top:12px;left:-48px}
  #items .strip,#product-list .strip{font-size:10px;padding:4px 8px}
  #product-list > .product.option{flex-basis:100%;max-width:100%}
}

/* 取引先・加盟店 */
.partner-h{margin:28px 0 2px;font-size:18px;color:var(--navy)}
.partner-lead{margin:0 0 12px}
.partner-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:12px}
.partner{display:flex;gap:14px;align-items:flex-start;background:#fff;border:1px solid var(--line);border-radius:14px;padding:14px;text-decoration:none;color:var(--ink)}
a.partner:hover{border-color:var(--brand);color:var(--ink)}
.partner-img{flex:none;width:64px;height:64px;border-radius:12px;background:#FFE3CF;color:var(--navy);display:grid;place-items:center;font-weight:700;font-size:24px;overflow:hidden}
.partner-img img{width:100%;height:100%;object-fit:cover}
.partner-body{display:flex;flex-direction:column;gap:2px;min-width:0}
.partner-type{font-size:12px;font-weight:700;color:var(--accent)}
.partner-name{font-weight:700;color:var(--navy)}
.partner-area{font-size:13px;color:var(--muted)}
.partner-text{font-size:14px;color:var(--sub);line-height:1.6}
.partner-perk{margin-top:4px;align-self:flex-start;font-size:13px;font-weight:700;color:#2F6B3F;background:#EEF5EA;border-radius:8px;padding:3px 10px}
.partner-empty{grid-column:1 / -1;border:1px dashed #F5B48A;border-radius:14px;padding:18px;text-align:center;color:var(--muted);background:#fff}

/* スマホ：最初の画面で商品が見えるように、ヒーローを小さく */
@media (max-width:720px){
  .nav .nav-line{display:none}
  .hero .wrap{padding-top:22px;padding-bottom:22px;gap:14px}
  .hero-text{gap:12px}
  .hero .eyebrow{font-size:12px}
  .hero h1{font-size:26px;line-height:1.35}
  .hero p.big{font-size:15px;line-height:1.6}
  .hero .hero-sub{display:none}
  .hero .actions{gap:8px}
  .hero .actions .btn{min-height:44px;padding:8px 18px;font-size:15px}
  .hero .hero-line{display:none}
  .hero .chips{display:none}
  .hero-art{height:150px;border-radius:16px}
  #items{padding-top:28px !important}
  #items .h2{font-size:24px;margin-bottom:4px}
  #items .lead{margin-bottom:16px}
}
