/* --- Index: Hero --- */
.hero {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  padding-top: var(--header-height);
  padding-bottom: 80px;
}

.hero-glow {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 60vw; height: 60vw;
  background: radial-gradient(circle, rgba(160, 196, 255, 0.1), transparent 70%);
  filter: blur(100px);
  z-index: -1;
  pointer-events: none;
}

.hero-content { max-width: 800px; }

.hero-main-text {
  font-family: var(--font-serif-jp);
  font-size: clamp(2rem, 7vw, 4rem);
  line-height: 1.2;
  margin-bottom: 30px;
  background: linear-gradient(to bottom, #fff, #a0a4b8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-sub-text {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 48px;
}

/* --- Project Row (List Style) --- */
.project-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: center;
  padding: 80px 0;
  border-bottom: 1px solid var(--border-color);
}
.project-row:last-child { border-bottom: none; }

/* alternating (PC) */
.project-row.reverse { grid-template-columns: 1fr 1.2fr; }
.project-row.reverse .project-img-wrap { order: 2; }
.project-row.reverse .project-text { order: 1; padding-left: 0; padding-right: 40px; }

.project-img-wrap {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  position: relative;
  border-radius: 10px;
}

.project-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
  filter: grayscale(20%);
}
.project-row:hover .project-img { transform: scale(1.05); filter: grayscale(0%); }

.project-text { padding-left: 20px; }

.project-meta {
  display: block;
  font-family: var(--font-serif-en);
  color: var(--accent-color);
  font-size: 0.9rem;
  margin-bottom: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.project-desc {
  color: var(--text-muted);
  margin-bottom: 32px;
  font-size: 0.95rem;
  line-height: 1.8;
}

/* --- Forms --- */
.form-input-minimal {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border-color);
  padding: 16px 0;
  color: #fff;
  font-size: 1rem;
  font-family: var(--font-serif-jp);
  transition: border-color 0.3s ease;
  border-radius: 0;
}
.form-input-minimal:focus { outline: none; border-color: var(--accent-color); }

.form-label {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 18px;
}

/* =========================================================
   Responsive
   ========================================================= */

/* Tablet and below: stack rows, keep it clean */
@media (max-width: 900px) {
  .project-row,
  .project-row.reverse {
    grid-template-columns: 1fr;
    gap: 26px;
    padding: 56px 0;
  }
  .project-row.reverse .project-img-wrap { order: 0; }
  .project-row.reverse .project-text { order: 0; padding-right: 0; }
  .project-text { padding-left: 0; }

  .project-img-wrap { aspect-ratio: 4/3; }

  /* Mission inline grid (only if you added class="mission-grid") */
  .mission-grid {
    grid-template-columns: 1fr !important;
    gap: 28px !important;
  }
}

/* Mobile: readability + no side-by-side */
@media (max-width: 768px) {
  /* Hero */
  .hero {
    min-height: auto;
    padding-top: calc(var(--header-height) + 36px);
    padding-bottom: 56px;
  }
  .hero-content { max-width: 36rem; }
  .hero-glow { width: 100vw; height: 100vw; filter: blur(70px); }

  .hero-main-text {
    font-size: clamp(2.05rem, 8.8vw, 2.9rem);
    line-height: 1.18;
    margin-bottom: 18px;
  }
  .hero-sub-text {
    font-size: 1.05rem;
    line-height: 1.85;
    margin-bottom: 28px;
    max-width: 30rem;
  }

  .hero-content .en-title { margin-bottom: 0.75rem; }
  .hero-content .btn { width: 100%; max-width: 420px; }

  /* Projects: vertical, tighter, readable */
  .project-row,
  .project-row.reverse {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 42px 0;
  }

  .project-img-wrap {
    aspect-ratio: 4/3;
    border-radius: 12px;
  }

  .project-meta {
    font-size: 0.78rem;
    letter-spacing: 0.09em;
    margin-bottom: 8px;
  }

  .jp-subtitle {
    font-size: 1.35rem;
    margin-bottom: 10px;
  }

  .project-desc {
    font-size: 1.02rem;
    line-height: 1.9;
    margin-bottom: 16px;
  }

  /* Join box (inline style override) */
  .section.container > .fade-up[style*="max-width: 600px"] {
    padding: 56px 18px !important;
  }

  /* Form spacing */
  .form-label { margin-top: 14px; }
  .form-input-minimal { padding: 14px 0; font-size: 1.05rem; }
}

/* Small phones */
@media (max-width: 420px) {
  .hero { padding-top: calc(var(--header-height) + 28px); padding-bottom: 48px; }

  .hero-main-text { font-size: clamp(1.95rem, 9.5vw, 2.55rem); }
  .hero-sub-text { font-size: 1.02rem; }

  .project-row, .project-row.reverse { padding: 38px 0; }
  .project-img-wrap { aspect-ratio: 3/2; }

  .hero-content .btn { max-width: 100%; }
}
/* index helpers */
.mission-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:60px;
  align-items:center;
}
.mission-img{ border-radius:10px; }
.mission-title{ font-size:2.2rem; }
.mission-desc{ color:var(--text-muted); margin-bottom:32px; line-height:1.9; }

.section-head{ margin-bottom:60px; text-align:center; }
.section-cta{ text-align:center; margin-top:60px; }

.join-section{ text-align:center; }
.join-box{
  max-width:600px;
  margin:0 auto;
  border:1px solid var(--border-color);
  padding:80px 40px;
}
.join-title{ font-size:2rem; margin-bottom:24px; }
.join-desc{ color:var(--text-muted); margin-bottom:40px; }

.site-footer{
  padding:60px 0;
  border-top:1px solid var(--border-color);
  text-align:center;
}
.footer-logo{ margin-bottom:24px; color:var(--text-muted); }
.footer-copy{ font-size:0.75rem; color:var(--text-muted); letter-spacing:0.1em; }
/* ===== About page ===== */
.about-mission{
  display:grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 80px;
  margin-top: 80px;
  align-items: start;
}

.about-mission-desc{
  color: var(--text-muted);
  margin-bottom: 40px;
  line-height: 1.9;
}

.about-mission-img{
  width: 100%;
  border-radius: 12px;
}

/* Organization block */
.about-org-title{
  font-size: 1.8rem;
  text-align: center;
}

.about-org{
  max-width: 700px;
  margin: 40px auto 0;
  border-top: 1px solid var(--border-color);
}

.about-org-row{
  display:flex;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid var(--border-color);
}

.about-org-label{
  color: var(--text-muted);
  white-space: nowrap;
}

.about-org-value{
  text-align: right;
}

.about-org-value-right{
  text-align: right;
}

/* Mobile */
@media (max-width: 900px){
  .about-mission{
    grid-template-columns: 1fr;
    gap: 28px;
    margin-top: 48px;
  }
}

@media (max-width: 768px){
  .about-hero{ padding-top: 140px !important; }

  .about-org-row{
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .about-org-value,
  .about-org-value-right{
    text-align: left;
  }
}
/* ===== Projects page helpers ===== */
.projects-lead{
  color: var(--text-muted);
  max-width: 600px;
  line-height: 1.9;
}

/* Mobile: make lead easier to read */
@media (max-width: 768px){
  .projects-hero{ padding-top: 140px !important; padding-bottom: 40px !important; }

  .projects-lead{
    font-size: 1.02rem;
    max-width: 34rem;
  }

  /* project data stays compact on mobile */
  .project-data{
    grid-template-columns: 92px 1fr;
    gap: 8px 14px;
  }
}

@media (max-width: 420px){
  .projects-lead{ font-size: 1rem; }
  .project-data{ grid-template-columns: 88px 1fr; }
}
/* ===== Join page ===== */
.join-hero{
  text-align: center;
}
.join-lead{
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.9;
}

.join-grid{
  display: grid;
  gap: 40px;
}

.join-card{
  border: 1px solid var(--border-color);
  background: rgba(255,255,255,0.02);
  border-radius: 14px;
  padding: 40px;
}

.join-num{
  color: #fff;
  margin-bottom: 14px;
}

.join-desc{
  color: var(--text-muted);
  margin-bottom: 24px;
  line-height: 1.9;
}

.join-btn{
  width: auto;
}

/* Mobile */
@media (max-width: 768px){
  .join-hero{ padding-top: 140px !important; }

  .join-lead{
    font-size: 1.02rem;
    max-width: 34rem;
  }

  .join-grid{ gap: 18px; }

  .join-card{
    padding: 20px 16px;
    border-radius: 12px;
  }

  .join-desc{
    font-size: 1.02rem;
    margin-bottom: 18px;
  }

  /* Buttons should be easy to tap */
  .join-btn{
    width: 100%;
    max-width: 420px;
    display: block;
  }
}

@media (max-width: 420px){
  .join-card{ padding: 18px 14px; }
}
/* ===== Contact page ===== */
.contact-hero { padding-bottom: 70px; }

.contact-wrap{
  max-width: 640px;
  margin: 0 auto;
}

.contact-title{
  text-align: center;
}

.contact-form{
  margin-top: 52px;
}

.form-row{
  margin-bottom: 36px;
}

/* Select: make it look premium */
.select-wrap{
  position: relative;
}

.select-minimal{
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 40px; /* room for arrow */
}

/* small custom arrow */
.select-arrow{
  position: absolute;
  right: 6px;
  top: 50%;
  width: 22px;
  height: 22px;
  transform: translateY(-50%);
  pointer-events: none;
  opacity: 0.75;
}
.select-arrow::before{
  content: "";
  display: block;
  width: 8px;
  height: 8px;
  border-right: 1px solid rgba(255,255,255,0.7);
  border-bottom: 1px solid rgba(255,255,255,0.7);
  transform: rotate(45deg);
  position: absolute;
  right: 6px;
  top: 6px;
}

/* textarea spacing */
.textarea-minimal{
  padding-top: 14px;
  resize: vertical;
  min-height: 140px;
}

.contact-actions{
  text-align: center;
  margin-top: 46px;
}

.contact-btn{
  width: 100%;
}

/* Mobile */
@media (max-width: 768px){
  .contact-hero{ padding-top: 140px !important; }

  .contact-form{ margin-top: 40px; }
  .form-row{ margin-bottom: 26px; }

  .textarea-minimal{ min-height: 160px; }
}
