/* ========== Painting Contest (アイデア・デザインコンテスト) Page ========== */
/* Palette: Coral #FF6B5E · Mustard #FFC824 — matches site-wide design */

ruby {
  ruby-align: center;
}
rt {
  font-size: 0.55em;
  color: #888;
}

/* Section Headers Override */
main h2 .hosoku {
  font-size: clamp(0.4em, 1.2vw, 0.48em) !important;
  font-weight: 800 !important;
  opacity: 0.95 !important;
  margin-top: 0.4rem;
}

/* ---- Hero ---- */
.pc-hero {
  position: relative;
  text-align: center;
  padding: 3rem 0 4rem;
  margin: calc(-1 * var(--global-space));
  margin-bottom: 0;
  background: linear-gradient(
    150deg,
    rgba(255, 107, 94, 0.06) 0%,
    rgba(255, 200, 36, 0.09) 100%
  );
  overflow: hidden;
}
.pc-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 700px;
  margin: 0 auto;
  padding: 0 var(--global-space);
}
.pc-hero-badge {
  display: inline-block;
  background: linear-gradient(135deg, #ff6b5e, #ffc824);
  color: #fff;
  font-size: clamp(14px, 2.5vw, 18px);
  font-weight: 800;
  padding: 0.5rem 1.6rem;
  border-radius: 100px;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}
.pc-hero-sub {
  display: block;
  font-size: clamp(16px, 3.5vw, 22px);
  font-weight: 800;
  letter-spacing: 0.35em;
  color: var(--text-color);
  opacity: 0.8;
  margin-bottom: 0.4rem;
}
.pc-hero-title {
  font-family: "Source Sans 3", "Noto Sans JP", sans-serif;
  font-size: clamp(28px, 6vw, 60px);
  font-weight: 900;
  letter-spacing: 0.04em;
  line-height: 1.2;
  color: var(--text-color);
  margin: 0 0 1.5rem;
  border-bottom: none;
  display: block;
}
.pc-hero-theme {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border: 2px solid #ffc824;
  border-radius: 12px;
  padding: 1.2rem 2rem;
  margin: 0 auto 2rem;
  max-width: 540px;
  box-shadow: 0 4px 20px rgba(255, 200, 36, 0.2);
}
.pc-hero-theme-label {
  display: block;
  font-size: clamp(12px, 2vw, 16px);
  font-weight: 800;
  letter-spacing: 0.3em;
  color: #e5a900;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}
.pc-hero-theme-text {
  font-size: clamp(15px, 3vw, 21px);
  font-weight: 900;
  color: var(--text-color);
  margin: 0;
  line-height: 1.7;
}
.pc-deadline-block {
  background: rgba(255, 107, 94, 0.06);
  border: 2px solid #ff6b5e;
  border-radius: 12px;
  padding: 1.5rem 2rem;
  margin: 0 auto 2rem;
  max-width: 460px;
}
.pc-deadline-label {
  font-size: clamp(14px, 2.5vw, 18px);
  font-weight: 800;
  color: #ff6b5e;
  letter-spacing: 0.1em;
  margin-bottom: 0.3rem;
}
.pc-deadline-date {
  font-family: "IBM Plex Mono", monospace;
  font-size: clamp(18px, 4vw, 26px);
  font-weight: 700;
  color: #ff6b5e;
  margin-bottom: 1rem;
}
.pc-countdown {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}
/* 締切超過時の文言（JS が textContent と併せて付与する） */
.pc-countdown-expired {
  font-size: 1.2rem;
  font-weight: 800;
  color: #ff6b5e;
}
.pc-countdown-unit {
  background: var(--text-color);
  color: #fff;
  border-radius: 8px;
  padding: 0.6rem 0.9rem;
  min-width: 60px;
  text-align: center;
}
.pc-countdown-unit span {
  display: block;
  font-family: "IBM Plex Mono", monospace;
  font-size: clamp(20px, 4vw, 32px);
  font-weight: 700;
  line-height: 1;
}
.pc-countdown-unit small {
  display: block;
  font-size: 10px;
  opacity: 0.7;
  margin-top: 0.2rem;
}
.pc-countdown-sep {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-color);
  opacity: 0.4;
}
.pc-countdown-label {
  font-size: 12px;
  color: #777;
  margin: 0;
}
.pc-hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}
.pc-org-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}
.pc-org-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid var(--border-color);
  border-radius: 100px;
  padding: 0.3rem 0.9rem;
  font-size: 12px;
  color: #555;
}

/* ---- Buttons ---- */
.pc-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 2rem;
  border-radius: 100px;
  font-size: 16px;
  font-weight: 800;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border: 2px solid transparent;
}
.pc-btn--lg {
  padding: 1.1rem 2.5rem;
  font-size: 17px;
}
.pc-btn--primary {
  background: #ff6b5e;
  color: #fff;
  border-color: #ff6b5e;
  box-shadow: 0 4px 16px rgba(255, 107, 94, 0.35);
}
.pc-btn--primary:hover {
  background: #e54d3f;
  border-color: #e54d3f;
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(255, 107, 94, 0.45);
}
.pc-btn--outline {
  border-color: var(--text-color);
  color: var(--text-color);
  background: transparent;
}
.pc-btn--outline:hover {
  background: var(--text-color);
  color: #fff;
  transform: translateY(-2px);
}
.pc-btn--festival {
  background: #ffc824;
  color: #1a1a1a;
  border-color: #ffc824;
  box-shadow: 0 4px 16px rgba(255, 200, 36, 0.35);
  white-space: nowrap;
}
.pc-btn--festival:hover {
  background: #e5b018;
  border-color: #e5b018;
  color: #1a1a1a;
  transform: translateY(-2px);
}

/* ---- Theme Section ---- */
.pc-theme-card {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  border: 2px solid #ffc824;
  border-radius: 12px;
  padding: 2rem 2.5rem;
  margin: 0 auto 2.5rem;
  max-width: 680px;
  text-align: center;
  box-shadow: 0 4px 24px rgba(255, 200, 36, 0.15);
}
.pc-theme-card-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-size: clamp(14px, 2.5vw, 18px);
  font-weight: 800;
  letter-spacing: 0.25em;
  color: #e5a900;
  text-transform: uppercase;
  margin-bottom: 0.8rem;
}
.pc-theme-main {
  font-size: clamp(19px, 4vw, 30px);
  font-weight: 900;
  color: var(--text-color);
  line-height: 1.6;
  margin: 0 0 1rem;
}
.pc-theme-desc {
  font-size: 16px;
  line-height: 1.9;
  color: #444;
  margin: 0;
}
.pc-message-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 900px;
  margin: 0 auto;
}
.pc-message-card {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 2rem 1.5rem;
  text-align: center;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 20px rgba(255, 200, 36, 0.1);
}
.pc-message-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(255, 200, 36, 0.2);
}
.pc-message-icon {
  font-size: 2.4rem;
  color: #ff6b5e;
  margin-bottom: 1rem;
  display: block;
}
.pc-message-card h3 {
  font-size: 17px;
  font-weight: 800;
  color: var(--text-color);
  margin: 0 0 0.8rem;
  border-bottom: none;
  line-height: 1.5;
  display: block;
}
.pc-message-card p {
  font-size: 14px;
  line-height: 1.8;
  color: #444;
  margin: 0;
}

/* ---- Requirements Table ---- */
.pc-table-wrap {
  overflow-x: auto;
  max-width: 720px;
  margin: 0 auto;
}
.pc-table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  font-size: 15px;
  line-height: 1.75;
}
.pc-table th {
  width: 120px;
  background: rgba(255, 200, 36, 0.1);
  border-bottom: 1px solid rgba(255, 200, 36, 0.3);
  border-right: 2px solid #ffc824;
  padding: 0.9rem 1rem;
  font-weight: 800;
  text-align: center;
  vertical-align: middle;
  white-space: nowrap;
  color: var(--text-color);
}
.pc-table td {
  border-bottom: 1px solid var(--border-color);
  padding: 0.9rem 1.2rem;
  vertical-align: top;
  color: var(--text-color);
}
.pc-table tr:last-child th,
.pc-table tr:last-child td {
  border-bottom: none;
}
.pc-table-accent {
  color: #ff6b5e;
  font-size: 1.2em;
  font-weight: 800;
}
.pc-table-highlight-header {
  font-size: 1.15em;
  color: #ff6b5e !important;
}
.pc-table-highlight-data {
  font-size: 1.15em;
}

/* ---- Awards ---- */
.pc-awards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 860px;
  margin: 0 auto 2rem;
}
.pc-award-card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 2rem 1.5rem;
  text-align: center;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 20px rgba(255, 200, 36, 0.1);
}
.pc-award-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(255, 200, 36, 0.2);
}
.pc-award-card--grand {
  border: 2px solid #ff6b5e;
  background: rgba(255, 107, 94, 0.04);
  box-shadow: 0 4px 24px rgba(255, 107, 94, 0.15);
}
.pc-award-card--grand:hover {
  box-shadow: 0 8px 32px rgba(255, 107, 94, 0.25);
}
.pc-award-icon {
  font-size: 2.5rem;
  color: #aaa;
  margin-bottom: 1rem;
}
.pc-award-icon--grand {
  color: #ff6b5e;
}
.pc-award-icon--idea {
  color: #ffc824;
}
.pc-award-icon--design {
  color: #66b2ff;
}
.pc-award-title {
  font-size: 21px;
  font-weight: 800;
  color: var(--text-color);
  margin: 0 0 0.5rem;
  border-bottom: none;
  line-height: 1.4;
  display: block;
}
.pc-award-desc {
  font-size: 13px;
  color: #555;
  margin: 0 0 0.8rem;
}
.pc-award-point {
  font-size: 12px;
  font-weight: 700;
  color: #ff6b5e;
  background: rgba(255, 107, 94, 0.08);
  border-radius: 6px;
  padding: 0.2rem 0.7rem;
  margin: 0 0 0.8rem;
  display: inline-block;
}
.pc-award-badge {
  display: inline-block;
  background: var(--text-color);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 0.25rem 0.9rem;
  border-radius: 100px;
  margin-bottom: 0.8rem;
}
.pc-award-prize {
  font-size: 15px;
  font-weight: 800;
  color: #e5a900;
}
.pc-vote-info {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.2rem 1.8rem;
  max-width: 680px;
  margin: 0 auto;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}
.pc-vote-info .fas {
  font-size: 2rem;
  color: #ffc824;
  flex-shrink: 0;
}
.pc-vote-info strong {
  display: block;
  font-size: 16px;
  color: var(--text-color);
  margin-bottom: 0.2rem;
}
.pc-vote-info p {
  font-size: 14px;
  color: #555;
  line-height: 1.7;
  margin: 0;
}

/* ---- Steps ---- */
.pc-steps {
  display: flex;
  align-items: stretch;
  gap: 0;
  max-width: 960px;
  margin: 2rem auto 0;
}
.pc-step {
  flex: 1;
  text-align: center;
  padding: 1.8rem 1.2rem;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  transition: all 0.3s;
  box-shadow: 0 4px 20px rgba(255, 200, 36, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.pc-step:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(255, 200, 36, 0.2);
}
.pc-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: #ff6b5e;
  color: #fff;
  border-radius: 50%;
  font-weight: 800;
  font-size: 18px;
  margin-bottom: 0.7rem;
}
.pc-step-icon {
  font-size: 2rem;
  color: #ffc824;
  margin-bottom: 0.8rem;
}
.pc-step-title {
  font-size: 19px;
  font-weight: 800;
  color: var(--text-color);
  margin: 0 0 0.6rem;
  border-bottom: none;
  display: block;
}
.pc-step-desc {
  font-size: 13px;
  line-height: 1.75;
  color: #444;
  margin: 0;
  text-align: left;
}
.pc-step-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.5rem;
  font-size: 1.4rem;
  color: #ff6b5e;
  flex-shrink: 0;
  align-self: center;
}

/* ---- Apply Section ---- */
.pc-apply-methods {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  max-width: 860px;
  margin: 2rem auto 0;
}
.pc-apply-card {
  background: rgba(255, 255, 255, 0.92);
  border-radius: 12px;
  padding: 2rem 1.8rem;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.pc-apply-card--web {
  border: 2px solid #ff6b5e;
  box-shadow: 0 4px 24px rgba(255, 107, 94, 0.12);
}
.pc-apply-card--school {
  border: 1px solid var(--border-color);
}
.pc-apply-card-header {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.pc-apply-card-header .fas {
  font-size: 1.5rem;
  color: #ff6b5e;
}
.pc-apply-card--school .pc-apply-card-header .fas {
  color: #ffc824;
}
.pc-apply-card-header h3 {
  font-size: 19px;
  font-weight: 800;
  color: var(--text-color);
  margin: 0;
  border-bottom: none;
  display: inline;
}
.pc-apply-card p {
  font-size: 14px;
  line-height: 1.85;
  color: #444;
  margin: 0;
}
.pc-apply-notes {
  background: rgba(255, 107, 94, 0.05);
  border-left: 3px solid #ff6b5e;
  border-radius: 0 8px 8px 0;
  padding: 0.8rem 1rem;
}
.pc-apply-notes p {
  font-size: 13px;
  margin: 0 0 0.3rem;
  color: #555;
}
.pc-apply-notes p:last-child {
  margin: 0;
}
.pc-apply-notes .fas {
  color: #ff6b5e;
  margin-right: 0.3rem;
}
.pc-apply-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 1rem 1.5rem;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 800;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: center;
}
.pc-apply-btn--primary {
  background: #ff6b5e;
  color: #fff;
  border: 2px solid #ff6b5e;
  box-shadow: 0 4px 16px rgba(255, 107, 94, 0.3);
}
.pc-apply-btn--primary:hover {
  background: #e54d3f;
  border-color: #e54d3f;
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(255, 107, 94, 0.4);
}
.pc-apply-btn--outline {
  border: 2px solid var(--border-color);
  color: var(--text-color);
  background: transparent;
}
.pc-apply-btn--outline:hover {
  border-color: var(--text-color);
  background: var(--text-color);
  color: #fff;
}
.pc-apply-privacy {
  font-size: 13px;
  color: #666;
  margin: 0;
  padding: 0.6rem 0.8rem;
  background: rgba(0, 0, 0, 0.03);
  border-radius: 8px;
}
.pc-apply-privacy a {
  color: #ff6b5e;
  text-decoration: underline;
}
.pc-paper-info {
  background: rgba(0, 0, 0, 0.025);
  border-radius: 8px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
.pc-paper-info-item {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
}
.pc-paper-info-item .fas {
  color: #ffc824;
  font-size: 1.1rem;
  margin-top: 0.2rem;
  flex-shrink: 0;
}
.pc-paper-info-item strong {
  display: block;
  font-size: 14px;
  color: var(--text-color);
}
.pc-paper-info-item small {
  font-size: 12px;
  color: #666;
}
.pc-apply-contact {
  font-size: 13px;
  color: #666;
  margin: 0;
}
.pc-apply-contact a {
  color: #ff6b5e;
}

/* ---- FAQ ---- */
.pc-faq-list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
.pc-faq-item {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  transition: box-shadow 0.3s;
}
.pc-faq-item[open] {
  box-shadow: 0 4px 20px rgba(255, 200, 36, 0.15);
  border-color: rgba(255, 200, 36, 0.45);
}
.pc-faq-q {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1.1rem 1.5rem;
  cursor: pointer;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-color);
  list-style: none;
  user-select: none;
}
.pc-faq-q::-webkit-details-marker {
  display: none;
}
.pc-faq-q::after {
  content: "\f078";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 11px;
  margin-left: auto;
  color: #ff6b5e;
  transition: transform 0.3s;
  flex-shrink: 0;
}
.pc-faq-item[open] .pc-faq-q::after {
  transform: rotate(180deg);
}
.pc-faq-q .fas {
  color: #ffc824;
  font-size: 1rem;
  flex-shrink: 0;
}
.pc-faq-a {
  padding: 1rem 1.5rem 1.2rem;
  font-size: 14px;
  line-height: 1.85;
  color: #444;
  border-top: 1px solid var(--border-color);
}
.pc-faq-a a {
  color: #ff6b5e;
  text-decoration: underline;
}

/* ---- Festival Banner ---- */
.pc-festival-banner {
  background: linear-gradient(
    135deg,
    rgba(255, 107, 94, 0.07),
    rgba(255, 200, 36, 0.1)
  );
  border: 2px solid rgba(255, 200, 36, 0.4);
  border-radius: 16px;
  padding: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  max-width: 720px;
  margin: 0 auto;
}
.pc-festival-banner-label {
  display: block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.2em;
  color: #e5a900;
  margin-bottom: 0.4rem;
}
.pc-festival-banner-title {
  font-size: 26px;
  font-weight: 900;
  color: var(--text-color);
  margin: 0 0 0.5rem;
  border-bottom: none;
  display: block;
}
.pc-festival-banner-text p {
  font-size: 14px;
  color: #444;
  line-height: 1.75;
  margin: 0;
}

/* ---- Floating CTA ---- */
.pc-floating-cta {
  position: fixed;
  bottom: 80px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  z-index: 2000;
  pointer-events: none;
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.4s ease,
    transform 0.4s ease;
}
.pc-floating-cta.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.pc-floating-cta-btn {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  background: #ff6b5e;
  color: #fff;
  padding: 0.9rem 2.2rem;
  border-radius: 100px;
  font-size: 16px;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 6px 24px rgba(255, 107, 94, 0.5);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.pc-floating-cta-btn:hover {
  background: #e54d3f;
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(255, 107, 94, 0.55);
}
.pc-floating-deadline {
  font-size: 12px;
  opacity: 0.85;
  font-weight: 600;
}

/* ---- Responsive ---- */
@media screen and (max-width: 768px) {
  .pc-message-grid {
    grid-template-columns: 1fr;
  }
  .pc-awards-grid {
    grid-template-columns: 1fr;
  }
  .pc-apply-methods {
    grid-template-columns: 1fr;
  }
  .pc-steps {
    flex-direction: column;
  }
  .pc-step-arrow {
    transform: rotate(90deg);
    padding: 0.4rem 0;
    align-self: center;
  }
  .pc-festival-banner {
    flex-direction: column;
    text-align: center;
  }
  .pc-hero-cta {
    flex-direction: column;
    align-items: center;
  }
  .pc-table th {
    width: 80px;
    font-size: 13px;
    padding: 0.7rem 0.8rem;
  }
  .pc-table td {
    font-size: 13px;
    padding: 0.7rem 0.8rem;
  }
  .pc-floating-cta {
    bottom: 72px;
  }
  .pc-floating-cta-btn {
    width: calc(100% - 2.5rem);
    justify-content: center;
    border-radius: 100px;
  }
}
@media screen and (max-width: 480px) {
  .pc-countdown {
    gap: 0.3rem;
  }
  .pc-countdown-unit {
    min-width: 46px;
    padding: 0.4rem 0.6rem;
  }
  .pc-countdown-unit span {
    font-size: 20px;
  }
  .pc-countdown-sep {
    font-size: 1.5rem;
  }
  .pc-hero-theme {
    padding: 1rem 1.2rem;
  }
  .pc-deadline-block {
    padding: 1.2rem 1rem;
  }
}
