/* ==========================================================
   第1回 延岡AI画像コンテスト LP スタイル
   - モバイルファースト
   - カラー：青（川・海）／緑（山）／コーラル（若さ）
   ========================================================== */

:root {
  --c-blue: #1f7ad1;
  --c-blue-dark: #0f5aa3;
  --c-teal: #19b3a6;
  --c-green: #3da76f;
  --c-coral: #ff6b6b;
  --c-yellow: #ffd23f;
  --c-dark: #1a2238;
  --c-text: #2a3149;
  --c-muted: #6a7191;
  --c-bg: #f6f9fc;
  --c-bg-alt: #ffffff;
  --c-line: #e3e9f1;

  --grad-hero: linear-gradient(135deg, #1f7ad1 0%, #19b3a6 100%);
  --grad-coral: linear-gradient(135deg, #ff6b6b 0%, #ffa45c 100%);
  --grad-soft: linear-gradient(135deg, #eaf4ff 0%, #e8fbf6 100%);

  --shadow-sm: 0 2px 8px rgba(26, 34, 56, 0.06);
  --shadow-md: 0 8px 24px rgba(26, 34, 56, 0.10);
  --shadow-lg: 0 20px 48px rgba(26, 34, 56, 0.16);

  --radius-sm: 8px;
  --radius: 16px;
  --radius-lg: 28px;

  --header-h: 60px;
  --container: 1100px;

  --font-jp: 'M PLUS Rounded 1c', 'Noto Sans JP', 'Hiragino Sans', 'Yu Gothic', sans-serif;
}

/* ====== Reset ====== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-jp);
  color: var(--c-text);
  background: var(--c-bg);
  line-height: 1.75;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--c-blue); text-decoration: none; transition: opacity .2s; }
a:hover { opacity: .8; }
h1, h2, h3 { line-height: 1.35; margin: 0; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

/* ====== Reveal ====== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s ease, transform .8s ease;
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ====== Placeholder ====== */
.placeholder {
  background: #fff3cd;
  color: #8b6914;
  padding: 0 .35em;
  border-radius: 4px;
  font-size: .9em;
}

/* ====== Buttons ====== */
.btn-primary,
.btn-ghost,
.btn-mini {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4em;
  font-family: inherit;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  border: none;
  transition: transform .15s ease, box-shadow .2s ease, background .2s;
}
.btn-primary {
  background: var(--grad-coral);
  color: #fff;
  padding: 16px 32px;
  border-radius: 999px;
  font-size: 17px;
  box-shadow: 0 8px 20px rgba(255, 107, 107, 0.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(255, 107, 107, 0.45);
  opacity: 1;
}
.btn-xl {
  padding: 22px 48px;
  font-size: 20px;
}
.btn-ghost {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  padding: 14px 24px;
  border-radius: 999px;
  font-size: 15px;
  border: 1.5px solid rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(4px);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.25);
  opacity: 1;
}
.btn-mini {
  background: var(--c-coral);
  color: #fff;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 13px;
  box-shadow: var(--shadow-sm);
}

/* ====== Header ====== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  z-index: 100;
  transition: box-shadow .2s, background .2s;
}
.site-header.scrolled {
  box-shadow: var(--shadow-sm);
  background: rgba(255, 255, 255, 0.95);
}
.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--c-dark);
}
.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  background: var(--grad-hero);
  color: #fff;
  font-weight: 900;
  font-size: 14px;
  border-radius: 8px;
  letter-spacing: -.02em;
}
.logo-text {
  font-weight: 800;
  font-size: 15px;
  letter-spacing: .02em;
}
.nav-pc { display: none; }
.nav-pc a {
  color: var(--c-text);
  font-weight: 500;
  font-size: 14px;
  margin: 0 12px;
}
.nav-pc a:hover { color: var(--c-blue); }

@media (min-width: 860px) {
  .nav-pc { display: block; }
  .logo-text { font-size: 16px; }
}

/* ====== Hero ====== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 40px) 0 60px;
  overflow: hidden;
  color: #fff;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(15, 25, 60, 0.55) 0%, rgba(15, 90, 163, 0.65) 60%, rgba(25, 179, 166, 0.55) 100%);
}
.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: center;
}
.hero-text { order: 2; }
.hero-character { order: 1; text-align: center; }
.hero-character img {
  max-width: 280px;
  margin: 0 auto;
  filter: drop-shadow(0 18px 32px rgba(0, 0, 0, 0.35));
  animation: float 5s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.hero-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.5);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  margin: 0 0 16px;
  backdrop-filter: blur(4px);
}
.hero-title {
  font-size: clamp(34px, 8vw, 64px);
  font-weight: 900;
  letter-spacing: .01em;
  margin: 0 0 18px;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}
.hero-title .accent {
  background: var(--grad-coral);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 2px 8px rgba(255, 107, 107, 0.4));
  display: inline-block;
}
.hero-sub {
  font-size: 16px;
  line-height: 1.85;
  margin: 0 0 18px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}
.hero-date {
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 28px;
  background: rgba(0, 0, 0, 0.25);
  display: inline-block;
  padding: 8px 14px;
  border-radius: 10px;
  backdrop-filter: blur(4px);
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.scroll-indicator {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  width: 22px;
  height: 38px;
  border: 2px solid rgba(255, 255, 255, 0.7);
  border-radius: 999px;
}
.scroll-indicator span {
  position: absolute;
  top: 6px; left: 50%;
  width: 4px; height: 8px;
  background: #fff;
  border-radius: 2px;
  transform: translateX(-50%);
  animation: scrolldown 1.6s ease-in-out infinite;
}
@keyframes scrolldown {
  0%   { transform: translate(-50%, 0); opacity: 1; }
  100% { transform: translate(-50%, 14px); opacity: 0; }
}

@media (min-width: 860px) {
  .hero-inner { grid-template-columns: 1.1fr 1fr; gap: 40px; }
  .hero-text { order: 1; }
  .hero-character { order: 2; }
  .hero-character img { max-width: 420px; }
  .hero-sub { font-size: 18px; }
}

/* ====== Section base ====== */
.section {
  padding: 80px 0;
  position: relative;
}
.section:nth-of-type(even) { background: var(--c-bg-alt); }
.section-eyebrow {
  text-align: center;
  font-size: 13px;
  letter-spacing: .25em;
  color: var(--c-blue);
  font-weight: 800;
  margin: 0 0 8px;
}
.section-title {
  text-align: center;
  font-size: clamp(26px, 5vw, 38px);
  font-weight: 900;
  margin: 0 0 16px;
  color: var(--c-dark);
}
.section-desc {
  text-align: center;
  color: var(--c-muted);
  margin: 0 0 48px;
  font-size: 15px;
}

/* ====== About ====== */
.section-about { background: var(--grad-soft); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-top: 32px;
}
.about-text .lead {
  font-size: 20px;
  font-weight: 700;
  color: var(--c-dark);
  margin-bottom: 16px;
  line-height: 1.6;
}
.about-text strong {
  background: linear-gradient(transparent 60%, rgba(255, 210, 63, 0.5) 60%);
  font-weight: 700;
}
.about-points {
  margin-top: 24px;
  display: grid;
  gap: 12px;
}
.about-points li {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  padding: 14px 18px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  font-weight: 500;
}
.about-points li span {
  font-size: 22px;
}
.about-video video {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  background: #000;
}
.video-caption {
  margin: 12px 0 0;
  text-align: center;
  font-size: 13px;
  color: var(--c-muted);
}

@media (min-width: 860px) {
  .about-grid { grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
}

/* ====== Category ====== */
.category-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
.cat-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  box-shadow: var(--shadow-md);
  border-top: 6px solid;
  position: relative;
  overflow: hidden;
}
.cat-a { border-top-color: var(--c-blue); }
.cat-b { border-top-color: var(--c-coral); }
.cat-head {
  margin-bottom: 16px;
}
.cat-tag {
  display: inline-block;
  background: var(--c-dark);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 999px;
  letter-spacing: .1em;
  margin-bottom: 8px;
}
.cat-a .cat-tag { background: var(--c-blue); }
.cat-b .cat-tag { background: var(--c-coral); }
.cat-head h3 {
  font-size: 24px;
  font-weight: 900;
  color: var(--c-dark);
}
.cat-lead {
  color: var(--c-muted);
  font-weight: 600;
  margin-bottom: 16px;
}
.cat-list {
  display: grid;
  gap: 8px;
  margin-bottom: 20px;
}
.cat-list li {
  padding-left: 24px;
  position: relative;
  font-size: 15px;
}
.cat-list li::before {
  content: '✓';
  position: absolute;
  left: 0; top: 0;
  color: var(--c-green);
  font-weight: 900;
}
.cat-example {
  background: #f4f8fc;
  border-radius: var(--radius);
  padding: 14px 16px;
}
.cat-example-label {
  font-size: 12px;
  color: var(--c-muted);
  margin: 0 0 4px;
  font-weight: 700;
}
.cat-example-text {
  margin: 0;
  font-size: 14px;
  font-style: italic;
  color: var(--c-text);
  line-height: 1.7;
}

.emoji-slots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 20px 0 16px;
  flex-wrap: wrap;
}
.slot {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  background: #fff5f5;
  border: 2px dashed var(--c-coral);
  border-radius: var(--radius);
  padding: 12px 14px;
  min-width: 80px;
}
.slot-num {
  font-size: 10px;
  color: var(--c-coral);
  font-weight: 700;
}
.slot-emoji {
  font-size: 32px;
  line-height: 1;
}
.slot-plus {
  font-size: 20px;
  font-weight: 800;
  color: var(--c-coral);
}
.emoji-pool-label {
  font-size: 13px;
  color: var(--c-muted);
  margin: 16px 0 8px;
  font-weight: 600;
}
.emoji-pool {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.emoji-pool span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  background: #f4f8fc;
  border-radius: 10px;
  font-size: 20px;
  cursor: default;
  transition: transform .15s;
}
.emoji-pool span:hover {
  transform: translateY(-2px) scale(1.1);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

@media (min-width: 860px) {
  .category-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

/* ====== Gallery ====== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.gallery-item {
  margin: 0;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .2s, box-shadow .2s;
}
.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.gallery-item img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}
.gallery-item figcaption {
  padding: 12px 14px;
  display: grid;
  gap: 4px;
}
.cap-title {
  font-weight: 700;
  font-size: 14px;
  color: var(--c-dark);
}
.cap-prompt {
  font-size: 11px;
  color: var(--c-muted);
}

@media (min-width: 640px) {
  .gallery-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
}
@media (min-width: 960px) {
  .gallery-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ====== Flow ====== */
.section-flow { background: var(--grad-soft); }
.flow-steps {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-bottom: 40px;
}
.flow-step {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  text-align: center;
  width: 100%;
  max-width: 320px;
  box-shadow: var(--shadow-md);
  position: relative;
}
.step-num {
  font-family: var(--font-jp);
  font-size: 14px;
  font-weight: 900;
  color: var(--c-coral);
  letter-spacing: .15em;
  margin-bottom: 8px;
}
.step-icon {
  font-size: 56px;
  margin: 0 0 12px;
  line-height: 1;
}
.flow-step h3 {
  font-size: 18px;
  font-weight: 900;
  color: var(--c-dark);
  margin: 0 0 8px;
}
.flow-step p {
  font-size: 14px;
  color: var(--c-muted);
  margin: 0;
}
.flow-arrow {
  color: var(--c-coral);
  font-size: 28px;
  font-weight: 900;
  transform: rotate(90deg);
}
.flow-cta {
  text-align: center;
}

@media (min-width: 860px) {
  .flow-steps { flex-direction: row; justify-content: center; gap: 12px; }
  .flow-step { max-width: none; flex: 1; }
  .flow-arrow { transform: none; align-self: center; }
}

/* ====== Criteria ====== */
.criteria-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.cri-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 24px 20px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform .15s, box-shadow .2s;
  border: 1px solid var(--c-line);
}
.cri-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.cri-icon {
  font-size: 44px;
  margin-bottom: 8px;
  line-height: 1;
}
.cri-card h3 {
  font-size: 16px;
  font-weight: 800;
  color: var(--c-dark);
  margin: 0 0 6px;
}
.cri-card p {
  font-size: 13px;
  color: var(--c-muted);
  margin: 0;
}

@media (min-width: 640px) {
  .criteria-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
  .criteria-grid { grid-template-columns: repeat(5, 1fr); }
}

/* ====== Schedule ====== */
.section-schedule { background: var(--grad-soft); }
.timeline {
  max-width: 600px;
  margin: 0 auto;
  position: relative;
  padding: 0;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 20px;
  top: 12px;
  bottom: 12px;
  width: 3px;
  background: linear-gradient(180deg, var(--c-blue), var(--c-teal), var(--c-coral));
  border-radius: 2px;
}
.timeline-item {
  position: relative;
  padding: 12px 0 12px 56px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.timeline-dot {
  position: absolute;
  left: 12px;
  width: 19px; height: 19px;
  background: #fff;
  border: 4px solid var(--c-blue);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(31, 122, 209, 0.15);
}
.timeline-item:nth-child(2) .timeline-dot { border-color: var(--c-teal); box-shadow: 0 0 0 4px rgba(25, 179, 166, 0.15); }
.timeline-item:nth-child(3) .timeline-dot { border-color: var(--c-green); box-shadow: 0 0 0 4px rgba(61, 167, 111, 0.15); }
.timeline-item:nth-child(4) .timeline-dot { border-color: var(--c-coral); box-shadow: 0 0 0 4px rgba(255, 107, 107, 0.15); }
.timeline-date {
  font-weight: 800;
  font-size: 16px;
  color: var(--c-dark);
  min-width: 100px;
}
.timeline-label {
  font-size: 16px;
  color: var(--c-text);
  font-weight: 600;
}

/* ====== FAQ ====== */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
}
.faq-item {
  background: #fff;
  border-radius: var(--radius);
  padding: 0;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--c-line);
  overflow: hidden;
  transition: box-shadow .2s;
}
.faq-item[open] { box-shadow: var(--shadow-md); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 52px 18px 22px;
  font-weight: 700;
  color: var(--c-dark);
  position: relative;
  user-select: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::before {
  content: 'Q.';
  color: var(--c-coral);
  font-weight: 900;
  margin-right: 8px;
}
.faq-item summary::after {
  content: '+';
  position: absolute;
  right: 22px; top: 50%;
  transform: translateY(-50%);
  font-size: 24px;
  font-weight: 300;
  color: var(--c-blue);
  transition: transform .2s;
}
.faq-item[open] summary::after {
  transform: translateY(-50%) rotate(45deg);
}
.faq-item p {
  margin: 0;
  padding: 0 22px 20px 50px;
  font-size: 15px;
  color: var(--c-text);
  line-height: 1.8;
}
.faq-item p::before {
  content: 'A.';
  color: var(--c-blue);
  font-weight: 900;
  margin-right: 8px;
  margin-left: -28px;
}

/* ====== CTA ====== */
.section-cta {
  background: var(--grad-hero);
  color: #fff;
  text-align: center;
}
.cta-box {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-lg);
  padding: 48px 24px;
  max-width: 720px;
  margin: 0 auto;
  backdrop-filter: blur(6px);
}
.cta-eyebrow {
  font-size: 13px;
  letter-spacing: .2em;
  font-weight: 700;
  margin: 0 0 8px;
  opacity: .9;
}
.cta-deadline {
  font-size: clamp(20px, 5vw, 28px);
  font-weight: 900;
  margin: 0 0 20px !important;
}
.cta-title {
  font-size: clamp(26px, 6vw, 40px);
  font-weight: 900;
  margin: 0 0 28px;
  line-height: 1.4;
}
.cta-note {
  margin: 16px 0 8px;
  font-size: 13px;
  opacity: .85;
}
.cta-sub {
  margin: 12px 0 0;
  font-size: 14px;
}
.cta-sub a {
  color: #fff;
  text-decoration: underline;
  opacity: .9;
}

/* ====== Footer ====== */
.site-footer {
  background: var(--c-dark);
  color: #cbd2e6;
  padding: 56px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-bottom: 40px;
}
.footer-block h3 {
  font-size: 14px;
  letter-spacing: .12em;
  color: #fff;
  margin: 0 0 8px;
  font-weight: 800;
}
.footer-block p {
  font-size: 14px;
  margin: 0;
  line-height: 1.7;
}
.footer-block a { color: #fff; }
.footer-bottom {
  text-align: center;
  font-size: 12px;
  color: #8c93b2;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-bottom p { margin: 0; }

@media (min-width: 640px) {
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ====== Reduced motion ====== */
@media (prefers-reduced-motion: reduce) {
  .hero-character img { animation: none; }
  .scroll-indicator span { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { scroll-behavior: auto !important; }
}
