* { box-sizing: border-box; }
body { margin: 0; font-family: system-ui, -apple-system, "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif; color: #222; background: #f6f4ef; }
.topbar { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; background: #6b4f3a; color: #fff; }
.topbar .ryokan { font-weight: bold; font-size: 15px; color: #fff; text-decoration: none; }
.langs a { color: #f3e7d8; text-decoration: none; margin-left: 8px; font-size: 13px; }
.langs a.on { color: #fff; text-decoration: underline; font-weight: bold; }
/* ヘッダーのカゴボタン（点数バッジ付き） */
.cart-btn { background: none; border: none; cursor: pointer; line-height: 1; position: relative; margin-left: 10px; padding: 2px; color: #fff; vertical-align: middle; }
.cart-btn svg { display: block; }
.cart-badge { position: absolute; top: -7px; right: -9px; background: #d94f2a; color: #fff; border-radius: 10px; font-size: 10px; font-weight: bold; padding: 1px 5px; min-width: 10px; text-align: center; }
.deadline { background: #f0e2cf; color: #6b4f3a; text-align: center; padding: 8px; font-size: 14px; font-weight: bold; }
.wrap { max-width: 720px; margin: 0 auto; padding: 14px; }
.card { background: #fff; border-radius: 10px; padding: 12px; margin-bottom: 12px; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.card img { width: 100%; max-width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 8px; display: block; }
/* 商品写真ギャラリー（2枚以上） */
.gallery { position: relative; }
.gallery-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; border-radius: 8px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-track img.gallery-slide { flex: 0 0 100%; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; scroll-snap-align: start; display: block; border-radius: 8px; }
.gal-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; min-width: 36px; border-radius: 50%; border: none; padding: 0; background: rgba(0,0,0,.45); color: #fff; font-size: 22px; line-height: 1; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.gal-arrow:hover { background: rgba(0,0,0,.6); }
.gal-prev { left: 8px; }
.gal-next { right: 8px; }
.gallery-dots { display: flex; justify-content: center; gap: 6px; margin-top: 6px; }
.gallery-dots .dot { width: 7px; height: 7px; border-radius: 50%; background: #d3c6b5; transition: background .2s; }
.gallery-dots .dot.on { background: #6b4f3a; }
.pname { font-weight: bold; font-size: 16px; margin: 6px 0 2px; }
.pdesc { font-size: 13px; color: #666; margin: 0 0 6px; }
.price { font-size: 16px; color: #6b4f3a; font-weight: bold; }
.soldout { color: #b00; font-weight: bold; }
button, .btn { background: #6b4f3a; color: #fff; border: none; border-radius: 8px; padding: 10px 14px; font-size: 15px; cursor: pointer; text-decoration: none; display: inline-block; }
button.sub { background: #999; }
input[type=number], input[type=text], select { padding: 8px; font-size: 15px; border: 1px solid #ccc; border-radius: 6px; }
.qtybox { width: 64px; }
.closed { text-align: center; padding: 40px 16px; }
.closed h2 { color: #6b4f3a; }
.cart { position: sticky; bottom: 0; background: #fff; border-top: 2px solid #6b4f3a; padding: 12px; max-height: 65vh; overflow-y: auto; overscroll-behavior: contain; box-shadow: 0 -4px 12px rgba(0,0,0,.12); }
/* カゴの開閉バー（タップで開閉。閉じると合計だけの細いバーになる） */
.cart summary.cart-head { cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 8px; font-weight: bold; color: #6b4f3a; font-size: 15px; list-style: none; position: relative; padding-right: 22px; -webkit-tap-highlight-color: transparent; }
.cart summary.cart-head::-webkit-details-marker { display: none; }
.cart .cart-head::after { content: '▲'; position: absolute; right: 2px; font-size: 12px; color: #a08d78; }
details.cart[open] .cart-head::after { content: '▼'; }
.cart .cart-body { margin-top: 10px; }
.row { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin: 6px 0; }
.err { background: #fdecec; color: #b00; padding: 8px; border-radius: 6px; margin-bottom: 10px; }
.notice { background: #f0e2cf; color: #6b4f3a; padding: 8px 10px; border-radius: 6px; font-size: 14px; }
/* コーナー（トップ）: 横スワイプカルーセル。1画面に1コーナー、写真は画面の左右端まで（full-bleed）。
   商品ギャラリーと同じ .gallery 構造を使い、client_footer() の汎用JSで矢印・ドットが動く。
   写真に文字は重ねず、すぐ下に控えめな名前を添える。 */
.corner-carousel { margin: -14px -14px 16px; }
.corner-carousel .gallery-track { border-radius: 0; }
.corner-slide { flex: 0 0 100%; scroll-snap-align: start; text-decoration: none; color: inherit; display: block; }
.corner-slide .ph { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; display: block; background: #efe9df; }
.corner-slide .noph { width: 100%; aspect-ratio: 3 / 4; display: flex; align-items: center; justify-content: center; text-align: center; padding: 16px; color: #8a7862; background: #efe9df; font-size: 20px; font-weight: bold; }
.corner-slide .nm { text-align: center; margin: 8px 0 0; padding: 0 14px; font-size: 13px; color: #8a7862; }
/* コーナー一覧（?view=list）: コンパクトな2列グリッド */
.corner-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.corner-grid .corner-card { background: #fff; border-radius: 10px; overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,.08); text-decoration: none; color: inherit; display: block; }
.corner-grid .corner-card .ph { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; display: block; background: #efe9df; }
.corner-grid .corner-card .noph { width: 100%; aspect-ratio: 3 / 4; display: flex; align-items: center; justify-content: center; text-align: center; padding: 8px; color: #a08d78; background: #efe9df; font-size: 14px; font-weight: bold; }
.corner-grid .corner-card .nm { padding: 8px 10px; font-weight: bold; font-size: 15px; color: #6b4f3a; }
/* パンくず */
.crumb { font-size: 13px; margin-bottom: 10px; }
.crumb a { color: #6b4f3a; text-decoration: none; }
.crumb a:hover { text-decoration: underline; }
.crumb .sep { color: #b7a794; margin: 0 6px; }
/* 注文確定フォーム */
.confirm-form { margin-top: 12px; }
.confirm-form label { display: block; font-size: 12px; color: #6b4f3a; font-weight: bold; margin: 8px 0 2px; }
.confirm-form input { width: 100%; box-sizing: border-box; }
.confirm-form .place-btn { margin-top: 12px; width: 100%; }
