/* =========================================================
   宮古島購買店：共通デザイン（トップ「宮古島の一日」と同じ世界観）
   ・夜の海（ink）× 砂浜（sand）の2色＋夕焼けのアクセント
   ・見出しは明朝、ラベルは等幅の英字（字間広め）
   ・写真は角丸＋ゆっくりズーム、要素はスクロールで浮かび上がる
   すべてのページで最後に読み込みます。
   ========================================================= */
:root{
  --is-ink:#06141f;--is-ink2:#0d2230;--is-sand:#f6f1e7;--is-sand2:#ece3d2;--is-text:#16232c;--is-sub:#5d6b73;
  --is-glow:#ffd9a8;--is-sun:#c4663a;--is-line:rgba(22,35,44,.12);
  --is-serif:'Noto Serif JP','Hiragino Mincho ProN','Yu Mincho',serif;
  --is-mono:ui-monospace,'SFMono-Regular',Menlo,monospace;
  --is-ease:cubic-bezier(.2,.7,.2,1);
}
html body{background:var(--is-sand)!important;color:var(--is-text)}
::selection{background:var(--is-glow);color:var(--is-ink)}

/* ---- スクロールで浮かび上がる ---- */
.is-rv{opacity:0;transform:translateY(28px);transition:opacity .9s var(--is-ease),transform .9s var(--is-ease);transition-delay:var(--is-d,0s)}
.is-rv.is-in{opacity:1;transform:none}
@media(prefers-reduced-motion:reduce){.is-rv{opacity:1;transform:none;filter:none;transition:none}}

/* ---- 共通パーツ ---- */
.is-eyebrow{display:block;font:600 11px/1 var(--is-mono);letter-spacing:.3em;text-transform:uppercase;color:var(--is-sun);margin-bottom:14px}
.is-dark .is-eyebrow{color:var(--is-glow)}

/* =================== トップ（index.html） =================== */
html body main.wrap{padding-top:64px!important;max-width:1240px}
/* 一日 → 買い物 のつなぎ */
html body #jy{box-shadow:0 60px 80px -40px rgba(6,20,31,.35)}
html body #jy:after{content:"";position:absolute;left:0;right:0;bottom:-1px;height:120px;background:linear-gradient(180deg,rgba(246,241,231,0),var(--is-sand));pointer-events:none;z-index:4}
/* ガイドへの3枚 */
html body .gtiles{gap:18px!important}
html body .gtiles>*{border-radius:22px!important;overflow:hidden!important;box-shadow:0 30px 60px -30px rgba(6,20,31,.45)}
html body .gtiles img{transition:transform 1.6s var(--is-ease)!important}
html body .gtiles>*:hover img{transform:scale(1.06)}
html body .gt b,html body .dayb b,html body .gtiles h3{font-family:var(--is-serif)!important;font-weight:500!important;letter-spacing:.04em!important}
html body .gt small,html body .gtiles small{font-family:var(--is-mono)!important;letter-spacing:.28em!important;text-transform:uppercase}
/* カテゴリ */
html body #catnav{border:0!important;margin:56px 0 8px!important;gap:6px 28px!important;justify-content:center}
html body #catnav button,html body #catnav a{background:none!important;border:0!important;border-bottom:1px solid transparent!important;border-radius:0!important;padding:8px 2px!important;font:600 12px/1 var(--is-mono)!important;letter-spacing:.24em!important;color:var(--is-sub)!important;box-shadow:none!important}
html body #catnav .on,html body #catnav .active,html body #catnav [aria-current]{color:var(--is-ink)!important;border-bottom-color:var(--is-ink)!important}
/* 棚の見出し：「01 — 食品」 */
html body #shelves{counter-reset:is-sh}
html body .shelf{counter-increment:is-sh;margin-top:84px!important;border:0!important}
html body .shelf>h2{display:flex!important;flex-direction:column;align-items:flex-start;gap:0;border:0!important;padding:0!important;margin-bottom:28px!important}
html body .shelf>h2:before{content:counter(is-sh,decimal-leading-zero) " —";font:600 11px/1 var(--is-mono);letter-spacing:.3em;color:var(--is-sun);margin-bottom:14px}
html body .shelf>h2 span{font-family:var(--is-serif)!important;font-weight:500!important;font-size:clamp(1.9rem,3.4vw,3rem)!important;letter-spacing:.06em!important;line-height:1.2!important;color:var(--is-ink)!important}
html body .shelf>h2 small{font:500 11px/1 var(--is-mono)!important;letter-spacing:.24em!important;color:var(--is-sub)!important;margin-top:12px!important}
/* 商品カード */
html body .shelf .row{gap:34px 22px!important}
html body .card{background:none!important;border:0!important;box-shadow:none!important}
html body .card .thumb{border-radius:18px!important;overflow:hidden!important;background:var(--is-sand2)!important;box-shadow:0 22px 40px -28px rgba(6,20,31,.5)}
html body .card .thumb img{transition:transform 1.4s var(--is-ease)!important}
html body .card:hover .thumb img{transform:scale(1.07)}
html body .card .badge{background:rgba(6,20,31,.72)!important;color:#fff!important;border-radius:99px!important;font:600 10px/1 var(--is-mono)!important;letter-spacing:.2em!important;padding:6px 10px!important;backdrop-filter:blur(6px)}
html body .card .cbody{padding:14px 2px 0!important;border:0!important}
html body .card .area{font:500 10px/1 var(--is-mono)!important;letter-spacing:.24em!important;color:var(--is-sun)!important}
html body .card h3{font-family:var(--is-serif)!important;font-weight:500!important;font-size:15.5px!important;letter-spacing:.03em!important;line-height:1.55!important;color:var(--is-ink)!important;margin:8px 0 6px!important}
html body .card .price{font-family:var(--is-serif)!important;font-weight:500!important;font-size:17px!important;color:var(--is-ink)!important}
html body .card .price small{font-family:var(--is-mono)!important;font-size:10px!important;letter-spacing:.1em;color:var(--is-sub)!important}
html body .card .add{margin-top:12px!important;width:100%;background:transparent!important;color:var(--is-ink)!important;border:1px solid rgba(6,20,31,.35)!important;border-radius:99px!important;padding:11px 10px!important;font:600 12px/1 inherit!important;letter-spacing:.14em!important;text-shadow:none!important;box-shadow:none!important;transition:background .35s,color .35s,border-color .35s!important}
html body .card .add:hover{background:var(--is-ink)!important;color:#fff!important;border-color:var(--is-ink)!important}
html body .shmore{border-radius:99px!important;border:1px solid rgba(6,20,31,.35)!important;background:transparent!important;color:var(--is-ink)!important;font:600 12px/1 var(--is-mono)!important;letter-spacing:.22em!important;padding:14px 28px!important}
html body .shmore:hover{background:var(--is-ink)!important;color:#fff!important}
/* 商品ページ（モーダル） */
html body .ov{background:rgba(6,20,31,.62)!important;backdrop-filter:blur(14px) saturate(1.1)!important;-webkit-backdrop-filter:blur(14px)!important}
html body .modal{border-radius:26px!important;background:var(--is-sand)!important;box-shadow:0 60px 120px -30px rgba(0,0,0,.55)!important;animation:is-pop .6s var(--is-ease)}
@keyframes is-pop{from{opacity:0;transform:translateY(30px) scale(.98)}to{opacity:1;transform:none}}
html body .modal h2,html body .modal .mt,html body .modal .mtitle{font-family:var(--is-serif)!important;font-weight:500!important;letter-spacing:.04em!important;color:var(--is-ink)!important}
html body .modal img{border-radius:16px}
html body .modal .go,html body .modal .add,html body .modal .madd{border-radius:99px!important;background:var(--is-ink)!important;color:#fff!important;border:0!important;letter-spacing:.14em!important;box-shadow:0 16px 30px -16px rgba(6,20,31,.6)!important}
/* カート */
html body .dr{background:var(--is-sand)!important}
html body .dr h2,html body .dr .dh h2{font-family:var(--is-serif)!important;font-weight:500!important;letter-spacing:.06em!important}
html body #dfoot .go{border-radius:99px!important;background:var(--is-ink)!important;letter-spacing:.14em!important}
html body #dfoot .go.g2{background:transparent!important;color:var(--is-ink)!important;border:1px solid var(--is-ink)!important}
/* ご意見箱 */
html body .fb{background:var(--is-sand2)!important;border:0!important}
html body .fb h2{font-family:var(--is-serif)!important;font-weight:500!important;letter-spacing:.06em!important}
/* フッター（全ページ共通の夜の海） */
html body footer{background:var(--is-ink)!important;color:rgba(255,255,255,.72)!important;border:0!important}
html body footer h4{font-family:var(--is-serif)!important;font-weight:500!important;color:#fff!important;letter-spacing:.08em!important}
html body footer a{color:rgba(255,255,255,.82)!important}
html body footer .copy{color:rgba(255,255,255,.5)!important;border-color:rgba(255,255,255,.12)!important}

/* =================== ガイド（miyako-guide.html） =================== */
html body.is-guide{background:var(--is-sand)!important}
html body.is-guide .page-hero{position:relative;min-height:min(84vh,820px);display:flex!important;align-items:flex-end;padding:120px 7vw 9vh!important;background:linear-gradient(180deg,rgba(4,16,28,.5) 0%,rgba(4,16,28,.08) 40%,rgba(4,16,28,.72) 100%),url(images/guide/yaebise.jpg) center/cover no-repeat!important;color:#fff!important;overflow:hidden;gap:6vw;flex-wrap:wrap}
html body.is-guide .page-hero .hero-left,html body.is-guide .page-hero .hero-right{position:relative;z-index:1}
html body.is-guide .page-hero .eyebrow{font:600 11px/1 var(--is-mono)!important;letter-spacing:.3em!important;color:var(--is-glow)!important;margin-bottom:20px!important}
html body.is-guide .page-hero .hero-title{font-family:var(--is-serif)!important;font-weight:500!important;font-size:clamp(2.4rem,6vw,5.4rem)!important;line-height:1.22!important;letter-spacing:.04em!important;color:#fff!important;text-shadow:0 4px 40px rgba(0,0,0,.35)}
html body.is-guide .page-hero .hero-title em{font-style:normal;color:#fff}
html body.is-guide .page-hero .hero-title span{color:var(--is-glow)}
html body.is-guide .page-hero .hero-sub{color:rgba(255,255,255,.9)!important;font-size:15px!important;line-height:1.95!important;max-width:28em}
html body.is-guide .layer-bar{justify-content:center;gap:10px!important;padding:44px 16px 10px!important}
html body.is-guide .lt{border-radius:99px!important;border:1px solid rgba(6,20,31,.3)!important;background:transparent!important;color:var(--is-ink)!important;font:600 12px/1 var(--is-mono)!important;letter-spacing:.22em!important;padding:13px 26px!important}
html body.is-guide .lt.active{background:var(--is-ink)!important;color:#fff!important;border-color:var(--is-ink)!important}
html body.is-guide .guide-note{max-width:760px;margin:0 auto!important;text-align:center;color:var(--is-sub)!important;font-size:12px!important;line-height:1.9}
html body.is-guide .map-stage{max-width:1180px;margin:24px auto 0!important;border-radius:26px!important;overflow:hidden!important;box-shadow:0 40px 80px -40px rgba(6,20,31,.45)}
html body.is-guide .spot-list-wrap{max-width:1180px;margin:0 auto!important;padding:80px 20px 40px!important;background:none!important}
html body.is-guide .sl-head{font-family:var(--is-serif)!important;font-weight:500!important;font-size:clamp(1.9rem,3.4vw,3rem)!important;letter-spacing:.06em!important;color:var(--is-ink)!important;margin-bottom:28px!important}
html body.is-guide .sl-head:before{content:"SPOTS —";display:block;font:600 11px/1 var(--is-mono);letter-spacing:.3em;color:var(--is-sun);margin-bottom:14px}
html body.is-guide .spot-grid{display:grid!important;grid-template-columns:repeat(auto-fill,minmax(220px,1fr))!important;gap:30px 20px!important}
html body.is-guide .spot-card{display:flex!important;flex-direction:column!important;gap:0!important;padding:0!important;border:0!important;background:none!important;box-shadow:none!important;text-align:left;transform:none}
html body.is-guide .spot-card:hover{transform:none!important;box-shadow:none!important;background:none!important}
html body.is-guide .spot-card .sc-img{width:100%!important;height:auto!important;aspect-ratio:4/3;border-radius:18px!important;object-fit:cover;box-shadow:0 22px 40px -28px rgba(6,20,31,.5);transition:transform 1.4s var(--is-ease)!important}
html body.is-guide .spot-card:hover .sc-img{transform:scale(1.04)}
html body.is-guide .spot-card .sc-ico{display:none!important}
html body.is-guide .spot-card .sc-name{display:block;font-family:var(--is-serif)!important;font-weight:500!important;font-size:17px!important;letter-spacing:.04em;color:var(--is-ink)!important;margin-top:14px}
html body.is-guide .spot-card .sc-area{display:block;font:500 10px/1 var(--is-mono)!important;letter-spacing:.24em!important;color:var(--is-sun)!important;margin-top:8px}
html body.is-guide .popup{border-radius:26px!important;background:var(--is-sand)!important;overflow:hidden}
html body.is-guide .popup-title{font-family:var(--is-serif)!important;font-weight:500!important;letter-spacing:.04em!important;color:var(--is-ink)!important}
html body.is-guide .popup-eyebrow{font-family:var(--is-mono)!important;letter-spacing:.28em!important;color:var(--is-sun)!important}
html body.is-guide .overlay{background:rgba(6,20,31,.62)!important;backdrop-filter:blur(14px)!important}
html body.is-guide .bottom-cta{background:var(--is-ink)!important;padding:110px 20px!important;text-align:center}
html body.is-guide .bottom-cta .bc-title{font-family:var(--is-serif)!important;font-weight:500!important;font-size:clamp(1.9rem,4vw,3.2rem)!important;letter-spacing:.06em!important;color:#fff!important}
html body.is-guide .bottom-cta .btn-w{border-radius:99px!important;background:#fff!important;color:var(--is-ink)!important;letter-spacing:.14em!important;padding:15px 30px!important}
/* ガイドのヘッダー：写真の上では透明 */
html body.is-guide .mm-header{transition:background-color .5s,border-color .5s}
html body.is-guide.is-hero-on .mm-header{background:transparent!important;border-bottom-color:transparent!important;box-shadow:none!important}
html body.is-guide.is-hero-on .mm-header .mm-logo .jp{color:#fff!important}
html body.is-guide.is-hero-on .mm-header .mm-logo .en{color:rgba(255,255,255,.75)!important}
html body.is-guide.is-hero-on .mm-header .mm-lb{color:rgba(255,255,255,.65)!important}
html body.is-guide.is-hero-on .mm-header .mm-lb.active{color:#fff!important;border-color:#fff!important}
html body.is-guide.is-hero-on .mm-header .mm-cart{background:rgba(255,255,255,.14)!important;color:#fff!important;border:1px solid rgba(255,255,255,.45)!important;backdrop-filter:blur(8px)}
@media(max-width:760px){
  html body.is-guide .page-hero{min-height:78vh;padding:110px 22px 8vh!important}
  html body.is-guide .spot-grid{grid-template-columns:1fr 1fr!important;gap:22px 14px!important}
  html body.is-guide .map-stage{border-radius:18px!important;margin:16px 12px 0!important}
  html body .shelf{margin-top:64px!important}
}

/* =================== 文章ページ（特商法・プライバシー・完了） =================== */
html body.is-doc header{background:var(--is-ink)!important;padding:96px 20px 64px!important;text-align:center}
html body.is-doc header h1{font-family:var(--is-serif)!important;font-weight:500!important;font-size:clamp(1.8rem,4vw,2.8rem)!important;letter-spacing:.08em!important;color:#fff!important}
html body.is-doc header h1:before{content:"MIYAKO ISLAND MARKET";display:block;font:600 11px/1 var(--is-mono);letter-spacing:.32em;color:var(--is-glow);margin-bottom:18px}
html body.is-doc header p{color:rgba(255,255,255,.65)!important;font-family:var(--is-serif)}
html body.is-doc main{padding-top:48px!important}
html body.is-doc section,html body.is-doc table{background:#fff!important;border-radius:20px!important;box-shadow:0 22px 50px -36px rgba(6,20,31,.4)!important;border:0!important}
html body.is-doc h2{font-family:var(--is-serif)!important;font-weight:500!important;letter-spacing:.05em!important;color:var(--is-ink)!important}
html body.is-doc th{font-family:var(--is-serif);font-weight:500;color:var(--is-ink)}
html body.is-doc .btn{border-radius:99px!important;background:var(--is-ink)!important;letter-spacing:.14em}
html body.is-doc .back{color:var(--is-sun)!important;letter-spacing:.1em}
html body.is-doc footer{background:var(--is-ink)!important;color:rgba(255,255,255,.55)!important;padding:28px 16px!important}
html body.is-guide .spot-card>span,html body.is-guide .spot-card>span>span{background:none!important;box-shadow:none!important;padding:0!important}

/* カテゴリの帯：スクロールしても上に残る（Apple風のサブナビ） */
html body #catnav{position:sticky;top:var(--hh,60px);z-index:40;background:rgba(246,241,231,.86)!important;backdrop-filter:blur(14px) saturate(1.2);-webkit-backdrop-filter:blur(14px) saturate(1.2);margin:48px -16px 0!important;padding:10px 16px!important;flex-wrap:nowrap!important;overflow-x:auto;scrollbar-width:none}
html body #catnav::-webkit-scrollbar{display:none}
html body #catnav button{flex:none}
/* 「宮古島の一日」の文字：くっきり読みやすく */
html body #jy .tx h2{text-shadow:0 2px 24px rgba(0,0,0,.45)}
html body #jy .tx p{color:#fff!important;text-shadow:0 1px 14px rgba(0,0,0,.5)}
@media(max-width:760px){html body #catnav{margin:40px 0 0!important;padding:10px 4px!important;justify-content:flex-start!important;gap:6px 22px!important}}
/* 予約ボタン：文字が切れないよう中央ぞろえ＋上下の余白 */
html body .modal .add.bkgo{display:flex!important;flex-direction:column;align-items:center;justify-content:center;gap:4px;width:100%;min-height:58px;height:auto!important;padding:16px 28px!important;margin-top:16px!important;text-align:center!important;font-size:14px!important;line-height:1.5!important;letter-spacing:.16em!important;white-space:normal}
html body .modal .add.bkgo .nc{display:block;margin:0;font-size:11px;letter-spacing:.08em;opacity:.7;line-height:1.4}
html body .modal .add.bkgo:disabled{background:rgba(6,20,31,.28)!important;color:rgba(255,255,255,.95)!important;box-shadow:none!important;cursor:default}
