:root {
  --forest: #2F4A3D;
  --forest-dark: #1C2E26;
  --forest-light: #4A6B57;
  --sand: #E8DFC9;
  --sand-light: #F4EFE2;
  --cream: #FBF8F2;
  --rust: #B5572B;
  --rust-dark: #8F431F;
  --charcoal: #2A2A26;
  --stone: #74706A;
  --line: #DDD5C2;
  --radius: 4px;
  --shadow: 0 6px 24px rgba(28, 46, 38, 0.1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: "Noto Sans JP", "Hiragino Sans", sans-serif;
  background: var(--cream);
  color: var(--charcoal);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Demo notice ribbon ---------- */
.demo-ribbon {
  background: var(--forest-dark);
  color: var(--sand-light);
  font-size: 12.5px;
  text-align: center;
  padding: 9px 16px;
  letter-spacing: .02em;
}
.demo-ribbon strong { color: #F2C572; font-weight: 700; }

/* ---------- Announcement bar ---------- */
.announce-bar {
  background: var(--forest);
  color: var(--sand-light);
  text-align: center;
  font-size: 12.5px;
  padding: 7px 16px;
  letter-spacing: .03em;
}

/* ---------- Header ---------- */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 248, 242, 0.96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: 1180px;
  margin: 0 auto;
}
.logo {
  font-family: "Noto Serif JP", serif;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--forest-dark);
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.logo span { font-size: 10px; letter-spacing: .25em; color: var(--stone); font-family: "Noto Sans JP", sans-serif; font-weight: 500; }

nav.main-nav { display: flex; gap: 34px; }
nav.main-nav a {
  font-size: 13.5px;
  letter-spacing: .08em;
  font-weight: 600;
  color: var(--charcoal);
  position: relative;
  padding: 4px 0;
}
nav.main-nav a::after {
  content: "";
  position: absolute; left: 0; bottom: -2px;
  width: 0; height: 2px; background: var(--rust);
  transition: width .25s ease;
}
nav.main-nav a:hover::after { width: 100%; }

.header-tools { display: flex; align-items: center; gap: 18px; }
.header-tools button { color: var(--charcoal); display: flex; align-items: center; }
.header-tools .cart-count {
  background: var(--rust); color: #fff; font-size: 10px; border-radius: 50%;
  width: 16px; height: 16px; display: flex; align-items: center; justify-content: center;
  margin-left: -10px; margin-top: -10px;
}
.hamburger { display: none; }

.search-panel {
  max-width: 1180px; margin: 0 auto; padding: 0 24px;
  max-height: 0; overflow: hidden; transition: max-height .3s ease, padding .3s ease;
}
.search-panel.open { max-height: 80px; padding: 14px 24px; }
.search-panel input {
  width: 100%; border: 1px solid var(--line); background: #fff;
  padding: 12px 16px; font-size: 14px; border-radius: var(--radius);
}
.search-panel input:focus { outline: 2px solid var(--forest-light); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 86vh;
  display: flex;
  align-items: flex-end;
  color: #fff;
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center 65%;
}
.hero-bg::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(20,30,24,.78) 0%, rgba(20,30,24,.25) 55%, rgba(20,30,24,.45) 100%);
}
.hero-content { position: relative; padding: 0 24px 72px; max-width: 1180px; margin: 0 auto; width: 100%; }
.hero-eyebrow { font-size: 12.5px; letter-spacing: .3em; color: var(--sand); margin-bottom: 18px; }
.hero h1 {
  font-family: "Noto Serif JP", serif;
  font-size: clamp(32px, 5.2vw, 56px);
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 22px;
  text-shadow: 0 2px 18px rgba(0,0,0,.25);
}
.hero p { max-width: 480px; font-size: 14.5px; color: #EDE8DB; margin-bottom: 30px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 30px; font-size: 13.5px; font-weight: 700; letter-spacing: .08em;
  border-radius: var(--radius); transition: all .2s ease;
}
.btn-primary { background: var(--rust); color: #fff; }
.btn-primary:hover { background: var(--rust-dark); transform: translateY(-1px); }
.btn-outline { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.55); }
.btn-outline:hover { background: rgba(255,255,255,.12); }
.btn-dark { background: var(--forest-dark); color: #fff; }
.btn-dark:hover { background: var(--forest); }

/* ---------- Section heading ---------- */
.section { padding: 88px 0; }
.section-sand { background: var(--sand-light); }
.section-head { text-align: center; margin-bottom: 48px; }
.section-head .tag {
  display: inline-block; font-size: 11.5px; letter-spacing: .25em;
  color: var(--rust); font-weight: 700; margin-bottom: 12px;
}
.section-head h2 {
  font-family: "Noto Serif JP", serif; font-size: 28px; color: var(--forest-dark); margin-bottom: 12px;
}
.section-head p { color: var(--stone); font-size: 13.5px; max-width: 520px; margin: 0 auto; }

/* ---------- Before / After fix showcase ---------- */
.fix-showcase { background: var(--forest-dark); color: var(--sand-light); }
.fix-showcase .section-head h2 { color: #fff; }
.fix-showcase .section-head p { color: #C9C2AE; }
.fix-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.fix-card {
  background: #fff; border-radius: var(--radius); overflow: hidden; color: var(--charcoal);
}
.fix-card-label {
  padding: 12px 18px; font-size: 12.5px; font-weight: 700; letter-spacing: .08em;
  display: flex; align-items: center; gap: 8px;
}
.fix-card.before .fix-card-label { background: #F4D9CE; color: #8F431F; }
.fix-card.after .fix-card-label { background: #D6E6DA; color: #2F4A3D; }
.brand-card-demo {
  padding: 46px 20px; text-align: center; border-top: 1px solid var(--line);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 160px; background: #fff;
}
.brand-card-demo .badge {
  width: 56px; height: 56px; border-radius: 50%; background: var(--sand);
  display: flex; align-items: center; justify-content: center;
  font-family: "Noto Serif JP", serif; font-weight: 700; color: var(--forest-dark);
  margin-bottom: 14px; font-size: 20px;
}
.fix-card.before .brand-glitch {
  font-size: 92px; font-weight: 900; color: var(--charcoal); line-height: .8;
  overflow: hidden; width: 100%; white-space: nowrap;
}
.fix-card.after .brand-fixed {
  font-size: 15px; font-weight: 700; letter-spacing: .06em; color: var(--forest-dark);
}
.fix-card.after .brand-fixed-sub { font-size: 11px; color: var(--stone); margin-top: 4px; letter-spacing: .1em; }
.fix-note {
  margin-top: 28px; font-size: 12.5px; color: #C9C2AE; text-align: center; max-width: 620px; margin-left: auto; margin-right: auto;
}
.fix-note code { background: rgba(255,255,255,.1); padding: 2px 7px; border-radius: 3px; font-size: 11.5px; }

/* ---------- Brand grid ---------- */
.brand-filter-bar {
  display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-bottom: 36px;
}
.brand-filter-bar button {
  padding: 8px 18px; font-size: 12.5px; border: 1px solid var(--line); border-radius: 999px;
  color: var(--stone); font-weight: 600; transition: all .2s;
}
.brand-filter-bar button.active, .brand-filter-bar button:hover {
  background: var(--forest); color: #fff; border-color: var(--forest);
}
.brand-grid {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line);
}
.brand-tile {
  background: #fff; padding: 26px 14px; display: flex; flex-direction: column; align-items: center; gap: 10px;
  transition: background .2s;
}
.brand-tile:hover { background: var(--sand-light); }
.brand-tile .badge {
  width: 44px; height: 44px; border-radius: 50%; background: var(--sand);
  display: flex; align-items: center; justify-content: center;
  font-family: "Noto Serif JP", serif; font-weight: 700; color: var(--forest-dark); font-size: 15px;
}
.brand-tile span { font-size: 11px; text-align: center; letter-spacing: .03em; color: var(--charcoal); font-weight: 600; }

/* ---------- Category grid ---------- */
.category-grid {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px;
}
.category-card {
  position: relative; border-radius: var(--radius); overflow: hidden; height: 240px;
  color: #fff; display: flex; align-items: flex-end; padding: 20px;
}
.category-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.category-card:hover img { transform: scale(1.06); }
.category-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(20,30,24,.78), rgba(20,30,24,.05)); }
.category-card .cat-label { position: relative; font-size: 14px; font-weight: 700; letter-spacing: .06em; }
.category-card .cat-sub { position: relative; font-size: 10.5px; color: var(--sand); letter-spacing: .1em; margin-top: 2px; }
.category-card.ghost {
  border: 2px dashed var(--line); background: var(--sand-light); color: var(--stone);
  align-items: center; justify-content: center; text-align: center; flex-direction: column; gap: 6px;
}
.category-card.ghost .plus { font-size: 26px; color: var(--rust); }
.category-card.ghost strong { font-size: 12.5px; color: var(--forest-dark); }
.category-card.ghost small { font-size: 10.5px; max-width: 140px; line-height: 1.5; }

/* ---------- Product grid ---------- */
.product-toolbar {
  display: flex; justify-content: space-between; align-items: center; margin-bottom: 28px; flex-wrap: wrap; gap: 14px;
}
.product-toolbar .count { font-size: 12.5px; color: var(--stone); }
.live-search { position: relative; width: 280px; max-width: 100%; }
.live-search input {
  width: 100%; padding: 10px 14px 10px 36px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; background: #fff;
}
.live-search svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 15px; height: 15px; color: var(--stone); }

.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.product-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  transition: box-shadow .25s, transform .25s;
}
.product-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.product-img { position: relative; aspect-ratio: 1/1; overflow: hidden; background: var(--sand-light); }
.product-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.product-card:hover .product-img img { transform: scale(1.07); }
.product-tag {
  position: absolute; top: 10px; left: 10px; background: var(--rust); color: #fff;
  font-size: 10px; padding: 4px 9px; border-radius: 3px; font-weight: 700; letter-spacing: .04em;
}
.product-info { padding: 16px; }
.product-brand { font-size: 10.5px; color: var(--stone); letter-spacing: .08em; margin-bottom: 4px; font-weight: 600; }
.product-name { font-size: 13.5px; font-weight: 600; margin-bottom: 8px; min-height: 36px; }
.product-price { font-size: 14px; font-weight: 700; color: var(--forest-dark); }
.product-card.hidden { display: none; }
.no-result { text-align: center; padding: 60px 0; color: var(--stone); font-size: 13.5px; display: none; }
.no-result.show { display: block; }

/* ---------- Responsive proof ---------- */
.responsive-proof { text-align: center; }
.device-tabs { display: inline-flex; gap: 8px; background: #fff; padding: 6px; border-radius: 999px; border: 1px solid var(--line); margin-bottom: 30px; }
.device-tabs button {
  padding: 9px 20px; font-size: 12.5px; font-weight: 700; border-radius: 999px; color: var(--stone); display:flex; align-items:center; gap:6px;
}
.device-tabs button.active { background: var(--forest); color: #fff; }
.device-frame-wrap { display: flex; justify-content: center; overflow-x: auto; padding: 10px 0; }
.device-frame {
  border: 10px solid var(--forest-dark); border-radius: 18px; overflow: hidden; transition: width .4s ease, height .4s ease;
  width: 100%; max-width: 980px; height: 440px; box-shadow: var(--shadow); background: #fff;
}
.device-frame.tablet { max-width: 520px; height: 480px; }
.device-frame.mobile { max-width: 300px; height: 540px; }
.device-frame iframe { width: 100%; height: 100%; border: none; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.about-grid img { border-radius: var(--radius); height: 420px; width: 100%; object-fit: cover; }
.about-text .tag { font-size: 11.5px; letter-spacing: .25em; color: var(--rust); font-weight: 700; margin-bottom: 14px; display: block; }
.about-text h2 { font-family: "Noto Serif JP", serif; font-size: 26px; color: var(--forest-dark); margin-bottom: 18px; }
.about-text p { font-size: 13.5px; color: var(--stone); margin-bottom: 14px; }
.about-stats { display: flex; gap: 32px; margin-top: 26px; }
.about-stats div strong { display: block; font-size: 24px; color: var(--forest-dark); font-family: "Noto Serif JP", serif; }
.about-stats div span { font-size: 11px; color: var(--stone); letter-spacing: .05em; }

/* ---------- Proposal callout ---------- */
.proposal-callout {
  background: var(--sand); border-radius: var(--radius); padding: 44px; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap;
}
.proposal-callout h3 { font-family: "Noto Serif JP", serif; font-size: 20px; color: var(--forest-dark); margin-bottom: 8px; }
.proposal-callout p { font-size: 13px; color: var(--stone); max-width: 480px; }
.proposal-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 50px; }
.proposal-list .item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.proposal-list .item .num { font-family: "Noto Serif JP", serif; font-size: 22px; color: var(--rust); margin-bottom: 10px; }
.proposal-list .item h4 { font-size: 13.5px; margin-bottom: 6px; font-weight: 700; }
.proposal-list .item p { font-size: 12px; color: var(--stone); }

/* ---------- Footer ---------- */
footer { background: var(--forest-dark); color: #D7D2C2; padding: 64px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-logo { font-family: "Noto Serif JP", serif; font-size: 20px; color: #fff; margin-bottom: 12px; letter-spacing: .06em; }
.footer-grid p { font-size: 12.5px; color: #A9A491; max-width: 260px; }
.footer-col h5 { font-size: 12px; letter-spacing: .1em; color: #fff; margin-bottom: 16px; }
.footer-col a { display: block; font-size: 12.5px; color: #A9A491; margin-bottom: 10px; }
.footer-col a:hover { color: #fff; }
.payment-icons { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.payment-icons span {
  border: 1px solid #45574C; border-radius: 3px; padding: 3px 7px; font-size: 9.5px; color: #A9A491; letter-spacing: .02em;
}
.footer-bottom {
  border-top: 1px solid #3A4C41; padding-top: 22px; display: flex; justify-content: space-between; font-size: 11.5px; color: #8E8974; flex-wrap: wrap; gap: 10px;
}

/* ---------- Mobile ---------- */
@media (max-width: 980px) {
  nav.main-nav { display: none; }
  .hamburger { display: flex; }
  .brand-grid { grid-template-columns: repeat(3, 1fr); }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; }
  .about-grid img { height: 280px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .fix-grid { grid-template-columns: 1fr; }
  .proposal-list { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .brand-grid { grid-template-columns: repeat(2, 1fr); }
  .category-grid { grid-template-columns: 1fr 1fr; }
  .product-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .proposal-callout { flex-direction: column; align-items: flex-start; }
}
