/* ===== Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 18px; }

body {
  font-family: 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', 'Meiryo', sans-serif;
  background: #fdf8f3;
  color: #1a1a1a;
  line-height: 1.75;
}

a { color: #1a1a1a; }
a:hover { opacity: 0.7; }

.container {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 24px;
}

.main-content { padding: 48px 24px; }

/* ===== Header ===== */
.site-header {
  background: #1d3461;
  color: #fff;
  padding: 52px 24px 44px;
  border-bottom: 5px solid #f4a738;
}

.event-label {
  font-size: 1.78rem;
  letter-spacing: 0.14em;
  color: #f4a738;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.site-title {
  font-size: clamp(2.6rem, 7vw, 4rem);
  font-weight: 900;
  letter-spacing: 0.18em;
  line-height: 1;
  margin-bottom: 12px;
  color: #fff;
}

.site-subtitle {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.08em;
}

/* ===== Notice ===== */
.notice-bar {
  background: #e84545;
  color: #fff;
  padding: 16px 24px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-align: center;
  border-bottom: 3px solid #c42f2f;
}

/* ===== Section ===== */
.section {
  margin-bottom: 56px;
}

.section-title {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #1d3461;
  border-bottom: 2px solid #1d3461;
  padding-bottom: 8px;
  margin-bottom: 28px;
}

.section-lead {
  font-size: 0.93rem;
  color: #555;
  margin-bottom: 24px;
}

/* ===== Event ===== */
.event-block {
  background: #fff;
  border: 1px solid #ddd;
  padding: 28px;
}

.meta-list { margin-bottom: 28px; }

.meta-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  border-bottom: 1px solid #eee;
  padding: 10px 0;
}

.meta-row:first-child { border-top: 1px solid #eee; }

.meta-row dt {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #999;
  padding-top: 2px;
}

.meta-row dd {
  font-size: 0.95rem;
  font-weight: 600;
  color: #111;
}

.sub-text {
  font-size: 0.82rem;
  font-weight: 400;
  color: #888;
}

.block-heading {
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #999;
  margin-bottom: 14px;
}

.sessions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: #ddd;
  border: 1px solid #ddd;
  margin-bottom: 10px;
}

.session:nth-child(1) { background: #fff8ee; }
.session:nth-child(2) { background: #f0f8ff; }
.session:nth-child(3) { background: #f5f0ff; }

.session {
  padding: 16px 12px;
  text-align: center;
}

.session:nth-child(1) .session-label { color: #e07b00; }
.session:nth-child(2) .session-label { color: #1d6fa4; }
.session:nth-child(3) .session-label { color: #7c4dbe; }

.session-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  margin-bottom: 6px;
}

.session-time {
  font-size: 1rem;
  font-weight: 800;
  color: #111;
  letter-spacing: 0.02em;
}

.session-note {
  font-size: 0.82rem;
  color: #777;
  margin-bottom: 24px;
}

.contents-list {
  list-style: none;
  margin-bottom: 24px;
}

.contents-list li {
  padding: 8px 0 8px 16px;
  border-bottom: 1px solid #f0f0f0;
  font-size: 0.9rem;
  color: #333;
  position: relative;
}

.contents-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: #f4a738;
  font-weight: 700;
}

.event-site-link {
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.referrer-note {
  font-size: 0.88rem;
  color: #1d3461;
  background: #eef3ff;
  border-left: 3px solid #1d3461;
  padding: 8px 14px;
}

/* ===== Exhibitors ===== */
.exhibitor-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: #ddd;
  border: 1px solid #ddd;
}

.exhibitor {
  background: #fff;
  display: grid;
  grid-template-columns: 200px 1fr;
}

.exhibitor-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  min-height: 160px;
}

.logo-daizu  { background: #fff4f4; border-right: 1px solid #fdd; }
.logo-greeden { background: #008737; border-right: 1px solid #006b2c; }
.logo-42     { background: #f0f4ff; border-right: 1px solid #dde4f5; }

.exhibitor-logo img {
  max-width: 140px;
  max-height: 80px;
  object-fit: contain;
}

.logo-text-fallback {
  font-weight: 900;
  font-size: 1.1rem;
  letter-spacing: 0.05em;
}

.logo-greeden .logo-text-fallback { color: #fff; }
.logo-daizu  .logo-text-fallback  { color: #F74F4C; }
.logo-42     .logo-text-fallback  { color: #1d3461; }

.exhibitor-body {
  padding: 24px 28px;
}

.exhibitor-company {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #999;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.exhibitor-name {
  font-size: 1.25rem;
  font-weight: 900;
  color: #111;
  margin-bottom: 10px;
  letter-spacing: 0.04em;
}

.exhibitor-desc {
  font-size: 0.87rem;
  color: #555;
  line-height: 1.7;
  margin-bottom: 12px;
}

.exhibitor-url {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #1d3461;
  text-decoration: underline;
}

/* ===== Ticket ===== */
.ticket-block {
  background: #1d3461;
  color: #fff;
  padding: 36px 32px;
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
  border-left: 8px solid #f4a738;
}

.ticket-price {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.price-per {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.6);
}

.price-num {
  font-size: 3rem;
  font-weight: 900;
  color: #f4a738;
  letter-spacing: -0.01em;
  line-height: 1;
}

.price-desc {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.6);
}

.ticket-group {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.85);
  border-left: 3px solid #f4a738;
  padding-left: 14px;
}

.ticket-group strong { color: #f4a738; }

/* ===== Flow ===== */
.flow { display: flex; flex-direction: column; }

.flow-step {
  background: #fff;
  border: 1px solid #ddd;
  display: grid;
  grid-template-columns: 52px 1fr;
}

.flow-step--highlight {
  border-color: #f4a738;
  border-width: 2px;
}

.step-num {
  background: #1d3461;
  color: #f4a738;
  font-size: 1.3rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
}

.flow-step--highlight .step-num {
  background: #f4a738;
  color: #1d3461;
}

.step-body {
  padding: 22px 24px;
}

.step-body h3 {
  font-size: 1rem;
  font-weight: 800;
  color: #111;
  margin-bottom: 6px;
  letter-spacing: 0.02em;
}

.step-body p {
  font-size: 0.88rem;
  color: #555;
  margin-bottom: 14px;
}

.step-body p strong {
  color: #c42f2f;
}

.step-body p:last-child { margin-bottom: 0; }

.flow-connector {
  width: 52px;
  height: 20px;
  background: #e8e4dc;
  position: relative;
}

.flow-connector::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #bbb;
  transform: translateX(-50%);
}

/* ===== Payment ===== */
.payment-block {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: #ddd;
  border: 1px solid #ddd;
}

.payment-method {
  background: #fff;
  padding: 28px;
}

.payment-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.payment-tag {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  padding: 3px 10px;
  text-transform: uppercase;
}

.tag-paypal { background: #1558b0; color: #fff; }
.tag-bank   { background: #2e7d52; color: #fff; }
.tag-cash   { background: #b5651d; color: #fff; }

.payment-name {
  font-size: 1.05rem;
  font-weight: 800;
  color: #111;
}

.badge-rec {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border: 1px solid #1558b0;
  color: #1558b0;
}

.payment-method p {
  font-size: 0.88rem;
  color: #444;
  margin-bottom: 16px;
}

.bank-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 12px;
  font-size: 0.88rem;
}

.bank-table th,
.bank-table td {
  padding: 9px 14px;
  border: 1px solid #e8e8e8;
  text-align: left;
}

.bank-table th {
  background: #f0f6f2;
  width: 36%;
  font-weight: 700;
  color: #555;
}

.bank-table td { color: #111; }

.bank-table strong {
  font-size: 1rem;
  letter-spacing: 0.06em;
}

.note {
  font-size: 0.8rem;
  color: #999;
  margin-bottom: 0 !important;
}

.cash-note {
  color: #b5651d;
  font-size: 1.05rem;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* 決済方法へのページ内リンク */
.link-payment {
  color: #e84545;
  font-size: 1.05rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  letter-spacing: 0.02em;
}

.link-payment:hover {
  color: #c42f2f;
  opacity: 1;
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 11px 24px;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: opacity 0.15s;
  text-decoration: none;
}

.btn:hover { opacity: 0.8; text-decoration: none; }

.btn-primary {
  background: #1d3461;
  color: #fff;
}

.btn-paypal {
  background: #1558b0;
  color: #fff;
  font-size: 0.95rem;
  padding: 13px 28px;
  display: inline-block;
}

/* ===== Confirm ===== */
.confirm-box {
  background: #fff;
  border: 2px solid #1d3461;
  padding: 28px;
}

.confirm-title {
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 18px;
  color: #1d3461;
}

.confirm-list {
  list-style: none;
  margin-bottom: 18px;
}

.confirm-list li {
  padding: 12px 0;
  border-bottom: 1px solid #eee;
}

.chk-label {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  cursor: pointer;
  width: 100%;
}

.chk-input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.chk-box {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border: 2px solid #1d3461;
  background: #fff;
  margin-top: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, border-color 0.15s;
}

.chk-box::after {
  content: '';
  display: none;
  width: 8px;
  height: 14px;
  border-right: 3px solid #fff;
  border-bottom: 3px solid #fff;
  transform: rotate(45deg) translate(-1px, -2px);
}

.chk-input:checked + .chk-box {
  background: #2e7d52;
  border-color: #2e7d52;
}

.chk-input:checked + .chk-box::after {
  display: block;
}

.chk-text {
  font-size: 0.95rem;
  color: #333;
  line-height: 1.7;
  padding-top: 3px;
}

.confirm-note {
  font-size: 0.85rem;
  color: #8b5a00;
  padding: 10px 14px;
  background: #fff8ee;
  border-left: 3px solid #f4a738;
}

.confirm-complete {
  display: none;
  margin-top: 16px;
  padding: 20px;
  background: #2e7d52;
  color: #fff;
  font-size: 1.3rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-align: center;
  border-left: 6px solid #f4a738;
  animation: popIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.confirm-complete.is-visible {
  display: block;
}

@keyframes popIn {
  0%   { opacity: 0; transform: scale(0.88); }
  100% { opacity: 1; transform: scale(1); }
}

.confirm-hint {
  opacity: 0;
  margin-top: 8px;
  font-size: 0.78rem;
  color: #aaa;
  text-align: right;
  letter-spacing: 0.03em;
  transition: opacity 0.8s ease;
  pointer-events: none;
}

.confirm-hint.hint-visible {
  opacity: 1;
  animation: hintPulse 2s ease-in-out infinite;
}

@keyframes hintPulse {
  0%, 100% { opacity: 0.5; }
  50%       { opacity: 1; }
}

.complete-badge {
  display: inline-block;
  margin-top: 6px;
  font-size: 0.85rem;
  background: #f4a738;
  color: #1d3461;
  padding: 2px 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

/* ===== Confetti Canvas ===== */
#confettiCanvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
}

/* ===== Footer ===== */
.site-footer {
  background: #1d3461;
  color: rgba(255,255,255,0.5);
  padding: 36px 24px;
  font-size: 0.83rem;
  line-height: 2;
  text-align: center;
  border-top: 4px solid #f4a738;
}

.site-footer a { color: rgba(255,255,255,0.7); text-decoration: underline; }

.copy {
  margin-top: 16px;
  opacity: 0.35;
  font-size: 0.75rem;
}

/* ===== Responsive ===== */
@media (max-width: 600px) {
  .meta-row { grid-template-columns: 90px 1fr; }

  .sessions { grid-template-columns: 1fr; gap: 1px; }

  .exhibitor { grid-template-columns: 1fr; }

  .exhibitor-logo {
    min-height: 100px;
    border-right: none;
    border-bottom: 1px solid #eee;
  }

  .logo-greeden { border-bottom: 1px solid #006b2c; }

  .ticket-block { flex-direction: column; gap: 20px; }

  .ticket-group { border-left: none; padding-left: 0; border-top: 1px solid rgba(255,255,255,0.2); padding-top: 16px; }

  .flow-step { grid-template-columns: 44px 1fr; }

  .flow-connector { width: 44px; }
}
