:root {
  --navy: #16385f;
  --blue: #2872c7;
  --teal: #169c9c;
  --coral: #f06f61;
  --yellow: #f2b84b;
  --blue-soft: #eaf4ff;
  --green: #238a57;
  --green-soft: #eaf8f0;
  --orange: #db6b24;
  --ink: #172235;
  --muted: #617087;
  --line: #dbe6f2;
  --bg: #f4f8fc;
  --white: #fff;
  --shadow: 0 14px 34px rgba(22, 56, 95, 0.11);
  --radius: 22px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Sans",
    "Yu Gothic", sans-serif;
  line-height: 1.75;
}

a { color: inherit; }
button, input, select { font: inherit; }

.site-hero {
  position: relative;
  color: var(--white);
  background:
    radial-gradient(circle at 83% 18%, rgba(255, 191, 94, 0.56), transparent 30%),
    linear-gradient(112deg, rgba(20, 57, 94, 0.96), rgba(20, 146, 151, 0.78)),
    url("images/search-preview-storefront.jpg") center/cover;
  padding: 28px 18px 46px;
}

.product-detail-page .site-hero {
  color: #672f2b;
  background:
    linear-gradient(110deg, rgba(255, 218, 132, 0.96), rgba(255, 151, 125, 0.9)),
    url("images/search-preview-storefront.jpg") center/cover;
}

.product-detail-page .site-hero h1 {
  text-shadow: 0 2px 16px rgba(255, 255, 255, 0.9);
}

.product-detail-page .back-link {
  border-color: rgba(101, 59, 47, 0.32);
  background: rgba(255, 255, 255, 0.5);
}

.product-detail-page .draft-label {
  background: rgba(255, 255, 255, 0.48);
}

.inner {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
}

.topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  font-weight: 900;
  text-decoration: none;
}

.home-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  line-height: 1.25;
}

.home-link small {
  display: block;
  margin-top: 3px;
  font-size: 0.72rem;
  font-weight: 700;
  opacity: 0.82;
}

.back-link {
  padding: 7px 12px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  font-size: 0.9rem;
  font-weight: 800;
  text-decoration: none;
  backdrop-filter: blur(8px);
}

.draft-label {
  display: inline-flex;
  margin-top: 28px;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  font-size: 0.84rem;
  font-weight: 800;
}

h1 {
  max-width: 850px;
  margin: 12px 0 10px;
  font-size: clamp(2rem, 5vw, 3.6rem);
  line-height: 1.15;
  letter-spacing: 0.01em;
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.22);
}

.lead {
  max-width: 800px;
  margin: 0;
  font-size: clamp(1rem, 2.4vw, 1.15rem);
}

.hero-actions, .cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 17px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 900;
  text-decoration: none;
}

.button.primary {
  color: white;
  background: linear-gradient(135deg, #2e9b61, #21834f);
  box-shadow: 0 8px 20px rgba(33, 131, 79, 0.26);
}
.button.secondary { color: var(--navy); background: white; }
.button.outline { color: var(--navy); background: white; border: 1px solid #b8cee5; }

main.inner { padding: 30px 0 64px; }

.notice, .panel {
  margin-bottom: 22px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  box-shadow: var(--shadow);
}

.notice {
  border-color: #f2d4b6;
  background: #fff9f2;
}

.notice strong { color: #9b4a17; }

.section-title {
  margin: 0 0 8px;
  color: var(--navy);
  font-size: 1.35rem;
  line-height: 1.4;
}

.muted { color: var(--muted); }

.finder-panel {
  margin: 20px 0;
  padding: 22px;
  border: 1px solid #d9e7f2;
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 100% 0, rgba(255, 215, 128, 0.22), transparent 35%),
    linear-gradient(145deg, #fff, #f5fbff);
  box-shadow: var(--shadow);
}

.finder-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.finder-heading h2 {
  margin: 2px 0 0;
  color: var(--navy);
  font-size: 1.35rem;
  line-height: 1.4;
}

.finder-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.eyebrow {
  color: var(--teal);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.popular-symptoms {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.symptom-tile {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid var(--symptom-accent);
  border-radius: 999px;
  color: var(--symptom-accent);
  background: var(--symptom-bg);
  font-size: 0.9rem;
  font-weight: 900;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.symptom-tile:hover {
  transform: translateY(-2px);
  box-shadow: 0 9px 20px rgba(22, 56, 95, 0.1);
}

.symptom-cough { --symptom-accent: #3a8fd8; --symptom-bg: #edf7ff; --symptom-border: #c9e4f7; }
.symptom-phlegm { --symptom-accent: #20a38f; --symptom-bg: #edfaf6; --symptom-border: #c8eade; }
.symptom-throat { --symptom-accent: #ed756a; --symptom-bg: #fff2f0; --symptom-border: #f4d2cd; }
.symptom-cold { --symptom-accent: #d99a25; --symptom-bg: #fff8e7; --symptom-border: #f1dfae; }

.all-symptoms-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 12px;
  padding: 12px 16px;
  border-radius: 14px;
  color: white;
  background: linear-gradient(120deg, #235c91, #248f98);
  text-decoration: none;
}

.all-symptoms-link span:first-child,
.all-symptoms-link small { display: block; }
.all-symptoms-link small { margin-top: 2px; color: rgba(255, 255, 255, 0.82); font-size: 0.76rem; }
.all-symptoms-link span:last-child { font-size: 1.35rem; }

.controls {
  position: sticky;
  top: 8px;
  z-index: 10;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.category-controls {
  background:
    radial-gradient(circle at 100% 0, rgba(255, 215, 128, 0.22), transparent 35%),
    linear-gradient(145deg, #fff, #f5fbff);
}

.search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.search-row input {
  min-width: 0;
  min-height: 48px;
  padding: 10px 14px;
  border: 1px solid #b9d1e9;
  border-radius: 14px;
  outline: none;
}

.search-row input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(40, 114, 199, 0.13);
}

.result-count {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 88px;
  padding: 0 13px;
  border-radius: 14px;
  color: var(--navy);
  background: var(--blue-soft);
  font-weight: 900;
  white-space: nowrap;
}

.category-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 8px;
  padding-bottom: 3px;
}

.category-button {
  width: 100%;
  min-width: 0;
  padding: 8px 12px;
  border: 1px solid var(--category-color, #a9c6e4);
  border-radius: 999px;
  color: var(--category-color, var(--navy));
  background: color-mix(in srgb, var(--category-color) 7%, white);
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 900;
  line-height: 1.35;
  white-space: normal;
}

.category-button.active {
  color: white;
  background: var(--category-color, var(--navy));
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 22px;
}

.product-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid var(--line);
  border-top: 5px solid var(--category-color, var(--blue));
  border-radius: var(--radius);
  background: white;
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 38px rgba(22, 56, 95, 0.16);
}

.product-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 17px;
}

.title-line {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.product-card h2, .product-card h3 {
  margin: 0;
  color: var(--navy);
  font-size: 1.08rem;
  line-height: 1.5;
}

.form-badge, .tag, .category-badge, .stock {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.4;
}

.form-badge {
  flex: 0 0 auto;
  padding: 4px 9px;
  color: #4e5e8b;
  background: #f0f2fb;
}

.variant-switcher {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 12px 0 2px;
}

.price-switcher {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0 0 14px;
}

.variant-label {
  width: 100%;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.variant-button {
  font-family: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 5px 11px;
  border: 1px solid #a9c5df;
  border-radius: 999px;
  color: var(--navy);
  background: white;
  font-size: 0.84rem;
  font-weight: 900;
  text-decoration: none;
}

.variant-button:hover,
.variant-button.active {
  border-color: var(--navy);
  color: white;
  background: var(--navy);
}

.ingredient {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.badge-row, .tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 11px;
}

.category-badge {
  padding: 4px 9px;
  color: white !important;
  background: var(--category-color, var(--navy));
}

.tag {
  padding: 3px 8px;
  color: #315d8c;
  background: #eff6fd;
}

.effect-preview {
  display: -webkit-box;
  margin: 12px 0;
  overflow: hidden;
  color: #32435a;
  font-size: 0.92rem;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.price-from {
  margin: auto 0 12px;
  color: var(--muted);
  font-size: 0.88rem;
}

.price-from strong {
  color: var(--green);
  font-size: 1.05rem;
}

.card-link {
  display: block;
  padding: 10px 12px;
  border-radius: 13px;
  color: white;
  background: linear-gradient(120deg, var(--navy), #276b9c);
  font-weight: 900;
  text-align: center;
  text-decoration: none;
}

.empty {
  display: none;
  margin-top: 22px;
  padding: 28px;
  border: 1px dashed #a8bed4;
  border-radius: var(--radius);
  color: var(--muted);
  background: white;
  text-align: center;
}

.breadcrumbs {
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 0.9rem;
}

.detail-card {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(310px, 0.8fr);
  gap: 20px;
}

.detail-main, .price-panel {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  box-shadow: var(--shadow);
}

.detail-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
}

.detail-heading h1 {
  width: 100%;
  margin: 2px 0 0;
  color: var(--navy);
  font-size: clamp(1.65rem, 4vw, 2.45rem);
  text-shadow: none;
}

.info-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.info-item {
  padding: 15px;
  border-radius: 16px;
  background: #f6faff;
}

.info-item strong {
  display: block;
  margin-bottom: 4px;
  color: var(--navy);
}

.reference-note {
  padding: 12px 14px;
  border-left: 4px solid var(--blue);
  border-radius: 0 12px 12px 0;
  color: #244b7d;
  background: var(--blue-soft);
}

.price-panel { align-self: start; }
.price-panel h2 { margin-top: 0; color: var(--navy); }

.price-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.price-table th, .price-table td {
  padding: 10px 8px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.price-table th {
  color: white;
  background: var(--navy);
}

.line-price { color: var(--green); font-weight: 900; }
.supplement { display: block; color: var(--muted); font-size: 0.8rem; }

.stock {
  margin-top: 14px;
  padding: 5px 10px;
  color: #176a43;
  background: var(--green-soft);
}

.stock[data-stock="△"] { color: #965113; background: #fff3e5; }
.stock[data-stock="×"] { color: #9b3030; background: #fdecec; }

.safety-list { margin: 0; padding-left: 1.3em; }

footer {
  padding: 40px 24px 24px;
  color: #ccc;
  background: #212121;
}

.footer-inner {
  width: min(1040px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
}

footer h4 { margin: 0 0 12px; color: #fff; font-size: 14px; }
footer p, footer li { margin: 0; font-size: 13px; line-height: 2; }
footer ul { margin: 0; padding: 0; list-style: none; }
footer a { color: #ccc; }
footer a:hover { color: #fff; }
.footer-address-link { display: inline-block; }
.footer-phone-link { text-decoration: underline; text-underline-offset: 3px; }
footer .sns-icon { display: inline-block; width: 18px; height: 18px; margin-right: 6px; border-radius: 4px; vertical-align: -4px; }
.footer-bottom { max-width: 1040px; margin: 24px auto 0; padding-top: 16px; border-top: 1px solid #444; color: #888; text-align: center; font-size: 12px; }

@media (max-width: 900px) {
  .popular-symptoms { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail-card { grid-template-columns: 1fr; }
  .price-panel { position: static; }
}

@media (max-width: 620px) {
  .inner { width: min(100% - 24px, 1160px); }
  .site-hero { padding-inline: 12px; }
  .topline { align-items: stretch; flex-direction: column; gap: 10px; }
  .brand { max-width: none; line-height: 1.4; }
  .back-link { align-self: flex-start; }
  .site-hero h1 { font-size: clamp(1.75rem, 8vw, 2.25rem); }
  .finder-panel { padding: 16px; }
  .finder-heading { align-items: flex-start; flex-direction: column; gap: 5px; }
  .popular-symptoms { gap: 8px; }
  .symptom-tile { padding: 8px 7px; font-size: 0.82rem; }
  .all-symptoms-link { padding: 11px 13px; }
  .search-row { grid-template-columns: minmax(0, 1fr) 82px; }
  .category-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .category-button { padding: 8px 7px; font-size: 0.82rem; }
  .product-grid { grid-template-columns: 1fr; }
  .detail-main, .price-panel, .panel, .notice { padding: 16px; }
  footer { padding: 34px 18px 22px; }
  .footer-inner { width: 100%; grid-template-columns: 1fr; gap: 24px; }
  .button { width: 100%; }
}
