/* ============================================================
   DIFO — grant.css  助成金ページ専用スタイル
   共通スタイルは common.css を参照
   ============================================================ */

/* ============================================================
   PAGE-WIDE OVERRIDES
   ============================================================ */
.section-title {
  text-align: center;
}

/* ============================================================
   HERO BADGE
   ============================================================ */
.grant-hero-badge {
  display: inline-block;
  margin-top: 24px;
  padding: 6px 20px;
  background: rgba(35, 214, 201, 0.18);
  border: 1px solid rgba(35, 214, 201, 0.4);
  border-radius: var(--radius-pill);
  color: var(--accent-color);
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}

/* ============================================================
   OVERVIEW / ORGANIZATION INFO
   ============================================================ */
.grant-overview {
  background: var(--neutral-light);
}

.overview-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.overview-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(47, 122, 182, 0.1);
  transition: box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
}

.overview-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.overview-card__icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  background: var(--primary-bg);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
}

.overview-card__icon svg {
  width: 22px;
  height: 22px;
}

.overview-card h3 {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--neutral-medium);
  margin-bottom: 10px;
}

.overview-card p {
  font-size: 0.9rem;
  color: var(--neutral-dark);
  line-height: 1.6;
  font-weight: 500;
}

/* ============================================================
   PURPOSE
   ============================================================ */
.grant-purpose {
  background: var(--white);
}

.purpose-content {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid rgba(47, 122, 182, 0.12);
  border-left: 4px solid var(--primary-color);
  padding: 36px 40px;
  box-shadow: var(--shadow-sm);
  max-width: 860px;
  margin: 0 auto;
}

.purpose-content p {
  font-size: 0.95rem;
  color: var(--neutral-dark);
  line-height: 1.9;
  margin-bottom: 16px;
}

.purpose-content p:last-child {
  margin-bottom: 0;
}

/* ============================================================
   RESEARCH FIELDS
   ============================================================ */
.grant-fields {
  background: var(--neutral-light);
}

.fields-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.field-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(47, 122, 182, 0.1);
  transition: box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
  position: relative;
  overflow: hidden;
}

.field-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.field-card__num {
  font-family: var(--font-display);
  font-size: 3.2rem;
  font-weight: 800;
  color: rgba(47, 122, 182, 0.07);
  line-height: 1;
  position: absolute;
  top: 12px;
  right: 18px;
  user-select: none;
  pointer-events: none;
}

.field-card h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 14px;
}

.field-card p {
  font-size: 0.875rem;
  color: var(--neutral-medium);
  line-height: 1.85;
}

/* ============================================================
   COLLABORATION
   ============================================================ */
.grant-collab {
  background: var(--white);
}

.collab-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 28px;
}

.collab-card {
  background: var(--neutral-light);
  border-radius: var(--radius);
  padding: 32px 28px;
  border: 1px solid rgba(47, 122, 182, 0.1);
}

.collab-card h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--neutral-dark);
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--primary-light);
}

.collab-card>p {
  font-size: 0.875rem;
  color: var(--neutral-medium);
  line-height: 1.75;
  margin-bottom: 14px;
}

.collab-card>ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.collab-card>ul li {
  font-size: 0.875rem;
  color: var(--neutral-medium);
  line-height: 1.65;
  padding-left: 16px;
  position: relative;
}

.collab-card>ul li::before {
  content: '·';
  position: absolute;
  left: 4px;
  color: var(--primary-color);
  font-weight: 700;
}

.collab-highlight {
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  margin-bottom: 12px;
  border: 1px solid var(--primary-light);
}

.collab-highlight:last-child {
  margin-bottom: 0;
}

.collab-highlight strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 6px;
}

.collab-highlight p {
  font-size: 0.84rem;
  color: var(--neutral-medium);
  line-height: 1.75;
  margin: 0;
}

.duplicate-notice {
  background: var(--primary-bg);
  border: 1px solid var(--primary-light);
  border-radius: var(--radius);
  padding: 24px 28px;
}

.duplicate-notice__header {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 14px;
}

.duplicate-notice__header svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.duplicate-notice ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.duplicate-notice ul li {
  font-size: 0.875rem;
  color: var(--neutral-medium);
  line-height: 1.65;
  padding-left: 16px;
  position: relative;
}

.duplicate-notice ul li::before {
  content: '·';
  position: absolute;
  left: 4px;
  color: var(--primary-color);
  font-weight: 700;
}

/* ============================================================
   GRANT DETAILS
   ============================================================ */
.grant-details {
  background: var(--neutral-light);
}

.details-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 24px;
}

.detail-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border-top: 3px solid var(--primary-color);
  transition: box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
}

.detail-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.detail-card__label {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--neutral-medium);
  margin-bottom: 12px;
}

.detail-card__value {
  font-size: 1rem;
  color: var(--neutral-dark);
  line-height: 1.5;
}

.detail-card__value strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--primary-color);
  line-height: 1.2;
}

.evaluation-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 32px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(47, 122, 182, 0.12);
}

.evaluation-card__header {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 14px;
}

.evaluation-card__header svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--accent-color);
}

.evaluation-card p {
  font-size: 0.9rem;
  color: var(--neutral-medium);
  line-height: 1.85;
}

/* ============================================================
   QUALIFICATION
   ============================================================ */
.grant-qualify {
  background: var(--white);
}

.qualify-card {
  background: var(--neutral-light);
  border-radius: var(--radius);
  padding: 40px 36px;
  max-width: 640px;
  margin: 0 auto;
  border: 1px solid rgba(47, 122, 182, 0.1);
}

.qualify-card h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--neutral-dark);
  margin-bottom: 20px;
}

.qualify-card ul {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.qualify-card ul li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--neutral-dark);
  line-height: 1.6;
}

.qualify-card ul li svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--accent-color);
}

/* ============================================================
   APPLICATION SCHEDULE
   ============================================================ */
.grant-schedule {
  background: var(--neutral-light);
}

.app-timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  padding-left: 52px;
  margin-bottom: 28px;
}

.app-timeline::before {
  content: '';
  position: absolute;
  left: 19px;
  top: 20px;
  bottom: 20px;
  width: 2px;
  background: linear-gradient(180deg, var(--primary-color) 0%, var(--accent-color) 100%);
}

.app-timeline__item {
  position: relative;
  padding: 20px 24px;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid rgba(47, 122, 182, 0.1);
  box-shadow: var(--shadow-sm);
  margin-bottom: 12px;
  transition: box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
}

.app-timeline__item:last-child {
  margin-bottom: 0;
}

.app-timeline__item:hover {
  box-shadow: var(--shadow-md);
  transform: translateX(4px);
}

.app-timeline__step {
  position: absolute;
  left: -52px;
  top: 16px;
  width: 38px;
  height: 38px;
  background: var(--primary-color);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  z-index: 1;
  box-shadow: 0 0 0 4px var(--neutral-light);
}

.app-timeline__date {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--primary-color);
  background: var(--primary-pale);
  padding: 2px 10px;
  border-radius: var(--radius-pill);
  margin-bottom: 6px;
}

.app-timeline__body h4 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--neutral-dark);
  margin-bottom: 4px;
}

.app-timeline__body p {
  font-size: 0.875rem;
  color: var(--neutral-medium);
  line-height: 1.6;
}

.schedule-notice {
  background: rgba(47, 122, 182, 0.05);
  border: 1px solid rgba(47, 122, 182, 0.18);
  border-left: 4px solid var(--primary-color);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
}

.schedule-notice h4 {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 8px;
}

.schedule-notice ul li {
  font-size: 0.875rem;
  color: var(--neutral-medium);
  line-height: 1.65;
}

/* ============================================================
   RESEARCH PERIOD SCHEDULE
   ============================================================ */
.grant-research-schedule {
  background: var(--white);
}

.rs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 720px;
  margin: 0 auto;
}

.rs-card {
  background: var(--neutral-light);
  border-radius: var(--radius);
  padding: 36px 28px;
  border: 1px solid rgba(47, 122, 182, 0.1);
  text-align: center;
  transition: box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
}

.rs-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.rs-card__icon {
  width: 52px;
  height: 52px;
  background: var(--white);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  color: var(--primary-color);
  box-shadow: var(--shadow-sm);
}

.rs-card__icon svg {
  width: 24px;
  height: 24px;
}

.rs-card h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--neutral-dark);
  margin-bottom: 10px;
}

.rs-card__timing {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 4px;
}

.rs-card__detail {
  font-size: 0.82rem;
  color: var(--neutral-medium);
}

/* ============================================================
   APPLICATION STEPS
   ============================================================ */
.grant-apply {
  background: var(--neutral-light);
}

.apply-steps {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.apply-step {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 24px;
  align-items: flex-start;
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(47, 122, 182, 0.1);
  transition: box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
}

.apply-step:hover {
  box-shadow: var(--shadow-md);
  transform: translateX(4px);
}

.apply-step__num {
  width: 48px;
  height: 48px;
  background: var(--primary-color);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  flex-shrink: 0;
}

.apply-step__body h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--neutral-dark);
  margin-bottom: 8px;
}

.apply-step__body>p {
  font-size: 0.875rem;
  color: var(--neutral-medium);
  line-height: 1.75;
  margin-bottom: 12px;
}

.apply-step__body>p:last-child {
  margin-bottom: 0;
}

/* direct ul in step body */
.apply-step__body>ul {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: var(--primary-bg);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  margin-top: 4px;
}

.apply-step__body>ul li {
  font-size: 0.84rem;
  color: var(--neutral-medium);
  line-height: 1.65;
  padding-left: 14px;
  position: relative;
}

.apply-step__body>ul li::before {
  content: '·';
  position: absolute;
  left: 2px;
  color: var(--primary-color);
  font-weight: 700;
}

.apply-step__checklist {
  background: var(--primary-bg);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  margin-top: 8px;
}

.apply-step__checklist>p {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 8px;
}

.apply-step__checklist ul {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.apply-step__checklist ul li {
  font-size: 0.84rem;
  color: var(--neutral-medium);
  line-height: 1.65;
  padding-left: 14px;
  position: relative;
}

.apply-step__checklist ul li::before {
  content: '·';
  position: absolute;
  left: 2px;
  color: var(--primary-color);
  font-weight: 700;
}

.apply-step__warning {
  font-size: 0.82rem;
  color: var(--neutral-medium);
  font-style: italic;
}

/* ============================================================
   CTA
   ============================================================ */
.grant-cta {
  background: linear-gradient(135deg, var(--primary-bg) 0%, var(--secondary-pale) 100%);
}

.cta-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 56px 48px;
  text-align: center;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--primary-light);
  position: relative;
  overflow: hidden;
}

.cta-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
}

.cta-card__eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent-color);
  background: rgba(35, 214, 201, 0.12);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  margin-bottom: 20px;
}

.cta-card h2 {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--neutral-dark);
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.cta-card>p {
  font-size: 0.95rem;
  color: var(--neutral-medium);
  margin-bottom: 32px;
}

.cta-card__btns {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .overview-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .fields-grid {
    grid-template-columns: 1fr;
  }

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

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

  .rs-grid {
    grid-template-columns: 1fr;
    max-width: none;
  }

  .app-timeline {
    padding-left: 44px;
  }

  .app-timeline__step {
    left: -44px;
    width: 34px;
    height: 34px;
    font-size: 0.8rem;
    top: 18px;
  }

  .apply-step {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .apply-step__num {
    width: 42px;
    height: 42px;
    font-size: 1rem;
  }

  .cta-card {
    padding: 40px 24px;
  }

  .purpose-content {
    padding: 24px 22px;
  }

  .qualify-card {
    padding: 28px 22px;
  }
}

@media (max-width: 480px) {
  .overview-grid {
    grid-template-columns: 1fr;
  }

  .cta-card {
    padding: 32px 20px;
  }

  .cta-card__btns {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .cta-card__btns .btn {
    width: 100%;
    justify-content: center;
  }

  .field-card {
    padding: 24px 20px;
  }

  .collab-card {
    padding: 24px 20px;
  }

  .duplicate-notice {
    padding: 20px 18px;
  }

  .evaluation-card {
    padding: 22px 20px;
  }

  .qualify-card {
    padding: 24px 18px;
  }

  .purpose-content {
    padding: 22px 18px;
    border-left-width: 3px;
  }

  .app-timeline {
    padding-left: 38px;
  }

  .app-timeline::before {
    left: 14px;
  }

  .app-timeline__item {
    padding: 16px 18px;
  }

  .app-timeline__step {
    left: -38px;
    width: 30px;
    height: 30px;
    font-size: 0.74rem;
  }

  .apply-step {
    padding: 22px 18px;
  }

  .apply-step__body>ul,
  .apply-step__checklist {
    padding: 12px 14px;
  }

  .grant-hero-badge {
    font-size: 0.74rem;
    padding: 5px 14px;
  }
}