/* 港の雑貨 もやい — ロープの麻色 × 信号旗の赤・黄・青、帆布の地 */
:root {
  --hemp: #cdb98f;
  --hemp-d: #9c8558;
  --sail: #f1ead9;
  --sail-2: #e7dcc4;
  --ink: #2a2620;
  --ink-2: #5a5246;
  --red: #c4312b;
  --yel: #eeb020;
  --blu: #1e4f9a;
  --sea: #1c2c3e;
  --line: #b9a57d;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Zen Kaku Gothic New', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', sans-serif;
  color: var(--ink);
  line-height: 1.85;
  background-color: var(--sail);
  /* 帆布の粗い織り目 */
  background-image:
    repeating-linear-gradient(0deg, rgba(120, 96, 50, .055) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(90deg, rgba(120, 96, 50, .05) 0 1px, transparent 1px 4px);
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
.en, .tagno, .pr, .price, .sub, .num { font-family: 'Oswald', 'Zen Kaku Gothic New', sans-serif; }

/* 信号旗（6種） */
.f-a { background: linear-gradient(135deg, var(--red) 0 50%, var(--yel) 50% 100%); }            /* 斜めの赤黄 */
.f-b { background: conic-gradient(var(--blu) 0 25%, #fff 0 50%, var(--blu) 0 75%, #fff 0); background-size: 50% 50%; } /* 青白の市松 */
.f-c { background: linear-gradient(90deg, var(--blu) 0 33%, #fff 33% 66%, var(--red) 66%); }    /* 三色の縦帯 */
.f-d { background: radial-gradient(circle, var(--red) 0 32%, var(--yel) 33%); }                  /* 黄地に赤丸 */
.f-e { background: linear-gradient(var(--blu), var(--blu)) center/100% 30% no-repeat, linear-gradient(var(--blu), var(--blu)) center/30% 100% no-repeat, #fff; } /* 白地に青十字 */
.f-f { background: linear-gradient(var(--yel) 0 50%, var(--blu) 50%); }                          /* 黄青の横帯 */

/* ヘッダー */
.deck { background: var(--sail); position: sticky; top: 0; z-index: 30; border-bottom: 3px double var(--hemp-d); }
.bunting { display: flex; gap: 10px; justify-content: center; height: 16px; overflow: hidden; padding: 0 8px;
  background: linear-gradient(var(--hemp-d), var(--hemp-d)) 0 2px/100% 2px no-repeat; }
.bunting i { width: 16px; height: 14px; flex: none; clip-path: polygon(0 0, 100% 0, 50% 100%); margin-top: 3px; }
.deckin { max-width: 1180px; margin: 0 auto; display: flex; align-items: center; gap: 18px; padding: 8px 20px 10px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--sea); }
.logo .knot { width: 48px; height: 30px; color: var(--hemp-d); }
.logo span { display: flex; flex-direction: column; line-height: 1.1; }
.logo small { font-size: 11px; letter-spacing: .3em; color: var(--ink-2); }
.logo b { font-size: 25px; letter-spacing: .2em; font-weight: 900; }
.gnav { margin-left: auto; display: flex; gap: 22px; font-size: 14px; }
.gnav a { text-decoration: none; padding: 4px 0; border-bottom: 2px solid transparent; }
.gnav a:hover { border-color: var(--red); }
.hold { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; background: var(--sea); color: #fff;
  padding: 7px 10px 7px 14px; font-size: 14px; font-weight: 700; letter-spacing: .1em; border-radius: 3px;
  box-shadow: inset 0 0 0 2px var(--sea), inset 0 0 0 3px rgba(255,255,255,.35); }
.hold .n { background: var(--yel); color: var(--sea); min-width: 24px; height: 24px; border-radius: 50%; display: inline-grid; place-items: center;
  font-family: 'Oswald', sans-serif; font-size: 13px; letter-spacing: 0; }

/* ヒーロー */
.harbor { max-width: 1180px; margin: 0 auto; padding: 44px 20px 30px; display: grid; grid-template-columns: 1fr 1.15fr; gap: 44px; align-items: center; }
.harbor .en { font-size: 13px; letter-spacing: .35em; color: var(--red); }
.harbor h1 { font-size: 46px; line-height: 1.3; letter-spacing: .12em; color: var(--sea); margin: 10px 0 18px; font-weight: 900; }
.harbor h1 small { display: block; font-size: 17px; letter-spacing: .3em; color: var(--ink-2); font-weight: 500; }
.harbor .lead { font-size: 16px; color: var(--ink); }
.harbor .what { margin-top: 18px; font-size: 13px; color: var(--ink-2); border-left: 4px solid var(--yel); padding-left: 10px; }
.harbor .go { display: inline-block; margin-top: 24px; background: var(--red); color: #fff; text-decoration: none; padding: 12px 28px; font-weight: 700; letter-spacing: .15em; border-radius: 2px; }
.harbor .go:hover { background: #a62822; }
.rope-frame { position: relative; padding: 12px; border-radius: 6px;
  /* 撚ったロープの縁 */
  background: repeating-linear-gradient(-55deg, #d9c69d 0 7px, #b39a68 7px 10px, #e6d6b2 10px 15px); box-shadow: 0 10px 24px rgba(40, 30, 10, .18); }
.rope-frame img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 2px; }
.rope-frame .cap { position: absolute; left: 22px; bottom: 20px; background: rgba(241, 234, 217, .92); font-size: 11px; padding: 2px 8px; }
.knotline { max-width: 1180px; margin: 0 auto; padding: 0 20px; color: var(--hemp-d); }
.knotline svg { width: 100%; height: 46px; display: block; }

/* 棚（絞り込みと一覧） */
.tana { max-width: 1180px; margin: 0 auto; padding: 30px 20px 60px; }
.tana-h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-bottom: 2px solid var(--ink); padding-bottom: 8px; }
.tana-h h2 { font-size: 26px; letter-spacing: .2em; color: var(--sea); }
.tana-h .count { font-size: 13px; color: var(--ink-2); }
.flags { display: flex; flex-wrap: wrap; gap: 10px 12px; margin: 20px 0 26px; }
.flags button { display: inline-flex; align-items: center; gap: 8px; background: #fbf7ee; border: 1.5px solid var(--line); padding: 6px 12px 6px 8px; cursor: pointer; font-size: 14px; border-radius: 2px; }
.flags button .fl { width: 26px; height: 18px; flex: none; border: 1px solid rgba(0,0,0,.25); }
.flags button .fl.all { background: var(--hemp); clip-path: polygon(0 0, 100% 0, 78% 50%, 100% 100%, 0 100%); border: none; }
.flags button i { font-style: normal; font-family: 'Oswald', sans-serif; font-size: 12px; color: var(--ink-2); }
.flags button.on { background: var(--sea); color: #fff; border-color: var(--sea); }
.flags button.on i { color: var(--yel); }
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px 20px; }
.grid.small { grid-template-columns: repeat(4, 1fr); }
.crate { position: relative; display: flex; flex-direction: column; text-decoration: none; background: #fffdf7; border: 1px solid var(--line);
  box-shadow: 3px 3px 0 var(--sail-2); transition: transform .15s, box-shadow .15s; }
.crate:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--hemp); }
.crate .ph { margin: 8px 8px 0; border: 1px dashed var(--line); padding: 4px; }
.crate .ph img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.crate .tagno { position: absolute; top: -10px; left: 12px; z-index: 2; display: inline-flex; align-items: center; gap: 6px; background: var(--sea); color: #fff; font-size: 12px; letter-spacing: .08em; padding: 2px 9px 2px 4px; }
.crate .tagno i { width: 18px; height: 13px; border: 1px solid rgba(255,255,255,.6); }
.crate .body { padding: 10px 12px 14px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.crate .kind { font-size: 11px; color: var(--red); letter-spacing: .08em; }
.crate .nm { font-size: 14px; line-height: 1.55; font-weight: 700; flex: 1; }
.crate .pr { font-size: 19px; color: var(--sea); }
.crate .pr small { font-family: 'Zen Kaku Gothic New', sans-serif; font-size: 11px; margin-left: 4px; color: var(--ink-2); }

/* お約束 */
.yakusoku { background: var(--sea); color: #f5efe2; padding: 50px 20px 56px; position: relative; }
.yakusoku h2 { text-align: center; font-size: 24px; letter-spacing: .25em; margin-bottom: 30px; }
.yakusoku .three { max-width: 1080px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.yakusoku .three > div { border: 1px solid rgba(205, 185, 143, .55); padding: 22px 20px 20px; position: relative; }
.yakusoku .three .fl { position: absolute; top: -12px; left: 18px; width: 30px; height: 22px; border: 1px solid rgba(255,255,255,.5); }
.yakusoku h3 { font-size: 17px; color: var(--yel); margin-bottom: 8px; letter-spacing: .1em; }
.yakusoku p { font-size: 14px; }

/* フッター */
.quay { background: #15212f; color: #d9d2c2; }
.quay .rope { height: 12px; background: repeating-linear-gradient(-55deg, #d9c69d 0 7px, #9c8558 7px 10px, #e6d6b2 10px 15px); }
.quayin { max-width: 1180px; margin: 0 auto; padding: 36px 20px 30px; display: grid; grid-template-columns: 1fr 1.4fr; gap: 30px; font-size: 13px; }
.quay .fname { display: flex; align-items: center; gap: 8px; font-size: 20px; font-weight: 900; letter-spacing: .15em; color: #fff; }
.quay .fname .knot { width: 40px; height: 26px; color: var(--hemp); }
.quay .tag { margin-top: 6px; }
.quay .ship { margin-top: 8px; color: var(--yel); }
.quay nav { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-bottom: 14px; }
.quay nav a { text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.25); }
.quay .co { line-height: 1.7; }
.quay .copy { margin-top: 12px; font-size: 11px; color: #9a9384; }
.toast { position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 30px); background: var(--sea); color: #fff; padding: 11px 22px; font-size: 14px; opacity: 0; pointer-events: none; transition: .25s; z-index: 60; border-left: 5px solid var(--yel); max-width: calc(100% - 32px); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* 共通ボタン */
.btn { display: inline-block; text-align: center; background: var(--red); color: #fff; border: 0; padding: 13px 26px; font-weight: 700; letter-spacing: .12em; cursor: pointer; text-decoration: none; border-radius: 2px; }
.btn:hover { background: #a62822; }
.btn.line { background: transparent; color: var(--sea); border: 1.5px solid var(--sea); }
.btn.block { display: block; width: 100%; }

/* 商品ページ */
.page { max-width: 1180px; margin: 0 auto; padding: 22px 20px 60px; }
.crumb { font-size: 12px; color: var(--ink-2); margin-bottom: 18px; }
.crumb a { text-decoration: none; border-bottom: 1px solid var(--line); }
.pd { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: start; }
.pd-ph { min-width: 0; }
.pd-ph .main-img { background: #fffdf7; border: 1px solid var(--line); padding: 10px; }
.pd-ph .main-img img { width: 100%; aspect-ratio: 1; object-fit: contain; background: #fff; }
.pd-ph .cap { font-size: 12px; color: var(--ink-2); margin-top: 6px; }
.thumbs { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; margin-top: 12px; }
.thumbs button { border: 1px solid var(--line); background: #fff; padding: 2px; cursor: pointer; }
.thumbs button.on { border: 2px solid var(--red); }
.thumbs img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.pinfo { min-width: 0; }
.pinfo .kind { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: var(--red); letter-spacing: .08em; }
.pinfo .kind .fl { width: 22px; height: 15px; border: 1px solid rgba(0,0,0,.25); }
.pinfo h1 { font-size: 24px; line-height: 1.5; margin: 6px 0 10px; color: var(--sea); }
.pinfo .no { font-family: 'Oswald', sans-serif; font-size: 13px; color: var(--ink-2); letter-spacing: .1em; }
.pinfo .price { font-size: 32px; color: var(--sea); border-top: 1px dashed var(--line); border-bottom: 1px dashed var(--line); padding: 6px 0; margin-bottom: 14px; }
.pinfo .price small { font-family: 'Zen Kaku Gothic New', sans-serif; font-size: 13px; color: var(--ink-2); }
.pinfo .desc { white-space: pre-line; font-size: 15px; margin-bottom: 16px; }
.opt { margin-bottom: 14px; }
.opt .t { font-size: 13px; font-weight: 700; margin-bottom: 6px; }
.vals { display: flex; flex-wrap: wrap; gap: 8px; }
.vals button { border: 1.5px solid var(--line); background: #fffdf7; padding: 6px 14px; cursor: pointer; font-size: 14px; }
.vals button.on { border-color: var(--sea); background: var(--sea); color: #fff; }
.varies, .noret, .noship { font-size: 13px; padding: 8px 12px; margin-bottom: 12px; }
.varies { background: #fdf3d6; border-left: 4px solid var(--yel); }
.noret, .noship { background: #f8e3df; border-left: 4px solid var(--red); }
.buy { display: flex; gap: 12px; align-items: stretch; margin: 16px 0 6px; flex-wrap: wrap; }
.qty { display: inline-flex; border: 1.5px solid var(--line); background: #fffdf7; }
.qty button { width: 40px; border: 0; background: transparent; font-size: 18px; cursor: pointer; }
.qty input { width: 46px; text-align: center; border: 0; border-left: 1px solid var(--line); border-right: 1px solid var(--line); background: transparent; }
.buy .btn { flex: 1; min-width: 180px; }
.msg { color: var(--red); font-size: 13px; min-height: 20px; }
.shipl { list-style: none; font-size: 13px; margin: 10px 0 20px; border: 1px solid var(--line); background: #fffdf7; padding: 12px 14px; }
.shipl li { padding-left: 18px; position: relative; }
.shipl li::before { content: ''; position: absolute; left: 2px; top: .7em; width: 8px; height: 8px; background: var(--yel); transform: rotate(45deg); }
.spec h2, .more h2 { font-size: 17px; letter-spacing: .15em; color: var(--sea); border-bottom: 2px solid var(--sea); padding-bottom: 4px; margin-bottom: 8px; }
.spec dl > div { display: grid; grid-template-columns: 8.5em 1fr; gap: 10px; padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.spec dt { color: var(--ink-2); }
.note { margin-top: 16px; font-size: 13px; color: var(--ink-2); }
.note .warn { color: var(--ink); background: #fbf7ee; border: 1px solid var(--line); padding: 10px 12px; margin-bottom: 8px; }
.more { margin-top: 56px; }
.empty { text-align: center; padding: 60px 0; }
.empty p { margin-bottom: 18px; }

/* 船倉 */
.ptitle { max-width: 1180px; margin: 0 auto; padding: 30px 20px 0; }
.ptitle h1 { font-size: 26px; letter-spacing: .2em; color: var(--sea); border-bottom: 2px solid var(--ink); padding-bottom: 8px; }
.cart { display: grid; grid-template-columns: 1fr 340px; gap: 30px; align-items: start; }
.cart .row { display: grid; grid-template-columns: 96px 1fr auto; gap: 14px; padding: 16px 0; border-bottom: 1px dashed var(--line); }
.cart .row img { width: 96px; height: 96px; object-fit: cover; border: 1px solid var(--line); }
.cart .row .nm { font-weight: 700; text-decoration: none; }
.cart .op { font-size: 12px; color: var(--ink-2); }
.cart .warnc { color: var(--red); }
.cart .row .qty { margin-top: 6px; }
.cart .row .qty button { width: 32px; }
.cart .row .qty input { width: 38px; }
.cart .rm { background: none; border: 0; color: var(--ink-2); font-size: 12px; text-decoration: underline; cursor: pointer; margin-top: 6px; }
.cart .sub { font-family: 'Oswald', sans-serif; font-size: 17px; }
.sum { background: #fffdf7; border: 1px solid var(--line); padding: 20px; position: sticky; top: 100px; }
.sum dl { display: grid; grid-template-columns: 1fr auto; gap: 8px; font-size: 14px; margin-bottom: 14px; }
.sum dd { text-align: right; font-family: 'Oswald', 'Zen Kaku Gothic New', sans-serif; }
.sum .total { font-weight: 700; border-top: 1px solid var(--ink); padding-top: 8px; font-size: 15px; }
.sum dd.total { font-size: 22px; color: var(--sea); }
.sum .free { font-size: 12px; color: var(--ink-2); margin-bottom: 10px; }
.modal { position: fixed; inset: 0; background: rgba(21, 33, 47, .6); display: none; align-items: center; justify-content: center; z-index: 80; padding: 16px; }
.modal.show { display: flex; }
.modal .box { background: var(--sail); max-width: 460px; width: 100%; padding: 28px 24px; border-top: 6px solid var(--red); }
.modal h2 { font-size: 19px; color: var(--sea); margin-bottom: 10px; }
.modal p { font-size: 14px; margin-bottom: 16px; }

/* 法務ページ */
.legal { max-width: 860px; margin: 0 auto; padding: 24px 20px 60px; font-size: 14px; }
.legal .lead { background: #fffdf7; border: 1px solid var(--line); border-left: 5px solid var(--blu); padding: 12px 16px; margin-bottom: 20px; }
.legal h2 { font-size: 16px; color: var(--sea); margin: 24px 0 6px; padding-left: 10px; border-left: 4px solid var(--yel); }
.legal ul { padding-left: 1.4em; }
.toku > div { display: grid; grid-template-columns: 12em 1fr; border-bottom: 1px dashed var(--line); }
.toku dt { padding: 12px 10px; font-weight: 700; color: var(--sea); background: rgba(205, 185, 143, .18); }
.toku dd { padding: 12px 12px; }

@media (max-width: 900px) {
  .harbor { grid-template-columns: 1fr; gap: 26px; padding-top: 28px; }
  .harbor h1 { font-size: 36px; }
  .grid, .grid.small { grid-template-columns: repeat(3, 1fr); }
  .pd { grid-template-columns: 1fr; gap: 24px; }
  .cart { grid-template-columns: 1fr; }
  .sum { position: static; }
  .yakusoku .three { grid-template-columns: 1fr; gap: 26px; }
  .quayin { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .deckin { padding: 8px 16px; gap: 10px; }
  .gnav { display: none; }
  .hold { margin-left: auto; }
  .logo b { font-size: 21px; }
  .logo .knot { width: 38px; height: 24px; }
  .harbor, .tana, .page, .knotline, .ptitle, .legal { padding-left: 16px; padding-right: 16px; }
  .harbor h1 { font-size: 30px; }
  .grid, .grid.small { grid-template-columns: repeat(2, 1fr); gap: 22px 12px; }
  .crate .nm { font-size: 13px; }
  .crate .pr { font-size: 17px; }
  .flags button { font-size: 13px; padding: 5px 10px 5px 6px; }
  .thumbs { grid-template-columns: repeat(5, 1fr); }
  .spec dl > div { grid-template-columns: 6.5em 1fr; }
  .toku > div { grid-template-columns: 1fr; }
  .toku dt { padding: 8px 10px; }
  .cart .row { grid-template-columns: 72px 1fr; }
  .cart .row img { width: 72px; height: 72px; }
  .cart .sub { grid-column: 2; }
}
.tana, .yakusoku { scroll-margin-top: 90px; }

:root{--review-accent:var(--red);--review-line:var(--line);--review-ink:var(--ink);--review-paper:var(--sail)}
/* Purchase reviews inherit each shop's type, colors and buttons. */
.reviews-section{margin-block:48px;padding-block:24px;max-width:100%}
.reviews-section[hidden],.rv[hidden],.rv-sheet[hidden]{display:none!important}
.reviews-section h2{font-size:1.35rem;margin-bottom:20px}
.rv-summary{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:20px}
.stars{white-space:nowrap;letter-spacing:.08em;opacity:.8}.stars .on{color:var(--review-accent);opacity:1}
.rv-avg{font-size:1.5rem;font-weight:bold}.rv-count,.rv-meta{font-size:.85rem;opacity:.75}
.rv-list{list-style:none;padding:0;margin:0}.rv{padding:22px 0;border-top:1px solid var(--review-line)}
.rv-head{display:flex;gap:12px;align-items:center;flex-wrap:wrap}.rv-badge{font-size:.7rem;border:1px solid currentColor;padding:2px 6px;border-radius:3px;opacity:.8}
.rv h4{margin:12px 0 8px;font-size:1rem}.rv p{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.9;margin:8px 0}
.rv-meta,.rv-item{margin-top:8px}.rv-item{font-size:.85rem;overflow-wrap:anywhere}
.rv-more{margin-top:20px;cursor:pointer;font:inherit}.product-review-rating{display:inline-flex;gap:10px;align-items:center;margin:10px 0;font-size:.9rem}
.card-w{min-width:0;display:flex;flex-direction:column}.card-w>a{flex:1}.card-rv{background:transparent;color:inherit;border:1px solid var(--review-line);padding:10px 6px;font:inherit;font-size:.8rem;cursor:pointer;display:flex;gap:7px;justify-content:center;align-items:center;flex-wrap:wrap;width:100%}
.rv-sheet{position:fixed;inset:0;z-index:10000;background:#0008;display:flex;align-items:center;justify-content:center;padding:16px;color:var(--review-ink)}
.rv-sheet-box{width:640px;max-width:100%;max-height:85vh;overflow:auto;background:var(--review-paper);padding:24px;border:1px solid var(--review-line);border-radius:8px}
.rv-sheet-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}.rv-sheet-head h3{font-size:1.1rem;overflow-wrap:anywhere}
.rv-sheet-x{font:inherit;font-size:1.8rem;line-height:1;background:transparent;color:inherit;border:0;cursor:pointer;padding:0 4px}.rv-sheet-go{margin-top:16px;display:inline-block}
@media(max-width:480px){.rv-sheet-box{padding:18px}.reviews-section{margin-block:28px}.card-rv{font-size:.72rem}}
