:root {
  --color-primary: #1470CC;
  --color-primary-dark: #0f5aa8;
  --color-secondary: #4AA249;
  --color-primary-tint: #E8F0FC;
  --color-text: #1A2433;
  --color-text-muted: #566072;
  --color-bg-white: #FFFFFF;
  --color-bg-tint: #F5F8FC;
  --color-border: #D7E3F5;

  --font-heading: 'Plus Jakarta Sans', sans-serif;
  --font-body: 'Inter', sans-serif;

  --max-width: 1120px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.25;
  color: var(--color-text);
}

h2 {
  font-size: 1.75rem;
  margin-bottom: 2rem;
  text-align: center;
}

h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

p {
  color: var(--color-text-muted);
}

a {
  color: var(--color-primary);
  text-decoration: none;
}

ul {
  list-style: none;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section {
  padding: 3.5rem 0;
}

.section-white {
  background: var(--color-bg-white);
}

.section-tint {
  background: var(--color-bg-tint);
}

/* Buttons */
.btn {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.9rem 1.75rem;
  border-radius: 8px;
  text-align: center;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--color-primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--color-primary-dark);
}

.btn-secondary {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.btn-secondary:hover {
  background: var(--color-primary-tint);
}

.btn-large {
  padding: 1.1rem 2.5rem;
  font-size: 1.05rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid var(--color-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo-link {
  display: flex;
  align-items: center;
  height: 100%;
}

.logo-img {
  height: 50.4px;
  width: auto;
  display: block;
  object-fit: contain;
}

.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 110;
}

.hamburger span {
  display: block;
  height: 2px;
  width: 24px;
  background: var(--color-text);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.hamburger.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.is-open span:nth-child(2) {
  opacity: 0;
}

.hamburger.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.primary-nav {
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  bottom: 0;
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 1.5rem 1.25rem;
  transform: translateX(100%);
  transition: transform 0.3s ease;
}

.primary-nav.is-open {
  transform: translateX(0);
}

.primary-nav a {
  width: 100%;
  padding: 0.9rem 0;
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--color-text);
  border-bottom: 1px solid var(--color-border);
}

.primary-nav a.nav-cta {
  margin-top: 0.75rem;
  border-bottom: none;
  background: var(--color-primary);
  color: #fff;
  text-align: center;
  border-radius: 8px;
  padding: 0.9rem 1rem;
}

/* Hero */
.hero {
  padding: 4rem 0 3.5rem;
  background:
    linear-gradient(rgba(10, 20, 35, 0.6), rgba(10, 20, 35, 0.6)),
    url('./images/Pirika_Header.jpg?v=2') center / cover no-repeat;
  text-align: center;
}

.hero h1 {
  font-size: 2rem;
  max-width: 720px;
  margin: 0 auto 1.25rem;
  color: #fff;
}

.hero-sub {
  font-size: 1.05rem;
  max-width: 560px;
  margin: 0 auto 2rem;
  color: rgba(255, 255, 255, 0.88);
}

.hero .btn-secondary {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.75);
}

.hero .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
}

.hero-cta {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  align-items: center;
}

/* Two Programs: Grant + Pilot */
.program-grid {
  align-items: stretch;
}

.program-col {
  position: relative;
  display: flex;
  flex-direction: column;
}

.program-col .btn {
  margin-top: 1.25rem;
  align-self: flex-start;
}

.program-col-featured {
  border-color: var(--color-primary);
  box-shadow: 0 4px 20px rgba(20, 112, 204, 0.1);
}

.program-badge {
  display: inline-block;
  align-self: flex-start;
  background: var(--color-primary-tint);
  color: var(--color-primary);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  margin-bottom: 0.85rem;
}

.program-badge-secondary {
  background: var(--color-bg-tint);
  color: var(--color-text-muted);
}

.program-sub {
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

/* About */
.about-grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.about-intro {
  max-width: 640px;
  margin: 0 auto 2rem;
}

.check-list li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.9rem;
  color: var(--color-text-muted);
}

.section-img {
  width: 100%;
  max-width: 600px;
  border-radius: 12px;
  margin: 24px auto 0;
  display: block;
  object-fit: cover;
}

.section-img-inline {
  max-width: 100%;
  aspect-ratio: 16 / 9;
  margin: 0 0 1.25rem;
}

/* Video embed (YouTube) */
.video-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 1.25rem;
  background: #000;
  border: 1px solid var(--color-border);
}

.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* Slideshow */
.slideshow {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 1.25rem;
  background: #fff;
  border: 1px solid var(--color-border);
}

.slideshow .slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.slideshow .slide.is-active {
  opacity: 1;
}

.slideshow .slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.slideshow .slide .img-placeholder {
  width: 100%;
  height: 100%;
  border-radius: 0;
  border: none;
}

.slideshow-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 8px;
  z-index: 2;
  display: flex;
  justify-content: center;
  gap: 6px;
}

.slideshow-dot {
  width: 7px;
  height: 7px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  box-shadow: 0 0 0 1px rgba(26, 36, 51, 0.25);
  cursor: pointer;
}

.slideshow-dot.is-active {
  background: #fff;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-secondary);
}

/* Image placeholder */
.img-placeholder {
  width: 100%;
  background: var(--color-primary-tint);
  border: 2px dashed var(--color-primary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  font-weight: 600;
  font-size: 0.9rem;
  text-align: center;
}

.ratio-16-9 {
  aspect-ratio: 16 / 9;
}

.ratio-4-3 {
  aspect-ratio: 4 / 3;
}

.ratio-3-4 {
  aspect-ratio: 3 / 4;
}

/* Trust / Stats */
.trust-lede {
  text-align: center;
  max-width: 560px;
  margin: -1.25rem auto 2rem;
}

.trust-map {
  max-width: 360px;
  margin: 0 auto 2rem;
}

.trust-map-img {
  display: block;
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  border-radius: 16px;
  border: 1px solid var(--color-border);
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 1.75rem;
}

.stat-item {
  text-align: center;
  background: var(--color-bg-tint);
  border-radius: 12px;
  padding: 1.5rem 1rem;
}

.stat-num {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.6rem;
  color: var(--color-primary);
  margin-bottom: 0.35rem;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.trust-note {
  text-align: center;
  max-width: 680px;
  margin: 0 auto;
  font-size: 0.85rem;
}

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.feature-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 0.9rem 1.5rem;
  border-top: 4px solid var(--color-primary);
}

.feature-card.accent-green {
  border-top-color: var(--color-secondary);
}

.feature-card.accent-blue {
  border-top-color: var(--color-primary);
}

.feature-card.accent-green .icon-placeholder {
  border-color: var(--color-secondary);
}

/* Icon placeholder（後日アイコン画像に差し替え可能） */
.icon-placeholder {
  width: 48px;
  height: 48px;
  background: var(--color-primary-tint);
  border: 2px dashed var(--color-primary);
  border-radius: 10px;
  margin-bottom: 0.9rem;
}

.feature-icon-img {
  display: block;
  width: 77px;
  height: 77px;
  object-fit: contain;
  margin: 0 auto 0.9rem;
}

.icon-placeholder-round {
  margin: 0 auto 0.75rem;
  border-radius: 50%;
}

/* Audience */
.audience-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.audience-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  overflow: hidden;
  padding: 0 0 1.25rem;
  text-align: center;
}

.audience-card p {
  margin-top: 0.9rem;
  padding: 0 0.75rem;
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--color-text);
  font-size: 0.95rem;
}

.audience-photo {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.audience-icon-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-primary-tint);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.85rem;
}

.audience-icon-circle svg {
  width: 26px;
  height: 26px;
}

/* Two-column detail blocks (Programs, Pilot Details, etc.) */
.details-grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.details-col {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 1.75rem;
}

.details-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--color-border);
}

.details-row:last-child {
  border-bottom: none;
}

.details-row dt {
  font-weight: 600;
  color: var(--color-text-muted);
}

.details-row dd {
  font-weight: 700;
  text-align: right;
  color: var(--color-text);
}

.benefits-list li {
  position: relative;
  padding: 0.75rem 0 0.75rem 1.75rem;
  border-bottom: 1px solid var(--color-border);
  font-weight: 600;
}

.benefits-list li:last-child {
  border-bottom: none;
}

.benefits-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 1.05em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-secondary);
}

/* Case Studies */
.case-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.case-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  overflow: hidden;
  padding-bottom: 1.5rem;
}

.case-card .img-placeholder {
  border-radius: 0;
  border-left: none;
  border-right: none;
  border-top: none;
}

.case-card h3,
.case-card p {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.case-card h3 {
  margin-top: 1.25rem;
}

/* Accordion */
.accordion {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.accordion-item {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  overflow: hidden;
}

.accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 1.1rem 1.25rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--color-text);
  text-align: left;
}

.accordion-icon {
  flex-shrink: 0;
  color: var(--color-primary);
  font-size: 1.2rem;
  transition: transform 0.2s ease;
}

.accordion-item.is-open .accordion-icon {
  transform: rotate(45deg);
}

.accordion-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 1.25rem;
}

.accordion-item.is-open .accordion-panel {
  padding: 0 1.25rem 1.25rem;
}

/* Contact */
.contact-section {
  text-align: center;
}

.contact-section p {
  max-width: 480px;
  margin: 0 auto 1.75rem;
}

.contact-note {
  margin-top: 1.5rem;
  font-size: 0.9rem;
}

.apply-note {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  margin-top: 12px;
}
.apply-note a {
  color: var(--color-primary);
  text-decoration: underline;
}

.pilot-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.pilot-step {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 12px 16px;
}
.pilot-step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.pilot-step-text {
  display: flex;
  flex-direction: column;
}
.pilot-step-text strong {
  font-size: 0.85rem;
  color: var(--color-text);
  font-weight: 600;
}
.pilot-step-text span {
  font-size: 0.72rem;
  color: var(--color-text-muted);
}
.pilot-step-arrow {
  color: var(--color-border);
  font-size: 1.2rem;
}
@media (max-width: 600px) {
  .pilot-step-arrow { display: none; }
  .pilot-step { width: 100%; }
}

/* Footer */
.site-footer {
  background: var(--color-text);
  color: #fff;
  padding: 2rem 0;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  text-align: center;
}

.site-footer p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.85rem;
}

.footer-links a:hover {
  color: #fff;
}

/* LinkedIn follow card */
.linkedin-section {
  text-align: center;
}

.linkedin-card {
  max-width: 560px;
  margin: 0 auto;
  background: var(--color-primary-tint);
  border-radius: 16px;
  padding: 2.5rem 1.75rem;
}

.linkedin-card-icon {
  width: 40px;
  height: 40px;
  color: var(--color-primary);
  margin-bottom: 0.75rem;
}

.linkedin-card h2 {
  margin-bottom: 0.5rem;
}

.linkedin-card p {
  max-width: 420px;
  margin: 0 auto 1.5rem;
}

/* Footer Newsletter */
.footer-newsletter-link {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 16px;
  text-align: center;
}
.footer-newsletter-link a {
  color: rgba(255,255,255,0.9);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.footer-newsletter-link a:hover {
  color: #fff;
}

.social-links {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.4rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
}

.social-link svg {
  width: 16px;
  height: 16px;
}

.social-link:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.5);
}

/* Fade-in animation */
.fade-in {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Tablet / Desktop */
@media (min-width: 768px) {
  .container {
    padding: 0 2rem;
  }

  .hamburger {
    display: none;
  }

  .primary-nav {
    position: static;
    flex-direction: row;
    align-items: center;
    gap: 2rem;
    padding: 0;
    background: transparent;
    transform: none;
  }

  .primary-nav a {
    width: auto;
    padding: 0;
    border-bottom: none;
    font-size: 0.95rem;
  }

  .primary-nav a.nav-cta {
    background: var(--color-primary);
    color: #fff;
    padding: 0.6rem 1.25rem;
    border-radius: 8px;
  }

  h1 {
    font-size: 2.75rem;
  }

  h2 {
    font-size: 2.1rem;
  }

  .hero-cta {
    flex-direction: row;
    justify-content: center;
  }

  .about-grid {
    flex-direction: row;
    align-items: center;
    gap: 3rem;
  }

  .about-image,
  .about-text {
    flex: 1;
  }

  .card-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .audience-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .details-grid {
    flex-direction: row;
  }

  .details-col {
    flex: 1;
  }

  .case-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 1024px) {
  .hero h1 {
    font-size: 3rem;
  }
}
