:root {
  --bg: #fffaf2;
  --bg-soft: #f3e4cf;
  --text: #372315;
  --muted: #7b6450;
  --line: #e3ceb2;
  --dark: #4a2f1e;
  --accent: #b8793d;
  --accent-soft: #fff1dd;
  --shadow: 0 24px 80px rgba(93, 57, 29, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 80% 0%, rgba(184, 121, 61, 0.18), transparent 26%),
    linear-gradient(180deg, #fbf3e6, #fffaf2 44%, #f3e4cf);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN",
    "Yu Gothic", "Meiryo", system-ui, sans-serif;
  letter-spacing: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
a,
textarea {
  font: inherit;
  -webkit-tap-highlight-color: transparent;
}

.sr-header {
  position: fixed;
  top: 12px;
  left: 50%;
  z-index: 30;
  width: min(420px, calc(100% - 24px));
  height: 58px;
  display: flex;
  align-items: center;
  padding: 0 18px;
  border: 1px solid rgba(227, 206, 178, 0.9);
  border-radius: 18px;
  background: rgba(255, 250, 242, 0.8);
  box-shadow: 0 10px 40px rgba(93, 57, 29, 0.12);
  backdrop-filter: blur(18px);
  transform: translateX(-50%);
}

.sr-header a {
  font-size: 18px;
  font-weight: 800;
}

.sr-app {
  width: min(420px, 100%);
  margin: 0 auto;
  padding: 82px 12px 46px;
}

.store-hero {
  position: relative;
  min-height: 430px;
  border-radius: 32px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.store-hero img {
  width: 100%;
  height: 100%;
  min-height: 430px;
  display: block;
  object-fit: cover;
  object-position: var(--image-x, 50%) var(--image-y, 50%);
  transform: scale(var(--image-scale, 1));
  transform-origin: var(--image-x, 50%) var(--image-y, 50%);
}

.store-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(59, 36, 22, 0.10), rgba(59, 36, 22, 0.76)),
    radial-gradient(circle at 80% 10%, rgba(184, 121, 61, 0.30), transparent 34%);
}

.store-copy {
  position: absolute;
  right: 24px;
  bottom: 28px;
  left: 24px;
  color: #fff8ee;
}

.store-copy p,
.section-title p {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.store-copy h1 {
  margin: 0 0 8px;
  font-size: 44px;
  line-height: 1.04;
  font-weight: 800;
}

.store-copy span {
  color: rgba(255, 248, 238, 0.86);
  font-size: 15px;
  font-weight: 700;
}

.review-section,
.feedback-section,
.links-section {
  margin-top: 18px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 250, 242, 0.9);
  box-shadow: 0 18px 56px rgba(93, 57, 29, 0.10);
  backdrop-filter: blur(16px);
}

.primary-action,
.secondary-action {
  width: 100%;
  min-height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.primary-action {
  color: #fff8ee;
  background: var(--dark);
  box-shadow: 0 16px 36px rgba(93, 57, 29, 0.20);
}

.secondary-action {
  color: var(--text);
  background: var(--accent-soft);
}

.primary-action:hover,
.secondary-action:hover,
.link-card:hover {
  transform: translateY(-2px);
}

.message-card {
  margin-top: 16px;
  padding: 20px;
  border: 1px solid #e3ceb2;
  border-radius: 22px;
  background: #fff1dd;
}

.message-card p {
  margin: 0 0 14px;
  color: #4f3421;
  font-size: 15px;
  line-height: 1.9;
}

.message-card p:last-child {
  margin-bottom: 0;
}

.section-title h2 {
  margin: 0 0 18px;
  font-size: 26px;
  line-height: 1.2;
}

.success-message {
  margin: 14px 0 0;
  padding: 13px 14px;
  border-radius: 16px;
  color: #5b3a22;
  background: #f5dfc5;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.6;
}

.link-list {
  display: grid;
  gap: 10px;
}

.link-card {
  min-height: 62px;
  display: grid;
  grid-template-columns: 44px 1fr 24px;
  gap: 12px;
  align-items: center;
  padding: 10px 14px 10px 10px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fffaf2;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.link-card:hover {
  box-shadow: 0 16px 40px rgba(10, 12, 16, 0.08);
}

.link-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  color: var(--text);
  background: #ffffff;
  font-size: 15px;
  font-weight: 800;
}

.link-icon img {
  width: 38px;
  height: 38px;
  display: block;
  object-fit: contain;
}

.link-icon.is-x img {
  width: 30px;
  height: 30px;
  filter: invert(1);
}

.link-card strong {
  font-size: 15px;
}

.link-card span:last-child {
  color: var(--muted);
  font-size: 22px;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: end center;
  overflow-y: auto;
  padding: 18px 12px;
  background: rgba(59, 36, 22, 0.42);
  backdrop-filter: blur(10px);
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.modal-backdrop[hidden] {
  display: none;
}

.modal-panel {
  position: relative;
  width: min(420px, 100%);
  max-height: calc(100vh - 36px);
  max-height: calc(100dvh - 36px);
  overflow-x: hidden;
  overflow-y: auto;
  padding: 26px;
  border: 1px solid rgba(232, 234, 237, 0.9);
  border-radius: 30px;
  background: #fffaf2;
  box-shadow: 0 30px 90px rgba(93, 57, 29, 0.28);
  animation: modalIn 220ms ease both;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  -webkit-overflow-scrolling: touch;
}

.modal-panel h2 {
  max-width: 280px;
  margin: 0 0 18px;
  font-size: 24px;
  line-height: 1.3;
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  color: var(--muted);
  background: var(--bg-soft);
  font-size: 24px;
  cursor: pointer;
}

textarea {
  width: 100%;
  min-height: 180px;
  display: block;
  margin-bottom: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 20px;
  color: var(--text);
  background: #fffaf2;
  font-size: 16px;
  line-height: 1.7;
  resize: vertical;
  outline: none;
}

textarea:focus {
  border-color: rgba(47, 109, 246, 0.48);
  box-shadow: 0 0 0 4px rgba(184, 121, 61, 0.16);
}

.survey-fields {
  display: grid;
  gap: 12px;
  margin-bottom: 14px;
}

.survey-field {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #ffffff;
}

.survey-field legend {
  padding: 0;
  color: var(--text);
  font-size: 14px;
  font-weight: 900;
}

.survey-scale {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
}

.survey-scale label {
  min-width: 0;
}

.survey-scale input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.survey-scale span {
  min-height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--muted);
  background: #f8fafc;
  font-weight: 900;
}

.survey-scale input:checked + span {
  border-color: #2563eb;
  color: #ffffff;
  background: #2563eb;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 600ms ease, transform 600ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.review-section,
.feedback-section,
.links-section {
  content-visibility: auto;
  contain-intrinsic-size: auto 340px;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (min-width: 720px) {
  .sr-app {
    padding-top: 94px;
  }

  .modal-backdrop {
    place-items: center;
  }
}

@media (max-width: 719px) {
  .modal-backdrop {
    padding: 10px;
  }

  .modal-panel {
    max-height: calc(100vh - 20px);
    max-height: calc(100dvh - 20px);
  }
}

.sr-brand { display: inline-flex; align-items: center; gap: 0; font-size: 18px; font-weight: 800; }
.sr-brand span { font-family: "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif JP", serif; }
.sr-brand-logo { width: 156px; height: 54px; display: block; object-fit: contain; }

/* Corporate visual refresh */
:root {
  --bg: #f5f7fb;
  --bg-soft: #eef3f8;
  --text: #0f172a;
  --muted: #475569;
  --line: #dbe3ee;
  --dark: #0f172a;
  --accent: #2563eb;
  --accent-soft: #e8f0ff;
  --shadow: 0 24px 70px rgba(15, 23, 42, 0.10);
}

body {
  color: var(--text);
  background:
    linear-gradient(rgba(219, 227, 238, 0.34) 1px, transparent 1px),
    linear-gradient(90deg, rgba(219, 227, 238, 0.34) 1px, transparent 1px),
    radial-gradient(circle at 80% 0%, rgba(37, 99, 235, 0.14), transparent 30%),
    linear-gradient(180deg, #ffffff, #f5f7fb 48%, #ffffff);
  background-size: 38px 38px, 38px 38px, auto, auto;
}

.sr-header {
  border-color: rgba(219, 227, 238, 0.92);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 16px 46px rgba(15, 23, 42, 0.10);
}

.sr-brand span {
  color: #0f172a;
  letter-spacing: 0;
}

.store-hero {
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.store-overlay {
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.04), rgba(15, 23, 42, 0.78)),
    linear-gradient(90deg, rgba(15, 23, 42, 0.56), rgba(15, 23, 42, 0.08));
  opacity: var(--hero-overlay-opacity, 1);
  transition: opacity 220ms ease, background 220ms ease;
}

.store-copy {
  color: #ffffff;
  font-family: var(--hero-font-family, "Noto Sans JP", "Inter", system-ui, sans-serif);
}

.store-copy p,
.section-title p {
  color: #60a5fa;
}

.store-copy span {
  color: rgba(255, 255, 255, 0.82);
}

.store-hero[data-gradient="dark"] .store-overlay {
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.04), rgba(15, 23, 42, 0.78)),
    linear-gradient(90deg, rgba(15, 23, 42, 0.58), rgba(15, 23, 42, 0.08));
}

.store-hero[data-gradient="warm"] .store-overlay {
  background:
    linear-gradient(180deg, rgba(120, 75, 38, 0.04), rgba(78, 47, 25, 0.70)),
    radial-gradient(circle at 78% 12%, rgba(214, 160, 78, 0.38), transparent 36%),
    linear-gradient(90deg, rgba(89, 54, 28, 0.54), rgba(89, 54, 28, 0.06));
}

.store-hero[data-gradient="light"] .store-overlay {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0.34)),
    linear-gradient(90deg, rgba(255, 255, 255, 0.66), rgba(255, 255, 255, 0.14));
}

.store-hero[data-gradient="none"] .store-overlay {
  opacity: 0;
}

.store-hero[data-text-theme="dark"] .store-copy {
  color: #0f172a;
  text-shadow: 0 2px 18px rgba(255, 255, 255, 0.44);
}

.store-hero[data-text-theme="dark"] .store-copy p,
.store-hero[data-text-theme="dark"] .store-copy span {
  color: #172033;
}

.store-hero[data-text-theme="dark"] .store-copy p::before {
  background: #0b3f91;
}

.store-hero[data-text-theme="light"] .store-copy {
  color: #ffffff;
  text-shadow: 0 2px 18px rgba(15, 23, 42, 0.34);
}

.store-hero[data-text-theme="light"] .store-copy p,
.store-hero[data-text-theme="light"] .store-copy h1,
.store-hero[data-text-theme="light"] .store-copy span {
  color: #ffffff;
}

.store-hero[data-text-theme="light"] .store-copy p::before {
  background: #ffffff;
}

.review-section,
.feedback-section,
.links-section,
.modal-panel,
.link-card {
  border-color: rgba(219, 227, 238, 0.92);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}

.section-title h2,
.modal-panel h2 {
  color: #0f172a;
}

.message-card {
  border-color: #dbe3ee;
  border-radius: 16px;
  background: #f8fafc;
}

.message-card p {
  color: #475569;
}

.primary-action {
  color: #ffffff;
  background: linear-gradient(135deg, #0f172a, #2563eb);
  box-shadow: 0 18px 42px rgba(37, 99, 235, 0.22);
}

.secondary-action {
  color: #1d4ed8;
  background: #e8f0ff;
}

.success-message {
  color: #075985;
  background: #e0f2fe;
}

.link-icon {
  background: #ffffff;
}

.link-card span:last-child {
  color: #2563eb;
}

.modal-backdrop {
  background: rgba(15, 23, 42, 0.48);
}

.modal-close {
  color: #475569;
  background: #eef3f8;
}

textarea {
  border-color: #dbe3ee;
  color: #0f172a;
  background: #ffffff;
}

textarea:focus {
  border-color: rgba(37, 99, 235, 0.50);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

/* Squared corporate consistency */
.sr-header,
.store-hero,
.review-section,
.feedback-section,
.links-section,
.message-card,
.link-card,
.link-icon,
.modal-panel,
.primary-action,
.secondary-action,
textarea {
  border-radius: 4px;
}

.modal-close {
  border-radius: 2px;
}

.store-copy p,
.section-title p {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #0b3f91;
  letter-spacing: 0;
}

.store-copy p::before,
.section-title p::before {
  width: 6px;
  height: 32px;
  background: #0b3f91;
  content: "";
}

.store-copy p {
  color: #ffffff;
}

.store-copy p::before {
  background: #ffffff;
}

/* Compact spacing pass */
.sr-app {
  padding: 66px 10px 24px;
}

.store-hero {
  height: 320px;
  min-height: 320px;
}

.store-hero img {
  height: 100%;
  min-height: 320px;
}

.store-copy {
  right: 18px;
  bottom: 18px;
  left: 18px;
}

.store-copy h1 {
  margin-bottom: 4px;
  font-size: 34px;
}

.review-section,
.feedback-section,
.links-section {
  margin-top: 8px;
  padding: 12px;
}

.message-card {
  margin-top: 8px;
  padding: 12px;
}

.message-card p {
  margin-bottom: 6px;
  line-height: 1.68;
}

.section-title h2 {
  margin-bottom: 8px;
}

.primary-action,
.secondary-action {
  min-height: 48px;
}

.link-list {
  gap: 6px;
}

.link-card {
  min-height: 50px;
}

.modal-panel {
  padding: 18px;
}

/* Larger header wordmark */
.sr-header {
  padding-left: 10px;
}

.sr-brand {
  min-width: 0;
}

.sr-brand-logo {
  width: 190px;
  height: 52px;
  transform: translateY(2px);
}

/* Store hero decoration settings from the dashboard */
.store-hero[data-gradient="dark"] .store-overlay {
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.04), rgba(15, 23, 42, 0.78)),
    linear-gradient(90deg, rgba(15, 23, 42, 0.58), rgba(15, 23, 42, 0.08));
}

.store-hero[data-gradient="warm"] .store-overlay {
  background:
    linear-gradient(180deg, rgba(120, 75, 38, 0.04), rgba(78, 47, 25, 0.70)),
    radial-gradient(circle at 78% 12%, rgba(214, 160, 78, 0.38), transparent 36%),
    linear-gradient(90deg, rgba(89, 54, 28, 0.54), rgba(89, 54, 28, 0.06));
}

.store-hero[data-gradient="light"] .store-overlay {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0.34)),
    linear-gradient(90deg, rgba(255, 255, 255, 0.66), rgba(255, 255, 255, 0.14));
}

.store-hero[data-gradient="none"] .store-overlay {
  opacity: 0;
}

.store-hero[data-text-theme="dark"] .store-copy,
.store-hero[data-text-theme="dark"] .store-copy p,
.store-hero[data-text-theme="dark"] .store-copy span {
  color: #0f172a;
  text-shadow: 0 2px 18px rgba(255, 255, 255, 0.46);
}

.store-hero[data-text-theme="dark"] .store-copy p::before {
  background: #0b3f91;
}

.store-hero[data-text-theme="light"] .store-copy {
  color: #ffffff;
  text-shadow: 0 2px 18px rgba(15, 23, 42, 0.34);
}

.store-hero[data-text-theme="light"] .store-copy p,
.store-hero[data-text-theme="light"] .store-copy h1,
.store-hero[data-text-theme="light"] .store-copy span {
  color: #ffffff;
}

.store-hero[data-text-theme="light"] .store-copy p::before {
  background: #ffffff;
}

.store-hero .store-copy {
  font-family: var(--hero-font-family, "Noto Sans JP", "Inter", system-ui, sans-serif);
}
