:root {
  --bg: #fff6e8;
  --bg-accent: #ffe2b8;
  --card: rgba(255, 255, 255, 0.84);
  --card-strong: #fffdf7;
  --ink: #1f2a37;
  --muted: #5f6b7a;
  --line: rgba(31, 42, 55, 0.12);
  --teal: #0f9d8a;
  --orange: #ff8b42;
  --sun: #ffd35c;
  --rose: #ff6f7d;
  --ok: #0f9d8a;
  --warn: #d97706;
  --bad: #c2410c;
  --shadow: 0 24px 60px rgba(31, 42, 55, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Hiragino Maru Gothic ProN", "Avenir Next", "Yu Gothic", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(255, 211, 92, 0.65), transparent 30%),
    radial-gradient(circle at top right, rgba(15, 157, 138, 0.18), transparent 28%),
    linear-gradient(180deg, #fff4de 0%, #fffaf1 48%, #fef9f3 100%);
}

.page-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0 56px;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 34px;
  border-radius: 32px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(255, 250, 240, 0.96)),
    var(--card);
  border: 1px solid rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -40px -54px auto;
  width: 180px;
  height: 180px;
  border-radius: 40px;
  background: linear-gradient(145deg, rgba(255, 111, 125, 0.18), rgba(255, 211, 92, 0.4));
  transform: rotate(18deg);
}

.eyebrow,
.section-label,
.card-kicker {
  margin: 0 0 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.74rem;
  font-weight: 800;
  color: var(--teal);
}

.hero-head {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 20px;
}

.hero-logo {
  width: 200px;
  height: 200px;
  object-fit: contain;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.hero-text {
  min-width: 0;
}

h1 {
  margin: 0;
  font-size: clamp(2.1rem, 4vw, 4rem);
  line-height: 1.05;
}

.hero-copy,
.subtitle,
.panel-header p,
.search-help,
.status-box,
.card-note,
.detail-list dd,
.stack-item p,
.alert-item p {
  color: var(--muted);
}

.hero-copy {
  max-width: 760px;
  margin: 14px 0 0;
  font-size: 1.04rem;
  line-height: 1.8;
}

.search-panel,
.status-box,
.headline-card,
.detail-panel,
.summary-card {
  backdrop-filter: blur(14px);
}

.search-panel {
  position: relative;
  z-index: 1;
  margin-top: 26px;
  padding: 20px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
}

.search-label {
  display: block;
  margin-bottom: 10px;
  font-size: 0.92rem;
  font-weight: 700;
}

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

.search-row input {
  width: 100%;
  padding: 18px 20px;
  border-radius: 18px;
  border: 2px solid rgba(15, 157, 138, 0.16);
  font-size: 1rem;
  font-family: inherit;
  background: #fffefb;
}

.search-row input:focus {
  outline: none;
  border-color: rgba(15, 157, 138, 0.65);
  box-shadow: 0 0 0 4px rgba(15, 157, 138, 0.12);
}

.search-row button {
  border: 0;
  border-radius: 18px;
  padding: 0 22px;
  font: inherit;
  font-weight: 800;
  color: white;
  background: linear-gradient(135deg, var(--orange), var(--rose));
  cursor: pointer;
  box-shadow: 0 16px 34px rgba(255, 111, 125, 0.26);
}

.mini-pills {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.mini-pills span,
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 10px 14px;
  font-size: 0.88rem;
  font-weight: 700;
}

.mini-pills span {
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid var(--line);
}

.content {
  margin-top: 24px;
}

.status-box,
.headline-card,
.detail-panel,
.summary-card {
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.66);
  box-shadow: var(--shadow);
}

.status-box {
  padding: 18px 20px;
  border-radius: 20px;
  font-size: 0.98rem;
}

.result-area {
  margin-top: 22px;
}

.hidden {
  display: none;
}

.headline-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px;
  border-radius: 26px;
}

.headline-card h2 {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2.3rem);
}

.badge {
  min-width: 120px;
  background: rgba(15, 157, 138, 0.12);
  color: var(--teal);
}

.summary-grid,
.detail-grid {
  display: grid;
  gap: 18px;
  margin-top: 18px;
}

.summary-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.summary-card {
  padding: 22px;
  border-radius: 24px;
}

.summary-card h3 {
  margin: 0 0 12px;
  font-size: 1.15rem;
}

.card-value {
  margin: 0;
  font-size: 1.36rem;
  font-weight: 800;
  line-height: 1.4;
}

.card-note {
  margin: 12px 0 0;
  line-height: 1.7;
}

.detail-panel {
  padding: 24px;
  border-radius: 24px;
}

.panel-header h3 {
  margin: 0;
  font-size: 1.2rem;
}

.panel-header p {
  margin: 8px 0 0;
  line-height: 1.65;
}

.alert-list,
.stack-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.alert-item,
.stack-item {
  padding: 16px;
  border-radius: 18px;
  background: var(--card-strong);
  border: 1px solid var(--line);
}

.alert-item strong,
.stack-item strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1rem;
}

.alert-item p,
.stack-item p {
  margin: 0;
  line-height: 1.7;
}

.detail-grid {
  grid-template-columns: 1.2fr 0.8fr;
}

.detail-list {
  display: grid;
  grid-template-columns: minmax(120px, 180px) minmax(0, 1fr);
  gap: 14px 16px;
  margin: 18px 0 0;
}

.detail-list dt {
  font-weight: 800;
}

.detail-list dd {
  margin: 0;
  line-height: 1.7;
}

.ad-placeholder {
  display: grid;
  place-items: center;
  min-height: 150px;
  margin-top: 18px;
  border: 2px dashed rgba(255, 139, 66, 0.35);
  border-radius: 22px;
  font-size: 1.2rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  color: var(--orange);
  background:
    linear-gradient(135deg, rgba(255, 211, 92, 0.1), rgba(255, 111, 125, 0.08));
}

.good {
  color: var(--ok);
}

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

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

@media (max-width: 860px) {
  .page-shell {
    width: min(100% - 20px, 1120px);
  }

  .hero,
  .headline-card,
  .detail-panel,
  .summary-card,
  .status-box {
    padding: 18px;
  }

  .search-row,
  .summary-grid,
  .detail-grid,
  .detail-list {
    grid-template-columns: 1fr;
  }

  .hero-head {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 14px;
  }

  .hero-logo {
    width: 60%;
    max-width: 320px;
    height: auto;
  }

  .search-row button,
  .badge {
    width: 100%;
  }

  .headline-card {
    align-items: flex-start;
    flex-direction: column;
  }
}
