/* ============================================================
   試験申し込みポータル — スタイルシート
   ============================================================ */

:root {
  --blue-50:  #eff6ff;
  --blue-100: #dbeafe;
  --blue-200: #bfdbfe;
  --blue-300: #93c5fd;
  --blue-400: #60a5fa;
  --blue-500: #3b82f6;
  --blue-600: #2563eb;
  --blue-700: #1d4ed8;
  --slate-50:  #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-400: #94a3b8;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --white: #ffffff;
}

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

/* ── Base ── */
body {
  background: var(--slate-50);
  color: var(--slate-800);
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 400;
  min-height: 100vh;
}

/* ============================================================
   Hero — wave background
   ============================================================ */
.hero {
  /* 画像は横長（1601×403）のためheight固定でそのまま表示 */
  background:
    /* テキスト可読性のための中央ホワイトフォグ */
    radial-gradient(
      ellipse 70% 80% at 50% 44%,
      rgba(255,255,255,0.82) 0%,
      rgba(255,255,255,0.45) 55%,
      rgba(255,255,255,0.0) 100%
    ),
    url('images/hero-bg.jpg') center center / cover no-repeat;
  background-color: #daeeff;
  position: relative;
  overflow: hidden;
  padding: 44px 24px 52px;
  text-align: center;
  min-height: 220px;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ── Eyebrow label ── */
.hero-eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--blue-600);
  margin-bottom: 20px;
  width: 100%;
}

.hero-eyebrow::before,
.hero-eyebrow::after {
  content: '';
  display: block;
  width: 28px;
  height: 1px;
  background: var(--blue-400);
  opacity: 0.7;
}

/* ── Title row (logo + h1) ── */
.hero-title-row {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.hero-title-row h1 {
  margin-bottom: 0;
}

/* ── Main title ── */
.hero h1 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(26px, 4.5vw, 44px);
  color: var(--blue-700);
  line-height: 1.2;
  margin-bottom: 12px;
  text-shadow:
    0 1px 0 rgba(255,255,255,1),
    0 2px 16px rgba(255,255,255,0.9);
}

/* ── Subtitle ── */
.hero p {
  color: var(--blue-700);
  font-size: 13.5px;
  font-weight: 400;
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.9;
  text-shadow:
    0 0 12px rgba(255,255,255,1),
    0 1px 4px rgba(255,255,255,0.9);
}

/* ── Logo ── */
.hero-logo {
  height: 56px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(255,255,255,0.7));
  flex-shrink: 0;
}

.hero-logo-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 80px;
  height: 56px;
  border: 1.5px dashed var(--blue-400);
  border-radius: 10px;
  color: var(--blue-500);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  background: rgba(255,255,255,0.55);
  backdrop-filter: blur(4px);
  flex-shrink: 0;
}

.hero-logo-wrap .hero-logo-placeholder { display: none; }

/* ============================================================
   Search Band
   ============================================================ */
.search-band {
  background: var(--white);
  border-bottom: 1px solid var(--slate-200);
  padding: 0 24px;
  display: flex;
  justify-content: center;
  margin-top: -20px;
  position: relative;
  z-index: 10;
}

.search-inner {
  position: relative;
  width: 100%;
  max-width: 560px;
  transform: translateY(-22px);
}

.search-inner input {
  width: 100%;
  border: 1.5px solid var(--blue-200);
  border-radius: 10px;
  padding: 13px 18px 13px 44px;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 14px;
  color: var(--slate-800);
  background: var(--white);
  box-shadow: 0 4px 20px rgba(59,130,246,0.10);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.search-inner input::placeholder { color: var(--slate-400); }

.search-inner input:focus {
  border-color: var(--blue-500);
  box-shadow: 0 4px 24px rgba(59,130,246,0.18);
}

.search-inner svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--blue-400);
}

/* ============================================================
   Main Content
   ============================================================ */
.main {
  max-width: 960px;
  margin: 0 auto;
  padding: 8px 24px 80px;
}

/* ============================================================
   Section Blocks
   ============================================================ */
.section-block {
  margin-bottom: 40px;
}

/* セクション見出しバー */
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 16px 20px;
  border-radius: 12px 12px 0 0;
}

.section-heading.yes {
  background: linear-gradient(135deg, var(--blue-700) 0%, var(--blue-500) 100%);
}

.section-heading.ops {
  background: linear-gradient(135deg, #0ea5e9 0%, #38bdf8 100%);
}

.section-heading-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.section-tag {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
}

.section-title {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.02em;
}

/* カードリストと見出しを一体化 */
.section-heading + .providers {
  border: 1.5px solid var(--blue-200);
  border-top: none;
  border-radius: 0 0 12px 12px;
  overflow: hidden;
  padding: 12px;
  background: var(--slate-50);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* ============================================================
   Cards — flat, no accordion
   ============================================================ */
.card {
  display: flex;
  align-items: stretch;
  background: var(--white);
  border: 1.5px solid var(--slate-200);
  border-radius: 10px;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
  opacity: 0;
  transform: translateY(10px);
  animation: rise 0.4s forwards;
}

.card:hover {
  border-color: var(--blue-200);
  box-shadow: 0 2px 14px rgba(59,130,246,0.09);
}

@keyframes rise {
  to { opacity: 1; transform: none; }
}

.card:nth-child(1) { animation-delay: 0.04s; }
.card:nth-child(2) { animation-delay: 0.08s; }
.card:nth-child(3) { animation-delay: 0.12s; }
.card:nth-child(4) { animation-delay: 0.16s; }
.card:nth-child(5) { animation-delay: 0.20s; }
.card:nth-child(6) { animation-delay: 0.24s; }
.card:nth-child(7) { animation-delay: 0.28s; }
.card:nth-child(8) { animation-delay: 0.32s; }

/* Left accent bar */
.card-accent {
  width: 4px;
  flex-shrink: 0;
  background: var(--blue-400);
  transition: background 0.2s;
}

.card:hover .card-accent { background: var(--blue-600); }

/* Card body: info + button */
.card-body {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  flex-wrap: wrap;
}

.card-info {
  flex: 1;
  min-width: 0;
}

.card-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--slate-800);
  margin-bottom: 4px;
  letter-spacing: 0.01em;
}

.card-sub {
  font-size: 12px;
  color: var(--slate-400);
  font-weight: 300;
  line-height: 1.6;
}

/* ── 申し込みボタン ── */
.btn-apply {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  border-radius: 8px;
  border: 1.5px solid var(--blue-500);
  background: var(--white);
  color: var(--blue-600);
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.18s, color 0.18s, box-shadow 0.18s, transform 0.15s;
}

.btn-apply:hover {
  background: var(--blue-600);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(37,99,235,0.25);
  transform: translateY(-1px);
}

.btn-apply svg {
  transition: transform 0.18s;
}

.btn-apply:hover svg {
  transform: translateX(2px);
}

/* ── Search hidden state ── */
.card.hidden { display: none; }

/* ============================================================
   Footer
   ============================================================ */
footer {
  text-align: center;
  padding: 28px 24px;
  border-top: 1px solid var(--slate-200);
  font-size: 12px;
  color: var(--slate-400);
  font-weight: 300;
  letter-spacing: 0.04em;
  background: var(--white);
}
