:root {
  /* 日本酒と和紙を想起させる共通カラートークン */
  --color-indigo: #14233f;
  --color-indigo-soft: #223a63;
  --color-washi: #f6f0df;
  --color-washi-deep: #ece1c7;
  --color-seal: #c84b31;
  --color-seal-dark: #9f3526;
  --color-sake-gold: #d7a84f;
  --color-sake-gold-soft: #f3dfad;
  --color-text: #1f2530;
  --color-muted: #667085;
  --color-line: rgb(20 35 63 / 14%);
  --color-line-strong: rgb(20 35 63 / 22%);
  --color-surface: rgb(255 251 241 / 92%);
  --color-surface-solid: #fff9eb;
  --space-page-x: clamp(16px, 4vw, 32px);
  --space-section: clamp(24px, 5vw, 48px);
  --space-card: clamp(22px, 4vw, 34px);
  --space-stack: 20px;
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --shadow-soft: 0 18px 45px rgb(20 35 63 / 12%);
  --shadow-subtle: 0 10px 28px rgb(20 35 63 / 8%);
}

* {
  box-sizing: border-box;
}

html {
  font-size: 16px;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--color-text);
  font-family:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  background:
    radial-gradient(circle at 12% 0%, rgb(215 168 79 / 20%), transparent 28rem),
    linear-gradient(
      180deg,
      var(--color-washi),
      #fbf7eb 52%,
      var(--color-washi-deep)
    );
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgb(20 35 63 / 2.5%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(20 35 63 / 1.8%) 1px, transparent 1px);
  background-size:
    28px 28px,
    28px 28px;
  opacity: 0.7;
}

.site-header,
main,
.site-footer {
  width: min(960px, calc(100% - (var(--space-page-x) * 2)));
  margin: 0 auto;
}

.site-header {
  padding: clamp(28px, 5vw, 52px) 0 0;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--color-indigo);
  font-size: 1.05rem;
  font-weight: 800;
  text-decoration: none;
}

.site-brand::before {
  width: 14px;
  height: 14px;
  content: "";
  background: var(--color-sake-gold);
  border-radius: 999px;
  box-shadow: 0 0 0 6px rgb(215 168 79 / 22%);
}

.site-nav,
.site-footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
}

.site-nav {
  margin-top: 18px;
}

.site-nav a[aria-current="page"] {
  color: var(--color-text);
  text-decoration: none;
}

main {
  padding: var(--space-stack) 0 0;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(24px, 9vw, 24px) var(--space-card) var(--space-section);
  color: #fffaf0;
  background:
    linear-gradient(135deg, rgb(20 35 63 / 96%), rgb(34 58 99 / 90%)),
    var(--color-indigo);
  border: 1px solid rgb(243 223 173 / 28%);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.hero::after {
  position: absolute;
  right: -70px;
  bottom: -100px;
  width: 260px;
  height: 260px;
  content: "";
  background: radial-gradient(circle, rgb(215 168 79 / 36%), transparent 68%);
}

.card,
.notice,
.placeholder,
.policy-article {
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-subtle);
}

.card {
  padding: var(--space-card);
  margin: var(--space-stack) 0;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: clamp(14px, 3vw, 22px);
}

.grid > div {
  padding: 18px;
  background: rgb(246 240 223 / 58%);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
}

.screenshot-gallery {
  display: flex;
  gap: 16px;
  padding: 6px 2px 18px;
  margin: 22px calc(var(--space-card) * -1) 0;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-padding-inline: var(--space-card);
  scroll-snap-type: inline mandatory;
  scrollbar-color: var(--color-sake-gold) rgb(20 35 63 / 10%);
}

.screenshot-gallery::before,
.screenshot-gallery::after {
  flex: 0 0 calc(var(--space-card) - 2px);
  content: "";
}

.screenshot-item {
  flex: 0 0 236px;
  margin: 0;
  scroll-snap-align: start;
}

.screenshot-item img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 9 / 19.5;
  object-fit: cover;
  background:
    linear-gradient(135deg, rgb(215 168 79 / 12%), rgb(20 35 63 / 4%)),
    var(--color-surface-solid);
  border: 1px solid var(--color-line-strong);
  border-radius: 20px;
  box-shadow: var(--shadow-subtle);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  padding: 6px 14px;
  color: #fff7e6;
  background: var(--color-seal);
  border: 1px solid rgb(200 75 49 / 22%);
  border-radius: 999px;
  box-shadow: 0 8px 18px rgb(200 75 49 / 22%);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

h1,
h2,
h3 {
  color: var(--color-indigo);
  letter-spacing: -0.02em;
}

h1 {
  margin: 20px 0 12px;
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.18;
}

.hero h1 {
  color: #fffaf0;
}

h2 {
  margin: 0 0 14px;
  font-size: clamp(1.35rem, 3vw, 1.65rem);
  line-height: 1.35;
}

h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  line-height: 1.45;
}

p {
  margin: 0 0 12px;
}

ul {
  margin: 0;
  padding-left: 1.25rem;
}

ol {
  margin: 0;
  padding-left: 1.25rem;
}

li + li {
  margin-top: 0.35rem;
}

p:last-child,
li:last-child {
  margin-bottom: 0;
}

a {
  color: var(--color-seal-dark);
  font-weight: 700;
  text-decoration-color: rgb(200 75 49 / 40%);
  text-underline-offset: 0.18em;
}

a:hover,
a:focus-visible {
  color: var(--color-indigo);
  text-decoration-color: var(--color-sake-gold);
}

.lead {
  max-width: 720px;
  color: rgb(255 250 240 / 84%);
  font-size: clamp(1rem, 2.5vw, 1.15rem);
}

.hero-graphic {
  position: relative;
  z-index: 1;
  display: block;
  width: min(100%, 820px);
  height: auto;
  margin: clamp(24px, 4vw, 34px) 0 0;
  aspect-ratio: 1024 / 500;
  object-fit: contain;
  background: rgb(255 250 240 / 8%);
  border: 1px solid rgb(243 223 173 / 22%);
  border-radius: var(--radius-md);
  box-shadow: 0 16px 36px rgb(0 0 0 / 18%);
}

.recruitment-copy {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin-top: clamp(18px, 3vw, 24px);
  color: #fffaf0;
  font-size: clamp(1.08rem, 2.6vw, 1.28rem);
  font-weight: 800;
  line-height: 1.58;
}

.hero-actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.step-flow,
.instruction-list {
  margin-top: 18px;
}

.pre-step {
  display: grid;
  gap: 6px;
  padding: 16px;
  margin-top: 18px;
  background: rgb(243 223 173 / 28%);
  border: 1px solid var(--color-line);
  border-left: 5px solid var(--color-sake-gold);
  border-radius: var(--radius-sm);
}

.step-flow {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  padding-left: 0;
  list-style: none;
}

.step-flow li {
  display: grid;
  gap: 6px;
  min-height: 122px;
  padding: 16px;
  background: rgb(246 240 223 / 58%);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
}

.step-label {
  color: var(--color-indigo);
  font-weight: 800;
  line-height: 1.45;
}

.instruction-list li + li {
  margin-top: 0.65rem;
}

.feedback-guide {
  scroll-margin-top: 20px;
}

.feedback-focus {
  padding: 18px;
  margin-top: 20px;
  background:
    linear-gradient(135deg, rgb(243 223 173 / 44%), rgb(255 251 241 / 76%)),
    var(--color-surface-solid);
  border: 1px solid var(--color-line-strong);
  border-left: 6px solid var(--color-seal);
  border-radius: var(--radius-md);
}

.feedback-focus-main {
  max-width: 760px;
}

.feedback-level {
  display: inline-flex;
  padding: 4px 12px;
  margin-bottom: 10px;
  color: #fffaf0;
  background: var(--color-seal);
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 800;
}

.feedback-list {
  display: grid;
  gap: 8px;
  padding-left: 1.15rem;
}

.feedback-list-primary {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 8px 20px;
}

.feedback-details {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.feedback-details details {
  background: rgb(246 240 223 / 46%);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
}

.feedback-details summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 52px;
  padding: 12px 16px;
  color: var(--color-indigo);
  cursor: pointer;
  font-weight: 800;
  line-height: 1.45;
}

.feedback-details summary::after {
  margin-left: 12px;
  color: var(--color-seal-dark);
  content: "開く";
  font-size: 0.86rem;
}

.feedback-details details[open] summary {
  border-bottom: 1px solid var(--color-line);
}

.feedback-details details[open] summary::after {
  content: "閉じる";
}

.feedback-details summary span {
  padding: 2px 8px;
  margin-left: 8px;
  color: var(--color-muted);
  background: rgb(255 251 241 / 82%);
  border: 1px solid var(--color-line);
  border-radius: 999px;
  font-size: 0.78rem;
}

.feedback-details .feedback-list {
  padding: 14px 18px 16px 2.3rem;
}

.feedback-note {
  padding: 16px;
  margin-top: 16px;
  background: rgb(255 251 241 / 70%);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
}

.feedback-note .feedback-list {
  margin-bottom: 12px;
}

.notice.participation-notes {
  padding: 14px 16px;
  margin-top: 18px;
  color: var(--color-text);
  background: rgb(200 75 49 / 9%);
  border-color: rgb(200 75 49 / 20%);
  border-left-color: var(--color-seal);
}

.closed-test-requirements-image {
  margin-top: 18px;
}

.feedback-list-compact {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 6px 20px;
}

.card-action {
  margin-top: 18px;
}

.elevator-pitch {
  display: grid;
  gap: 14px;
  padding: clamp(18px, 4vw, 26px);
  background:
    linear-gradient(135deg, rgb(243 223 173 / 38%), rgb(255 251 241 / 76%)),
    var(--color-surface-solid);
  border: 1px solid var(--color-line-strong);
  border-left: 6px solid var(--color-seal);
  border-radius: var(--radius-md);
}

.elevator-pitch p {
  margin: 0;
  color: var(--color-indigo);
  font-size: clamp(1.08rem, 2.4vw, 1.24rem);
  font-weight: 800;
  line-height: 1.72;
}

.opt-in-guide,
.app-install-guide {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(14px, 3vw, 22px);
  margin-top: 20px;
}

.screen-placeholder {
  margin: 0;
}

.screen-placeholder img {
  display: block;
  width: min(100%, 320px);
  height: auto;
  max-height: 520px;
  margin: 0 auto;
  object-fit: contain;
  background:
    linear-gradient(135deg, rgb(215 168 79 / 12%), rgb(20 35 63 / 4%)),
    var(--color-surface-solid);
  border: 1px solid var(--color-line-strong);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-subtle);
}

.screen-placeholder-alert img {
  background:
    linear-gradient(135deg, rgb(200 75 49 / 12%), rgb(20 35 63 / 4%)),
    var(--color-surface-solid);
}

figcaption {
  width: min(100%, 320px);
  margin-top: 10px;
  margin-right: auto;
  margin-left: auto;
  color: var(--color-muted);
  font-size: 0.95rem;
  text-align: center;
}

.screenshot-item figcaption {
  width: 100%;
  margin-top: 10px;
}

.note,
.notice {
  margin-top: 16px;
  color: var(--color-muted);
  background: rgb(243 223 173 / 28%);
  border-left: 5px solid var(--color-sake-gold);
}

.note {
  padding: 14px 16px;
  border-radius: var(--radius-sm);
}

.notice {
  padding: var(--space-card);
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 20px;
  color: #fffaf0;
  text-decoration: none;
  background: linear-gradient(
    135deg,
    var(--color-seal),
    var(--color-seal-dark)
  );
  border: 1px solid rgb(159 53 38 / 35%);
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 26px rgb(200 75 49 / 22%);
}

.cta:hover,
.cta:focus-visible {
  color: #fffaf0;
  background: linear-gradient(
    135deg,
    var(--color-seal-dark),
    var(--color-indigo-soft)
  );
}

.cta-secondary {
  color: #fffaf0;
  background: rgb(255 250 240 / 10%);
  border-color: rgb(243 223 173 / 35%);
  box-shadow: none;
}

.cta-secondary:hover,
.cta-secondary:focus-visible {
  color: var(--color-indigo);
  background: #fffaf0;
}

.cta-secondary-on-light {
  color: var(--color-seal-dark);
  background: rgb(255 251 241 / 72%);
  border-color: var(--color-line-strong);
  box-shadow: none;
}

.cta-secondary-on-light:hover,
.cta-secondary-on-light:focus-visible {
  color: #fffaf0;
  background: var(--color-indigo-soft);
}

.placeholder {
  display: grid;
  min-height: 180px;
  padding: var(--space-card);
  color: var(--color-muted);
  place-items: center;
  background:
    linear-gradient(135deg, rgb(215 168 79 / 12%), rgb(20 35 63 / 4%)),
    var(--color-surface-solid);
  border-style: dashed;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  margin: 0 0 18px;
  color: var(--color-seal-dark);
  text-decoration: none;
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: 999px;
  box-shadow: var(--shadow-subtle);
}

.back-link::before {
  content: "<";
  font-size: 1.1em;
}

.policy-article {
  max-width: 880px;
  padding: clamp(24px, 5vw, 48px);
}

.guide-article {
  max-width: none;
}

.policy-article h1 {
  margin-top: 0;
}

.policy-meta,
.muted {
  color: var(--color-muted);
}

.policy-meta {
  font-weight: 700;
}

.policy-intro {
  margin-bottom: 28px;
  font-size: 1.05rem;
}

.policy-section {
  padding-top: 22px;
  margin-top: 22px;
  border-top: 1px solid var(--color-line-strong);
}

.policy-section:first-of-type {
  margin-top: 0;
}

.site-footer {
  padding: 32px 0 48px;
  color: var(--color-muted);
  font-size: 0.92rem;
}

.site-footer-nav {
  margin-bottom: 10px;
}

@media (width <= 640px) {
  body {
    line-height: 1.72;
  }

  .hero,
  .card,
  .notice,
  .placeholder,
  .policy-article {
    border-radius: 20px;
  }

  .grid > div {
    padding: 16px;
  }

  .screenshot-gallery {
    gap: 12px;
  }

  .screenshot-item {
    flex-basis: min(68vw, 236px);
  }

  .feedback-focus {
    padding: 16px;
  }

  .feedback-list-primary,
  .feedback-list-compact {
    grid-template-columns: 1fr;
  }

  .feedback-details summary {
    align-items: flex-start;
  }

  .hero-actions,
  .hero-actions .cta {
    width: 100%;
  }
}
