@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;600;700;800&family=Space+Grotesk:wght@500;600;700&display=swap");
:root {
  --paper: #f6f7f1;
  --ink: #193b32;
  --muted: #708178;
  --brand: #147c69;
  --lime: #e5ea93;
  --line: #dce4d9;
  --white: #fff;
  --danger: #ac493d;
  --shadow: 0 12px 40px #244d3210;
  font-family: "Noto Sans JP", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-size: 14px;
  line-height: 1.75;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a,
input {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: wait;
  opacity: 0.55;
}
img {
  display: block;
  max-width: 100%;
  object-fit: cover;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: clamp(30px, 4vw, 54px);
  line-height: 1.35;
  letter-spacing: -0.04em;
}
h2 {
  font-size: 24px;
  letter-spacing: -0.02em;
}
h3 {
  font-size: 16px;
}
p {
  color: var(--muted);
}
small {
  font-size: 11px;
  color: var(--muted);
}
header {
  height: 84px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(5vw, 24px);
  gap: 20px;
  background: var(--paper);
}
.wordmark {
  font:
    700 32px "Space Grotesk",
    sans-serif;
  letter-spacing: -1.5px;
}
.wordmark span {
  font-size: 11px;
  vertical-align: top;
  letter-spacing: 0;
  margin: 5px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand img {
  width: 34px;
  height: 34px;
}
.nav {
  display: flex;
  gap: 24px;
  align-items: center;
}
.nav a {
  font-weight: 500;
  font-size: 12px;
}
.btn,
button {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 11px 17px;
  font-weight: 600;
  background: #fff;
  color: var(--ink);
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  line-height: 1.4;
  transition:
    transform 0.15s,
    background 0.15s;
}
.btn:hover,
button:hover {
  background: #edf2e9;
  transform: translateY(-1px);
}
.primary {
  background: var(--brand);
  border-color: var(--brand);
  color: white;
}
.primary:hover {
  background: #116654;
}
.lime {
  background: var(--lime);
  border-color: var(--lime);
}
.ghost {
  border: 0;
  background: transparent;
  padding: 9px;
}
.danger {
  color: var(--danger);
  border-color: #efcfc8;
}
.small {
  font-size: 11px;
  padding: 8px 11px;
}
.wide {
  width: 100%;
}
.pill {
  display: inline-block;
  font-size: 10px;
  letter-spacing: 0.08em;
  border-radius: 6px;
  background: #edf1e4;
  color: #547350;
  padding: 5px 9px;
  font-weight: 600;
}
.eyebrow {
  font:
    600 11px "Space Grotesk",
    sans-serif;
  color: var(--brand);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.container {
  max-width: 1240px;
  margin: auto;
  padding: 42px 40px 80px;
}
.heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 30px;
}
.heading p {
  margin-top: 8px;
}
.heading h1 {
  font-size: 32px;
}
.row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.between {
  justify-content: space-between;
}
.stack {
  display: grid;
  gap: 18px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.panel {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: white;
  box-shadow: var(--shadow);
}
.panel h3 {
  margin-bottom: 8px;
}
.muted {
  color: var(--muted);
}
.empty {
  text-align: center;
  padding: 54px 20px;
  color: var(--muted);
  border: 1px dashed var(--line);
  border-radius: 16px;
  background: #ffffff80;
}
.loading {
  padding: 90px;
  text-align: center;
  color: var(--muted);
}
.error {
  padding: 18px;
  border: 1px solid #f2d4ce;
  background: #fff4f1;
  color: var(--danger);
  border-radius: 12px;
  margin: 16px 0;
}
.notice {
  padding: 16px;
  background: #edf4e7;
  border: 1px solid #dbe8cd;
  border-radius: 12px;
  color: #456243;
  font-size: 12px;
}
.hero {
  max-width: 1400px;
  margin: auto;
  padding: 64px 6vw 74px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 70px;
  align-items: center;
}
.hero h1 {
  margin: 20px 0;
}
.hero p {
  max-width: 440px;
  line-height: 2;
}
.hero .row {
  margin-top: 30px;
}
.hero-art {
  min-height: 430px;
  border-radius: 30px;
  background: #dfe8d7;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero-art:before,
.hero-art:after {
  content: "";
  position: absolute;
  border: 1px solid #a1bda0;
  border-radius: 50%;
  width: 380px;
  height: 380px;
  transform: translate(100px, -60px);
}
.hero-art:after {
  width: 500px;
  height: 500px;
  transform: translate(100px, -60px);
}
.reward-card {
  background: #fffdf2;
  width: 290px;
  border-radius: 20px;
  padding: 24px;
  transform: rotate(-7deg);
  box-shadow: 0 28px 55px #38644b30;
  z-index: 1;
}
.reward-card .top {
  font-size: 11px;
  letter-spacing: 2px;
}
.reward-card strong {
  font: 600 58px "Space Grotesk";
  display: block;
  margin: 16px 0;
  color: var(--brand);
}
.reward-card .stamps {
  display: flex;
  gap: 8px;
  margin: 18px 0;
}
.reward-card .stamps i {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--brand);
  display: grid;
  place-items: center;
  color: var(--lime);
  font-style: normal;
}
.reward-card .stamps i:last-child {
  background: #e6eddd;
}
.art-label {
  position: absolute;
  bottom: 30px;
  right: 24px;
  background: var(--brand);
  color: #fff;
  padding: 14px 22px;
  border-radius: 12px;
  z-index: 2;
  font-size: 13px;
  transform: rotate(4deg);
  box-shadow: var(--shadow);
}
.section {
  border-top: 1px solid var(--line);
  padding-top: 42px;
  margin-top: 34px;
}
.feature-num {
  font: 500 32px "Space Grotesk";
  color: #97aa95;
  display: block;
  margin-bottom: 20px;
}
.price-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}
.price {
  padding: 24px 18px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
}
.price.highlight {
  background: #eaf0d9;
  border-color: #bccda3;
}
.price strong {
  display: block;
  font: 600 27px "Space Grotesk";
  margin: 16px 0;
}
.price ul {
  list-style: none;
  padding: 0;
  margin: 20px 0;
  color: #698069;
  font-size: 11px;
}
.price li {
  margin: 8px 0;
}
.shop-hero {
  border-radius: 22px;
  padding: 40px;
  background: #e7eedc;
  margin-bottom: 28px;
  position: relative;
  background-size: cover;
  background-position: center;
}
.shop-hero.cover:before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 22px;
  background: #ffffffdb;
}
.shop-hero > * {
  position: relative;
}
.shop-logo {
  width: 72px;
  height: 72px;
  border-radius: 15px;
  margin-bottom: 14px;
}
.shop-hero h1 {
  font-size: 34px;
}
.shop-hero p {
  white-space: pre-line;
  max-width: 680px;
  margin: 12px 0;
}
.shop-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 26px;
  align-items: start;
}
.product {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: white;
}
.product-img {
  aspect-ratio: 1.35;
  background: #e9eee3;
  display: grid;
  place-items: center;
  position: relative;
}
.product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.product-img svg {
  width: 70px;
  height: 70px;
  color: #9db694;
}
.product-body {
  padding: 20px;
}
.product-body p {
  font-size: 12px;
  margin: 7px 0;
  white-space: pre-line;
}
.product-price {
  font: 600 23px "Space Grotesk";
  color: var(--brand);
  margin: 15px 0;
}
.product-price span {
  font: 400 11px "Noto Sans JP";
  margin-left: 5px;
}
.point-icon {
  display: inline-block;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  vertical-align: middle;
  margin-right: 5px;
}
.cart {
  position: sticky;
  top: 20px;
}
.cart-item {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.cart-total {
  margin: 18px 0;
  display: grid;
  gap: 8px;
}
.balance {
  font: 600 34px "Space Grotesk";
  color: var(--brand);
}
.sidebar {
  width: 210px;
  flex-shrink: 0;
}
.admin-layout {
  display: flex;
  gap: 30px;
  align-items: flex-start;
}
.sidebar .panel {
  padding: 18px;
  margin-bottom: 14px;
}
.side-nav {
  display: grid;
  gap: 5px;
}
.side-nav button {
  border: 0;
  justify-content: flex-start;
  background: transparent;
  color: var(--muted);
  font-weight: 500;
}
.side-nav button.active {
  background: #e3eadb;
  color: var(--brand);
}
.admin-main {
  min-width: 0;
  flex: 1;
}
.stat strong {
  display: block;
  font: 600 34px "Space Grotesk";
  margin: 12px 0;
}
.table-wrap {
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
th {
  text-align: left;
  color: var(--muted);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.03em;
  padding: 13px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
td {
  padding: 15px 13px;
  border-bottom: 1px solid #edf0e9;
  vertical-align: top;
}
td:last-child {
  white-space: nowrap;
}
tbody tr:last-child td {
  border: 0;
}
.thumb {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background: #edf0e7;
}
.form {
  display: grid;
  gap: 17px;
}
.form label {
  display: grid;
  gap: 7px;
  color: #4c6756;
  font-size: 12px;
  font-weight: 500;
}
.form input,
.form textarea,
.form select,
input.search {
  padding: 12px 13px;
  border: 1px solid var(--line);
  border-radius: 9px;
  min-width: 0;
  width: 100%;
  background: #fdfefb;
  color: var(--ink);
}
.form input:focus,
.form textarea:focus,
.form select:focus {
  outline: 2px solid #bdd5a5;
  outline-offset: 1px;
}
.form input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--brand);
}
.form label.check {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 400;
}
.form textarea {
  min-height: 100px;
  resize: vertical;
}
.form .hint {
  font-weight: 400;
  font-size: 11px;
  color: var(--muted);
}
.form .cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}
.form-error {
  color: var(--danger);
  font-size: 12px;
}
.login-box {
  max-width: 430px;
  margin: 35px auto;
}
.login-box h1 {
  font-size: 28px;
  margin: 18px 0 10px;
}
.login-box p {
  margin-bottom: 24px;
  font-size: 12px;
}
.steps {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 20px;
}
.qr-box {
  max-width: 440px;
  margin: 30px auto;
  text-align: center;
}
.qr-box canvas {
  display: block;
  margin: 18px auto;
  max-width: 100%;
}
.qr-box .amount {
  font: 600 60px "Space Grotesk";
  color: var(--brand);
}
.qr-display canvas {
  width: 210px;
  height: 210px;
  margin: 10px auto;
}
.qr-display {
  text-align: center;
}
.qr-display a {
  font-size: 11px;
  overflow-wrap: anywhere;
  color: var(--brand);
}
.order-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}
.order-card ul {
  padding-left: 19px;
  font-size: 12px;
}
.order-meta {
  display: flex;
  gap: 16px;
  align-items: center;
  font-size: 11px;
  color: var(--muted);
  margin-top: 8px;
}
.ledger-pos {
  color: var(--brand);
  font-weight: 600;
}
.ledger-neg {
  color: var(--danger);
  font-weight: 600;
}
.search {
  max-width: 350px;
}
.bar {
  height: 9px;
  border-radius: 9px;
  background: #e3eadb;
  overflow: hidden;
}
.bar i {
  display: block;
  height: 100%;
  background: var(--brand);
  border-radius: 9px;
}
.mobile-hide {
  display: inline;
}
.preline {
  white-space: pre-line;
}
.code {
  font-family: monospace;
  font-size: 11px;
  overflow-wrap: anywhere;
}
footer {
  padding: 38px 5vw;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 25px;
  align-items: center;
}
footer p {
  font-size: 11px;
}
footer small {
  margin-left: auto;
}
#toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: white;
  padding: 12px 24px;
  border-radius: 10px;
  font-size: 12px;
  z-index: 100;
  box-shadow: var(--shadow);
  display: none;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 30px;
  width: 600px;
  max-width: calc(100% - 32px);
  max-height: 90vh;
  color: var(--ink);
  background: white;
}
dialog::backdrop {
  background: #142f2780;
  backdrop-filter: blur(3px);
}
dialog .heading {
  margin-bottom: 24px;
}
dialog h2 {
  font-size: 21px;
}
.camera {
  width: 100%;
  max-height: 300px;
  background: #193b32;
  border-radius: 12px;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid #97b783;
  outline-offset: 3px;
}
@media (max-width: 1100px) {
  .hero {
    gap: 30px;
  }
  .shop-layout {
    grid-template-columns: 1fr 260px;
  }
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .price-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .sidebar {
    width: 180px;
  }
  .container {
    padding: 32px 24px 60px;
  }
}
@media (max-width: 720px) {
  header {
    height: 70px;
    padding: 0 20px;
  }
  .brand img {
    width: 28px;
  }
  .wordmark {
    font-size: 26px;
  }
  .nav {
    gap: 8px;
  }
  .nav a {
    font-size: 11px;
  }
  .mobile-hide {
    display: none;
  }
  .hero {
    padding: 35px 24px;
    grid-template-columns: 1fr;
  }
  .hero h1 {
    font-size: 38px;
  }
  .hero-art {
    min-height: 340px;
  }
  .hero p {
    font-size: 12px;
  }
  .container {
    padding: 30px 20px 50px;
  }
  .heading {
    align-items: flex-start;
  }
  .heading h1 {
    font-size: 27px;
  }
  .shop-layout {
    grid-template-columns: 1fr;
  }
  .cart {
    position: static;
  }
  .shop-hero {
    padding: 26px;
  }
  .grid,
  .two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .price-grid {
    grid-template-columns: 1fr 1fr;
  }
  .price {
    padding: 18px;
  }
  .product-body {
    padding: 14px;
  }
  .product-body h3 {
    font-size: 13px;
  }
  .product-price {
    font-size: 21px;
  }
  .product-body .row {
    gap: 6px;
  }
  .product-body button {
    font-size: 11px;
    padding: 9px;
  }
  .admin-layout {
    display: block;
  }
  .sidebar {
    width: 100%;
    margin-bottom: 22px;
  }
  .sidebar .panel {
    display: none;
  }
  .side-nav {
    display: flex;
    overflow: auto;
    padding-bottom: 8px;
  }
  .side-nav button {
    white-space: nowrap;
  }
  .stat {
    padding: 19px;
  }
  .panel {
    padding: 20px;
  }
  .form .cols {
    grid-template-columns: 1fr;
  }
  .heading .row {
    justify-content: flex-end;
  }
  .four {
    grid-template-columns: 1fr 1fr;
  }
  .login-box {
    margin: 0 auto;
  }
  .qr-display canvas {
    width: 170px;
    height: 170px;
  }
  footer {
    flex-wrap: wrap;
    gap: 12px;
  }
  footer small {
    width: 100%;
    margin: 0;
  }
  .qr-grid {
    grid-template-columns: 1fr;
  }
  .loading {
    padding: 65px 15px;
  }
  dialog {
    padding: 22px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

.shop-image-field { display: grid; gap: 10px; align-content: start; }
.shop-image-preview { width: 100%; height: 160px; object-fit: contain; border-radius: 12px; background: #f1f5f3; }
.shop-image-preview[hidden] { display: none; }
.shop-color-control { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.shop-color-control input[type="color"] { width: 64px; height: 48px; padding: 4px; cursor: pointer; flex: 0 0 64px; }
.shop-color-control input[type="text"] { width: 130px; font-family: monospace; }
.shop-color-control span { font-size: 13px; }

.image-editor { display: grid; gap: 14px; }
.image-editor canvas { width: 100%; height: auto; display: block; cursor: grab; touch-action: none; background-color: #fff; background-image: conic-gradient(#d9d9d9 25%, #fff 0 50%, #d9d9d9 0 75%, #fff 0); background-size: 20px 20px; border: 1px solid #aaa; }
.image-editor canvas:active { cursor: grabbing; }
.image-editor .crop-zoom { width: 100%; padding: 0; }
.shop-logo { object-fit: contain; }
#logo-preview { aspect-ratio: 1; object-fit: contain; }
#cover-preview { aspect-ratio: 8 / 3; object-fit: contain; }

.cart-item { flex-wrap: wrap; align-items: center; }
.cart-actions { display: flex; gap: 6px; flex-wrap: wrap; margin-left: auto; }
.cart-actions button { min-width: 34px; }
#account-profile { margin-top: 14px; margin-bottom: 14px; }

.account-layout { display: grid; grid-template-columns: 220px minmax(0,1fr); gap: 28px; align-items: start; }
.account-sidebar { position: sticky; top: 20px; }
.account-sidebar .side-nav { margin-top: 16px; }
.account-sidebar .side-nav a { display: block; padding: 13px 16px; border-radius: 12px; text-decoration: none; color: var(--ink); }
.account-sidebar .side-nav a.active { background: var(--brand); color: white; }
.account-main { min-width: 0; }
.membership-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(240px,1fr)); gap: 20px; }
button.membership-card { display: block; width: 100%; padding: 0; border: 1px solid var(--line); background: white; color: var(--ink); border-radius: 20px; overflow: hidden; text-align: left; white-space: normal; transition: transform .15s,box-shadow .15s; }
.membership-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px #173b3218; }
.membership-card:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; }
.membership-cover { aspect-ratio: 8 / 3; overflow: hidden; background: #e7eedc; }
.membership-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.membership-cover-placeholder { display: block; height: 100%; background: linear-gradient(125deg,#e7eedc,#cadfd7); }
.membership-info { position: relative; padding: 36px 20px 22px; }
.membership-logo { position: absolute; top: -30px; width: 56px; height: 56px; object-fit: contain; background: white; border: 3px solid white; border-radius: 14px; }
.membership-logo-placeholder { display: grid; place-items: center; font-size: 28px; color: var(--brand); }
.membership-info h3 { margin: 0 0 8px; font-size: 18px; }
.account-filters { display: flex; gap: 16px; margin: 20px 0; flex-wrap: wrap; }
.account-filters label { flex: 1; min-width: 150px; }
.member-card-heading { display: flex; align-items: center; gap: 15px; }
.member-card-logo { width: 64px; height: 64px; object-fit: contain; border-radius: 14px; }
.passbook-nav { display: flex; justify-content: space-between; align-items: center; gap: 15px; text-align: center; }
.passbook-nav > div { flex: 1; }
.expiry-pill { margin-left: 8px; background: #fce9e5; color: #ac4839; }
.order-shop-name { display: flex; align-items: center; gap: 10px; }
.order-shop-name img { width: 34px; height: 34px; object-fit: contain; border-radius: 8px; }
.order-products { margin: 16px 0; display: grid; gap: 12px; }
.order-product { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.order-product > img { width: 56px; height: 56px; object-fit: contain; border-radius: 8px; }
.order-product > div { flex: 1; min-width: 140px; }
.order-product small { display: block; }
.order-card > .btn { margin-top: 12px; }
.shop-hero { padding-top: 82px; }
.shop-hero-actions { position: absolute; right: 20px; top: 18px; display: flex; gap: 8px; z-index: 1; }
@media(max-width:760px) {
 .account-layout { grid-template-columns: minmax(0,1fr); gap: 18px; }
 .account-sidebar { position: static; }
 .account-sidebar .panel { display: none; }
 .account-sidebar .side-nav { display: flex; overflow-x: auto; white-space: nowrap; margin-top: 0; padding-bottom: 5px; }
 .account-sidebar .side-nav a { flex-shrink: 0; padding: 11px 13px; }
 .membership-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
 .membership-info { padding: 32px 12px 16px; }
 .membership-info h3 { font-size: 15px; }
 .shop-hero-actions { right: 12px; top: 12px; }
}
@media(max-width:360px) { .membership-grid { grid-template-columns: minmax(0,1fr); } }

[hidden] { display: none !important; }
button[aria-busy="true"] { cursor: wait; opacity: .75; }
button[aria-busy="true"]::before { content: ""; width: 14px; height: 14px; margin-right: 8px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: busy-spin .8s linear infinite; }
@keyframes busy-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { button[aria-busy="true"]::before { animation: none; } }

.rank-badge { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 13px; margin: 6px 0; }
.rank-badge img { width: 40px; height: 40px; object-fit: contain; }
.rank-emblem { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--rank-color); color: white; border: 3px double white; box-shadow: 0 0 0 2px var(--rank-color); font-size: 19px; }
.rank-editor { display: grid; gap: 15px; margin: 14px 0; }
.rank-brand-row { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.rank-brand-row > label { flex: 1; min-width: 150px; }
.rank-brand-row .shop-color-control input[type=color] { width: 48px; height: 42px; padding: 2px; }
.rank-condition { border: 1px solid var(--line); padding: 14px; border-radius: 12px; }
.rank-condition .cols { align-items: start; }

/* MOPEC official brand artwork */
.brand img { object-fit: contain; border-radius: 8px; flex-shrink: 0; }
.footer-brand { display: inline-flex; align-items: center; justify-content: center; gap: 12px; }
.footer-brand img { object-fit: contain; border-radius: 10px; }
.sample-brand { display: inline-flex; align-items: center; gap: 8px; }
.sample-brand img { object-fit: contain; border-radius: 6px; }
@media (max-width: 720px) { .brand img { height: 28px; } }

/* Feature landing page */
.features-intro { padding-top: 48px; padding-bottom: 52px; }
.features-back { display: block; font-size: 13px; margin-bottom: 38px; }
.features-intro h1 { font-size: clamp(34px, 5vw, 66px); line-height: 1.3; margin: 18px 0; letter-spacing: -.035em; }
.features-lead { font-size: 18px; line-height: 1.9; margin-bottom: 26px; }
.features-flow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 42px; }
.features-flow > span { padding: 22px; border: 1px solid var(--line); border-radius: 16px; color: var(--brand); background: #fff; }
.features-flow b { display: block; color: var(--ink); margin-top: 8px; }
.features-index { display: flex; flex-wrap: wrap; gap: 12px; padding-bottom: 36px; }
.features-index a { font-size: 13px; padding: 10px 16px; border: 1px solid var(--line); border-radius: 30px; }
.features-index a:hover { background: #e9f4ef; }
.features-section { padding: 54px 0; border-top: 1px solid var(--line); scroll-margin-top: 100px; }
.features-section-head { display: flex; gap: 24px; align-items: flex-start; max-width: 850px; margin-bottom: 28px; }
.features-number { font-size: 44px; font-weight: 700; line-height: 1.2; color: var(--brand); opacity: .6; }
.features-section h2 { font-size: clamp(25px, 3vw, 36px); line-height: 1.4; margin: 10px 0 18px; }
.features-section-head p, .features-detail-grid p { line-height: 1.9; }
.features-detail-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.features-detail-grid h3 { margin-bottom: 14px; }
.features-rank-demo { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; padding: 24px; margin-top: 22px; background: #eef5f0; border-radius: 16px; }
.features-tier { padding: 10px 16px; border-radius: 30px; }
.tier-first { color: #5f625f; background: #fff; }.tier-middle { color: #176854; background: #d0e9dc; }.tier-last { color: #755724; background: #f3dfad; }
.features-rank-demo small { width: 100%; }
.features-faq details { padding: 20px 0; border-bottom: 1px solid var(--line); }
.features-faq summary { cursor: pointer; font-weight: 600; }
.features-faq details p { margin-top: 14px; max-width: 850px; line-height: 1.9; }
.features-cta { text-align: center; padding: 54px 24px; margin: 20px 0 70px; background: #eef5f0; border-radius: 24px; }
.features-cta img { border-radius: 16px; }.features-cta h2 { font-size: 32px; margin: 20px 0; }.features-cta p { margin-bottom: 22px; }.features-cta .row { justify-content: center; }
@media (max-width: 720px) { .features-detail-grid, .features-flow { grid-template-columns: 1fr; }.features-intro { padding-top: 28px; }.features-section { padding: 34px 0; }.features-section-head { gap: 14px; }.features-number { font-size: 32px; }.features-lead { font-size: 16px; }.features-flow { gap: 10px; }.features-flow > span { padding: 16px; }.features-flow b { display: inline; margin-left: 12px; }.features-cta h2 { font-size: 26px; } }

/* Cumulative plan comparison and active subscription */
.price { position: relative; display: flex; flex-direction: column; padding-top: 48px; }
.price .btn { margin-top: auto; }
.plan-recommend { position: absolute; top: 12px; left: 14px; padding: 4px 10px; border-radius: 6px; background: #147c69; color: #fff; font-size: 12px; font-weight: 700; }
.price .plan-feature-list { font-size: 12px; line-height: 1.7; color: #34483e; }
.price .plan-feature-list li { display: flex; align-items: flex-start; gap: 7px; margin: 12px 0; }
.plan-check { display: inline-flex; justify-content: center; align-items: center; flex-shrink: 0; width: 17px; height: 17px; border: 1px solid #83ab96; border-radius: 4px; color: #147c69; font-size: 12px; margin-top: 2px; }
.contract-current { border: 2px solid #147c69; background: #edf6f1; }
.contract-label { display: inline-block; margin-bottom: 12px; padding: 4px 10px; color: white; background: #147c69; border-radius: 6px; font-size: 12px; font-weight: 700; }
.contract-current button:disabled { background: #d6e8dd; color: #285e48; border-color: #9fc4ae; opacity: 1; cursor: default; }
