/* oliac.jp — design A "Clean Trade" */
:root {
  --navy: #0F1E3D; --navy-2: #1B2C52; --navy-3: #0B1630;
  --red: #C8102E; --red-dark: #A00D25;
  --ink: #1F2937; --muted: #4B5563; --line: #E5E7EB; --soft: #F5F6F8;
  --ok: #166534; --ok-bg: #DCFCE7; --warn: #92400E; --warn-bg: #FEF3C7; --err: #991B1B; --err-bg: #FEE2E2;
  --wa: #25D366; --wa-ink: #0B3D20;
  --head: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --body: 'Noto Sans JP', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: var(--body); color: var(--ink); background: #fff; font-size: 15px; line-height: 1.6; }
a { color: var(--navy); }
a:hover { color: var(--red); }
img { max-width: 100%; }
h1, h2, h3 { color: var(--navy); }
.wrap { max-width: 1240px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.sr-only, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip:focus { position: fixed; left: 12px; top: 12px; z-index: 100; background: #fff; padding: 10px 14px; border-radius: 8px; }
.stack-8 { display: flex; flex-direction: column; gap: 8px; }
.ico { flex: none; }
.ph { background: repeating-linear-gradient(135deg, #EEF0F4 0 10px, #E4E7ED 10px 20px); }
.ph-label { background: #fff; color: var(--muted); font-size: 13px; padding: 6px 10px; border-radius: 6px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 8px; border: 1.5px solid transparent; font: inherit; font-weight: 700; font-size: 14px; text-decoration: none; cursor: pointer; }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-dark); color: #fff; }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-2); color: #fff; }
.btn-outline { border-color: var(--navy); color: var(--navy); background: #fff; }
.btn-outline:hover { background: #EEF2FF; color: var(--navy); }
.btn-wa { background: var(--wa); color: var(--wa-ink); font-weight: 800; }
.btn-wa:hover { color: var(--wa-ink); filter: brightness(.95); }
.btn-lg { min-height: 54px; font-size: 17px; padding: 0 26px; border-radius: 10px; }
.btn-block { width: 100%; }
.tag { position: absolute; font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 4px; }
.tag-stock { left: 10px; top: 10px; background: var(--navy); color: #fff; }
.tag-res { right: 10px; top: 10px; background: var(--warn-bg); color: var(--warn); }
.pill { display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 999px; }
.pill-ok { background: var(--ok-bg); color: var(--ok); }
.pill-warn { background: var(--warn-bg); color: var(--warn); }
.pill-ship { background: #FFEDD5; color: #9A3412; }
.pill-red { background: var(--err-bg); color: var(--err); }

/* top strip + header */
.topstrip { background: var(--navy); color: #D6DCE8; font-size: 13px; }
.topstrip-in { display: flex; flex-wrap: wrap; gap: 6px 24px; justify-content: space-between; padding-top: 8px; padding-bottom: 8px; }
.topstrip-links { display: flex; flex-wrap: wrap; gap: 20px; }
.topstrip a { color: #fff; text-decoration: none; }
.header { border-bottom: 1px solid var(--line); background: #fff; position: relative; z-index: 20; }
.header-in { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 32px; padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-text strong { font-family: var(--head); font-size: 30px; font-weight: 800; letter-spacing: .04em; color: var(--navy); }
.brand-text small { font-family: var(--head); font-size: 12px; letter-spacing: .4em; color: var(--red); font-weight: 600; }
.mainnav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 26px; flex: 1; }
.mainnav > a, .dd-btn { color: var(--navy); text-decoration: none; font-weight: 500; font-size: 15px; min-height: 44px; display: inline-flex; align-items: center; }
.mainnav > a.active { color: var(--red); font-weight: 700; }
.dd { position: relative; }
.dd-btn { gap: 6px; border: 0; background: none; font: inherit; cursor: pointer; padding: 0; }
.dd-btn[aria-expanded="true"] .ico { transform: rotate(180deg); }
.dd-panel { position: absolute; left: -16px; top: 50px; width: min(580px, 92vw); background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 16px 40px rgba(15,30,61,.18); padding: 18px; }
.dd-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px 20px; }
.dd-col { display: flex; flex-direction: column; gap: 4px; }
.dd-main { font-weight: 700; text-decoration: none; }
.dd-sub { font-size: 14px; color: var(--muted); text-decoration: none; }
.dd-foot { border-top: 1px solid var(--line); margin-top: 14px; padding-top: 12px; text-align: right; font-weight: 700; }
.menu-btn { display: none; width: 44px; height: 44px; border: 0; background: none; color: var(--navy); align-items: center; justify-content: center; margin-left: auto; cursor: pointer; }

/* hero */
.hero { background: var(--soft); border-bottom: 1px solid var(--line); }
.hero-in { padding-top: 64px; padding-bottom: 56px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); gap: 40px; align-items: center; }
.eyebrow { font-family: var(--head); font-weight: 700; letter-spacing: .18em; color: var(--red); font-size: 15px; }
.hero h1 { margin: 0; font-family: var(--head); font-weight: 800; font-size: clamp(44px, 6vw, 72px); line-height: .95; }
.lead { margin: 0; font-size: 17px; line-height: 1.7; color: var(--muted); max-width: 560px; }
.hero-img { border-radius: 14px; aspect-ratio: 4 / 3; display: flex; align-items: flex-end; padding: 16px; border: 1px solid var(--line); }
.searchbar { display: flex; flex-wrap: wrap; gap: 8px; background: #fff; border: 1px solid #D1D5DB; border-radius: 10px; padding: 6px; max-width: 620px; }
.searchbar input { flex: 1 1 220px; min-height: 48px; border: 0; padding: 0 12px; font: inherit; font-size: 16px; outline: none; min-width: 0; }
.searchbar button { min-height: 48px; padding: 0 26px; }
.popular { display: flex; flex-wrap: wrap; gap: 10px; font-size: 13px; color: var(--muted); }

/* sections */
.section { padding-top: 56px; padding-bottom: 56px; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 20px; }
.h2 { margin: 0; font-family: var(--head); font-weight: 800; font-size: 36px; line-height: 1.05; }
.band { background: var(--soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.catgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.catcard { display: flex; flex-direction: column; gap: 10px; padding: 18px; border: 1px solid var(--line); border-radius: 10px; text-decoration: none; background: #fff; }
.catcard:hover { box-shadow: 0 6px 18px rgba(15,30,61,.12); color: var(--navy); }
.catcard-ico { width: 44px; height: 44px; border-radius: 10px; background: #F1F3F7; display: flex; align-items: center; justify-content: center; color: var(--navy); }
.catcard strong { font-size: 16px; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 18px; }
.step { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.step-n { font-family: var(--head); font-size: 40px; font-weight: 800; color: var(--red); line-height: 1; }
.step strong { font-size: 18px; color: var(--navy); }
.step p { margin: 0; color: var(--muted); line-height: 1.7; }
.cta { background: var(--navy); border-radius: 16px; padding: 40px; display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; color: #fff; }
.cta h2 { color: #fff; }
.cta p { margin: 8px 0 0; color: #CBD5E1; line-height: 1.7; max-width: 620px; }
.cta-btns { display: flex; flex-wrap: wrap; gap: 12px; }

/* part cards */
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.pcard { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; }
.pcard:hover { box-shadow: 0 6px 18px rgba(15,30,61,.12); }
.pcard-img { aspect-ratio: 4 / 3; display: block; position: relative; }
.pcard-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.pcard-name { color: var(--navy); font-weight: 700; font-size: 16px; text-decoration: none; line-height: 1.35; }
.pcard-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: auto; padding-top: 10px; }
.price { font-family: var(--head); font-size: 26px; color: var(--navy); }
.prow { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; padding: 12px 4px; border-bottom: 1px solid var(--line); }
.prow-img { width: 96px; height: 72px; border-radius: 8px; flex: none; display: block; position: relative; }
.prow-main { flex: 1 1 240px; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.prow .price { min-width: 110px; text-align: right; }

/* parts list page */
.pagehead { background: var(--soft); border-bottom: 1px solid var(--line); }
.pagehead-in { padding-top: 28px; padding-bottom: 28px; display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-end; justify-content: space-between; }
.pagehead h1 { margin: 0; font-family: var(--head); font-weight: 800; font-size: 46px; line-height: 1; }
.layout { display: flex; flex-wrap: wrap; gap: 28px; align-items: flex-start; padding-top: 28px; padding-bottom: 64px; }
.filters { flex: 1 1 230px; display: flex; flex-direction: column; gap: 22px; border: 1px solid var(--line); border-radius: 12px; padding: 18px; }
.filters h2 { margin: 0 0 6px; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.fcat { display: flex; justify-content: space-between; align-items: center; min-height: 40px; padding: 0 10px; border-radius: 8px; text-decoration: none; }
.fcat.on { background: var(--navy); color: #fff; font-weight: 700; }
.fcat.on:hover { color: #fff; }
.fcheck { display: flex; align-items: center; gap: 10px; min-height: 38px; cursor: pointer; }
.fcheck input { width: 18px; height: 18px; }
.results { flex: 999 1 620px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; }
.viewsw { display: inline-flex; border: 1px solid #D1D5DB; border-radius: 8px; overflow: hidden; }
.viewsw a { width: 42px; height: 40px; display: flex; align-items: center; justify-content: center; }
.viewsw a.on { background: var(--navy); color: #fff; }
.inp, select.inp, textarea.inp { width: 100%; min-height: 46px; border: 1px solid #9CA3AF; border-radius: 8px; padding: 0 12px; font: inherit; font-size: 15px; background: #fff; color: var(--ink); }
textarea.inp { padding: 10px 12px; min-height: 110px; resize: vertical; }
.inp:focus { outline: 2px solid var(--navy); outline-offset: 1px; }
.lbl { display: block; font-weight: 700; font-size: 14px; margin-bottom: 5px; color: var(--navy); }
.lbl .opt { font-weight: 400; color: var(--muted); }
.formgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 14px; }
.pager { display: flex; gap: 6px; justify-content: center; padding-top: 12px; }
.pager a { min-width: 44px; height: 44px; padding: 0 12px; display: flex; align-items: center; justify-content: center; border-radius: 8px; border: 1px solid #D1D5DB; text-decoration: none; font-weight: 700; }
.pager a[aria-current] { background: var(--navy); color: #fff; border-color: var(--navy); }

/* part detail */
.crumbs { padding-top: 18px; font-size: 14px; color: var(--muted); }
.detail { display: flex; flex-wrap: wrap; gap: 40px; padding-top: 20px; padding-bottom: 56px; }
.gallery { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.gallery-main { aspect-ratio: 4 / 3; border-radius: 12px; border: 1px solid var(--line); display: flex; align-items: flex-end; justify-content: space-between; padding: 14px; }
.thumbs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.thumbs button { aspect-ratio: 4 / 3; border-radius: 8px; border: 1px solid var(--line); cursor: pointer; padding: 0; }
.thumbs button[aria-pressed="true"] { border: 3px solid var(--red); }
.buybox { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.buybox h1 { margin: 0; font-family: var(--head); font-weight: 800; font-size: 44px; line-height: 1; }
.kv { border-collapse: collapse; font-size: 15px; }
.kv th { text-align: left; color: var(--muted); font-weight: 500; padding: 6px 16px 6px 0; width: 140px; vertical-align: top; }
.kv td { padding: 6px 0; }
.pricebox { border: 1px solid var(--line); border-radius: 12px; padding: 20px; display: flex; flex-direction: column; gap: 14px; background: #F9FAFB; }
.bigprice { font-family: var(--head); font-size: 48px; color: var(--navy); line-height: 1; }
.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.desc { flex: 1 1 100%; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 32px; border-top: 1px solid var(--line); padding-top: 32px; }
.desc .h2 { font-size: 30px; }
.webdesc { line-height: 1.8; }

/* cards / panels */
.panel { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 28px; }
.soft-page { background: var(--soft); }
.split { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.split-main { flex: 999 1 540px; min-width: 0; }
.split-side { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.done { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.done-ico { width: 56px; height: 56px; border-radius: 50%; background: var(--ok-bg); color: var(--ok); display: flex; align-items: center; justify-content: center; }
.seg { display: inline-flex; flex-wrap: wrap; gap: 4px; background: #E5E7EB; padding: 4px; border-radius: 10px; }
.seg a { min-height: 40px; padding: 0 16px; display: inline-flex; align-items: center; border-radius: 7px; font-weight: 700; text-decoration: none; color: var(--muted); }
.seg a.on { background: #fff; color: var(--navy); box-shadow: 0 1px 2px rgba(0,0,0,.12); }
.sumtable { border-collapse: collapse; width: 100%; font-size: 16px; }
.sumtable td { padding: 12px 0; border-bottom: 1px solid var(--line); }
.sumtable td:last-child { text-align: right; font-weight: 700; }
.sumtable tr:last-child td { border-bottom: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 46px; padding: 0 18px; border-radius: 10px; font: inherit; font-weight: 700; cursor: pointer; border: 1.5px solid #9CA3AF; background: #fff; color: var(--navy); display: inline-flex; align-items: center; text-decoration: none; }
.chip.on { border: 2px solid var(--navy); background: var(--navy); color: #fff; }

/* login */
.login-card { width: 100%; max-width: 920px; margin: 0 auto; display: flex; flex-wrap: wrap; background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.login-form { flex: 1 1 380px; padding: 40px; display: flex; flex-direction: column; gap: 16px; }
.login-side { flex: 1 1 320px; background: var(--navy); color: #E5E9F2; padding: 40px; display: flex; flex-direction: column; gap: 14px; }
.login-side h2 { color: #fff; }
.login-side p { margin: 0; color: #CBD5E1; line-height: 1.7; }

/* account */
.acc-head { background: var(--navy); color: #fff; }
.acc-head-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-top: 12px; padding-bottom: 12px; }
.acc-head a { color: #fff; }
.accnav { flex: 1 1 220px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 8px; display: flex; flex-direction: column; gap: 2px; }
.accnav a { display: flex; align-items: center; justify-content: space-between; min-height: 46px; padding: 0 14px; border-radius: 8px; font-weight: 700; text-decoration: none; }
.accnav a.on { background: var(--navy); color: #fff; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 18px; border-top: 4px solid var(--navy); }
.stat-num { font-family: var(--head); font-weight: 800; font-size: 38px; }
.tablebox { background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.tablebox-head { padding: 16px 18px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.tablebox-head h2 { margin: 0; font-size: 18px; }
.scroll { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; font-size: 12px; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); background: #F9FAFB; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.tbl td { padding: 12px; border-bottom: 1px solid #EEF0F4; white-space: nowrap; }
.tbl .num { text-align: right; font-variant-numeric: tabular-nums; }

/* footer */
.footer { background: var(--navy-3); color: #CBD5E1; font-size: 14px; margin-top: 0; }
.footer-grid { padding-top: 40px; padding-bottom: 40px; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 28px; }
.footer strong { color: #fff; }
.footer a { color: #CBD5E1; }
.footer-brand { font-family: var(--head); font-size: 24px; letter-spacing: .05em; }

/* floating buttons + chat */
.float-btns { position: fixed; right: 20px; bottom: 20px; display: flex; flex-direction: column; gap: 10px; z-index: 40; }
.fab { width: 56px; height: 56px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; box-shadow: 0 6px 16px rgba(0,0,0,.25); border: 0; cursor: pointer; }
.fab-wa { background: var(--wa); }
.fab-chat { background: var(--red); }
.fab:hover { color: #fff; transform: translateY(-1px); }
.chat { position: fixed; right: 20px; bottom: 150px; width: min(370px, calc(100vw - 20px)); max-height: min(560px, calc(100vh - 170px)); display: flex; flex-direction: column; background: #fff; border-radius: 16px; box-shadow: 0 12px 36px rgba(15,30,61,.3); border: 1px solid var(--line); overflow: hidden; z-index: 41; }
.chat[hidden] { display: none; }
.chat-head { background: var(--navy); color: #fff; padding: 12px 14px; display: flex; align-items: center; justify-content: space-between; }
.chat-head span { display: flex; flex-direction: column; }
.chat-head small { color: #CBD5E1; }
.chat-x { width: 40px; height: 40px; border: 0; background: none; color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.chat-body { padding: 14px; display: flex; flex-direction: column; gap: 10px; background: var(--soft); overflow-y: auto; flex: 1; }
.msg { max-width: 85%; padding: 10px 12px; font-size: 14px; line-height: 1.5; border-radius: 12px; }
.msg-bot { align-self: flex-start; background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.msg-me { align-self: flex-end; background: var(--navy); color: #fff; border-bottom-right-radius: 4px; }
.chat-quick { display: flex; flex-direction: column; gap: 8px; }
.chat-quick button, .chat-quick a { min-height: 44px; border: 1.5px solid var(--navy); border-radius: 10px; background: #fff; font: inherit; font-weight: 700; color: var(--navy); text-align: left; padding: 0 14px; cursor: pointer; display: flex; align-items: center; text-decoration: none; }
.chat-quick .quick-wa { background: var(--wa); border-color: var(--wa); color: var(--wa-ink); }
.chat-form { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--line); }
.chat-form input { flex: 1; min-width: 0; min-height: 44px; border: 1px solid #D1D5DB; border-radius: 10px; padding: 0 12px; font: inherit; }
.chat-form button { width: 44px; height: 44px; border: 0; border-radius: 10px; background: var(--red); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; }

/* ---------- database version additions ---------- */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.alert { border-radius: 10px; padding: 12px 16px; margin-bottom: 12px; border: 1px solid transparent; }
.alert ul { margin: 6px 0 0; padding-left: 20px; }
.alert-success { background: var(--ok-bg); color: var(--ok); border-color: #BBF7D0; }
.alert-error { background: var(--err-bg); color: var(--err); border-color: #FECACA; }
.alert-warn { background: var(--warn-bg); color: var(--warn); border-color: #FDE68A; }
.btn-disabled { background: #E5E7EB; color: var(--muted); cursor: default; }
.btn[disabled] { opacity: .7; cursor: wait; }
.no-photo { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; color: #6B7280; font-size: 13px; text-align: center; }
.pcard-img { overflow: hidden; }
.pcard-photo { display: block; width: 100%; height: 100%; object-fit: cover; }
.prow-img { overflow: hidden; }
.prow-photo { display: flex; width: 100%; height: 100%; object-fit: cover; border-radius: 8px; }
.prow-photo span { display: none; }
.side-photo { display: flex; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; }
.tbl-photo { display: flex; width: 52px; height: 40px; object-fit: cover; border-radius: 6px; }
.tbl-photo span, .tbl-photo svg { display: none; }
.price-ask { font-size: 20px; color: var(--muted); }
.fcat-sub { padding-left: 24px; font-size: 14px; min-height: 34px; }
.hero-photo { object-fit: cover; padding: 0; width: 100%; }
.gallery-main { position: relative; overflow: hidden; background: #F3F4F6; padding: 0; }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; display: block; }
.gallery-count { position: absolute; left: 12px; bottom: 12px; background: rgba(15,30,61,.85); color: #fff; font-size: 13px; padding: 4px 10px; border-radius: 6px; }
.thumbs button { overflow: hidden; background: #F3F4F6; }
.thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wa-card { justify-content: flex-start; gap: 14px; padding: 20px; border-radius: 14px; min-height: 0; }
/* formatted description from the panel editor (Quill classes) */
.ql-content p { margin: 0 0 10px; }
.ql-content h2 { font-size: 22px; margin: 16px 0 8px; font-family: var(--body); }
.ql-content h3 { font-size: 18px; margin: 14px 0 6px; font-family: var(--body); }
.ql-content ul, .ql-content ol { margin: 0 0 10px; padding-left: 22px; }
.ql-content .ql-font-serif { font-family: Georgia, 'Noto Serif JP', serif; }
.ql-content .ql-font-monospace { font-family: ui-monospace, Menlo, Consolas, monospace; }
.ql-content .ql-size-small { font-size: .8em; }
.ql-content .ql-size-large { font-size: 1.4em; }
.ql-content .ql-size-huge { font-size: 2em; }
.ql-content .ql-align-center { text-align: center; }
.ql-content .ql-align-right { text-align: right; }
.ql-content .ql-align-justify { text-align: justify; }
.ql-content .ql-indent-1 { padding-left: 2em; } .ql-content .ql-indent-2 { padding-left: 4em; } .ql-content .ql-indent-3 { padding-left: 6em; }
.ql-content .ql-indent-4 { padding-left: 8em; } .ql-content .ql-indent-5 { padding-left: 10em; }
@media print {
  .topstrip, .header, .footer, .float-btns, .chat, .accnav, .acc-head form, .tablebox-head form { display: none !important; }
  .soft-page { background: #fff; }
}

/* phones */
@media (max-width: 760px) {
  .topstrip-in > span:first-child { display: none; }
  .menu-btn { display: inline-flex; }
  .mainnav { display: none; flex-basis: 100%; flex-direction: column; align-items: stretch; gap: 0; border-top: 1px solid var(--line); padding-top: 6px; }
  .mainnav.open { display: flex; }
  .dd-panel { position: static; width: auto; box-shadow: none; border: 0; padding: 4px 0 12px 12px; }
  .login-btn { order: 2; margin-left: auto; width: 44px; padding: 0; }
  .login-text { display: none; }
  .menu-btn { order: 3; margin-left: 0; }
  .mainnav { order: 4; }
  .searchbar input { flex-basis: 140px; }
  .searchbar button { padding: 0 18px; }
  .hero-in { padding-top: 32px; padding-bottom: 32px; }
  .section { padding-top: 36px; padding-bottom: 36px; }
  .cta { padding: 24px; }
  .login-form, .login-side { padding: 24px; }
  .panel { padding: 20px; }
  .pgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .pcard-foot { flex-direction: column; align-items: stretch; }
  .price { font-size: 22px; }
  .chat { right: 10px; bottom: 90px; }
  .float-btns { flex-direction: row; right: 12px; bottom: 12px; }
}
