/* ヘッダー非表示用 */
.header.hide {
    display: none !important;
}
/* リセットとベース設定 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    line-height: 1.6;
    color: #333;
    background: white;
}

.app {
    width: 100%;
    margin: 0 auto;
    min-height: 100vh;
    position: relative;
    background: white;
    opacity: 0;
    transition: opacity 0.7s;
}

.app.visible {
    opacity: 1;
}

/* 共通コンテナ */
.container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 15px;
}

/* ヘッダー */
.header {
    background: white;
    height: 75px;
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    z-index: 10;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    padding: 0 16px;
}

.header-logo {
    height: 30px;
    width: 102px;
    object-fit: cover;
}

.header-btn {
    background: #eb5005;
    color: white;
    padding: 12px 40px;
    border: none;
    border-radius: 4px;
    font-weight: 700;
    font-size: 14px;
    opacity: 0.8;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: opacity 0.3s ease;
}

.header-btn:hover {
    opacity: 1;
}

/* メインコンテンツ */
.main-content {
    /* padding-top: 75px; */
}

/* ヒーローセクション */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 400px;
    overflow: hidden;
}

.hero-bg {
    background-image: url('/img/bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    width: 100%;
    height: 100vh;
    min-height: 400px;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
}


.hero-logo {
    display: block;
    margin: 56px auto 0;
    max-width: 100%;
    width: 82vw;
    height: auto;
    object-fit: contain;
    position: relative;
    z-index: 2;
}

.hero-subtitle-block {
    position: relative;
}
.hero-title {
    width: 100%;
    margin: 24px auto 0;
    color: white;
    font-weight: 700;
    font-size: 20px;
    text-align: center;
    white-space: nowrap;
}

.hero-details {
    width: 100%;
    margin: 12px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.detail-icon {
    width: 20px;
    height: 20px;
}

.detail-text {
    color: white;
    font-weight: 700;
    font-size: 16px;
}

.hero-astronaut {
    position: absolute;
    top: 523px;
    left: 0;
    width: 50%;
    max-width: 50%;
    object-fit: cover;
}

.hero-cta-btn {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 88px;
    margin: 0 auto;
    background: white;
    border: none;
    border-radius: 4px;
    padding: 24px 15px;
    width: calc(100% - 30px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    text-decoration: none;
    transition: box-shadow 0.3s ease;
}

.hero-cta-btn:hover {
    box-shadow: 2px 6px 14px 0px rgba(0,0,0,0.1);
}

.hero-cta-btn span {
    color: #8125c8;
    font-weight: 700;
    font-size: 18px;
}

.cta-arrow {
    width: 24px;
    height: 24px;
}

/* 共通セクションスタイル */
.section-title {
    color: #005ead;
    font-weight: 700;
    font-size: 30px;
    line-height: 1.3;
    text-align: center;
    margin-bottom: 16px;
}

.section-description {
    font-weight: 400;
    font-size: 16px;
    line-height: 1.4;
    color: #333;
    text-align: center;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

/* プログラムセクション */
.program-section {
    background: #f9f8f7;
    padding: 72px 0 120px;
}

.program-cards {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.program-card {
    background: white;
    border-radius: 16px;
    box-shadow: 2px 6px 14px 0px rgba(0,0,0,0.1);
    width: 100%;
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.program-icon {
    background: #e6eafe;
    border-radius: 50%;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.program-icon svg {
    width: 42px;
    height: 42px;
}

.program-card-title {
    font-weight: 700;
    font-size: 16px;
    text-align: center;
    color: #000;
}

.program-card-description {
    font-weight: 400;
    font-size: 16px;
    line-height: 1.4;
    text-align: center;
    color: #000;
}

/* 実績セクション */
.achievements-section {
    background: #e9f0f5;
    padding: 72px 0 120px;
}

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

.gallery-image {
    width: 100%;
    height: 170px;
    object-fit: cover;
    border-radius: 16px;
}

.reports-section {
    margin-top: 40px;
}

.reports-title {
    font-weight: 500;
    font-size: 16px;
    text-align: center;
    margin-bottom: 24px;
    color: #000;
}

.report-cards {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.report-card {
    background: white;
    border-radius: 16px;
    box-shadow: 2px 6px 14px 0px rgba(0,0,0,0.1);
    padding: 16px;
}

.report-content {
    margin-bottom: 24px;
}

.report-logo {
    height: 38px;
    width: 100px;
    object-fit: cover;
    margin-bottom: 8px;
}

.report-image {
    width: 100%;
    height: 174px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 8px;
}

.report-title {
    font-weight: 700;
    font-size: 16px;
    line-height: 1.4;
    color: #000;
}

.report-btn {
    width: 100%;
    border: 1px solid #d9d9d9;
    background: white;
    padding: 8px 0;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.report-btn:hover {
    background: #f9f9f9;
}

.report-btn span {
    font-weight: 500;
    font-size: 14px;
    color: #000;
}

.report-arrow {
    width: 20px;
    height: 20px;
}

.report-movie {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: center;
    margin: 32px auto;
    max-width: 1140px;
    width: 100%;
}

.report-movie video {
    flex: 1 1 320px;
    max-width: 100%;
    min-width: 220px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    height: auto;
    aspect-ratio: 16/9;
    object-fit: cover;
    background: #000;
}

/* スケジュールセクション */
.schedule-section {
    background: #f9f8f7;
    padding: 72px 0 120px;
}

.schedule-cards {
    display: flex;
    flex-direction: column;
    gap: 24px;
}





.schedule-card {
    box-shadow: 2px 6px 14px 0px rgba(0,0,0,0.1);
    border-radius: 16px;
    overflow: hidden;
}

.schedule-header {
    padding: 24px;
    text-align: center;
}

.schedule-header h3 {
    color: white;
    font-weight: 700;
    font-size: 20px;
}

.gradient-1 {
    background: linear-gradient(95.693deg, rgb(243, 102, 86) 2.9638%, rgb(219, 45, 124) 32.695%, rgb(49, 77, 195) 100%);
}

.gradient-2 {
    background: linear-gradient(95.693deg, rgb(142, 60, 156) 2.9638%, rgb(37, 104, 200) 32.695%, rgb(38, 199, 195) 100%);
}

.schedule-content {
    background: white;
    padding: 24px;
    text-align: center;
}

.schedule-date {
    font-weight: 700;
    font-size: 24px;
    margin-bottom: 8px;
    color: #000;
}

.schedule-note {
    font-weight: 400;
    font-size: 16px;
    color: #666;
}

/* 募集情報セクション */
.recruitment-section {
    background: #f9f8f7;
    padding: 72px 0 120px;
}

.recruitment-table {
    background: white;
    border-radius: 16px;
    box-shadow: 2px 6px 14px 0px rgba(0,0,0,0.1);
    overflow: hidden;
    /* max-width: 363px; */
    margin: 0 auto;
}

/* テーブルヘッダー */
.table-header {
    background: linear-gradient(127.392deg, rgb(142, 60, 156) 11.323%, rgb(37, 104, 200) 38.493%, rgb(38, 199, 195) 100%);
}

.table-header .table-cell {
    color: white;
}

.header-tab {
    color: white;
    font-weight: 700;
    font-size: 14px;
}

.header-tab.active {
    color: white;
    width: 15%;
    min-width: 115px;
}

/* テーブル本体 */
.table-body {
    display: flex;
    flex-direction: column;
}

.table-row {
    display: flex;
    border-bottom: 1px solid #f0e8e8;
}

.table-row.alt-row {
    background: #f9f7f7;
}

.table-row.last-row {
    border-bottom: none;
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 16px;
}

.table-cell {
    padding: 24px;
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 500;
    font-size: 14px;
    line-height: 1.6;
    color: #000;
}

.header-cell {
    min-width: 115px;
    width: 15%;
    flex-shrink: 0;
    border-right: 2px solid #f0e8e8;
    background: inherit;
    text-align: left;
}

.content-cell {
    flex: 1;
    width: 219px;
}

.content-cell p {
    margin: 0 0 4px 0;
    line-height: 1.6;
}

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

.content-cell ul {
    margin: 0;
}

.content-cell ul li {
    margin-bottom: 0;
    line-height: 1.6;
}

.list-disc {
    list-style-type: disc;
}

.list-inside {
    list-style-position: inside;
}

/* エントリーフローセクション */
.entry-flow-section {
    background: #e9f0f5;
    padding: 72px 0 120px;
}

.flow-steps {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.flow-card {
    background: white;
    border-radius: 16px;
    box-shadow: 2px 6px 14px 0px rgba(0,0,0,0.1);
    padding: 12px 16px;
    text-align: center;
    width: 100%;
    max-width: 363px;
}

.flow-title {
    font-weight: 700;
    font-size: 20px;
    margin-bottom: 8px;
    color: #181818;
}

.flow-date {
    font-weight: 700;
    font-size: 14px;
    color: #666;
}

.flow-arrow {
    width: 48px;
    height: 48px;
    margin: 0 8px;
    align-self: center;
    display: block;
    flex-shrink: 0;
    z-index: 1;
    stroke: #B3B3B3;
}

/* まとめセクション */
.summary-section {
    background-image: url('/img/bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 72px 0 120px;
}

.summary-content {
    text-align: center;
    color: white;
    margin-bottom: 32px;
}

.summary-title {
    font-weight: 700;
    font-size: 30px;
    line-height: 1.3;
    margin-bottom: 16px;
}

.summary-description {
    font-weight: 400;
    font-size: 16px;
    line-height: 1.4;
}

.summary-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 32px;
}

.info-card {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 24px;
    text-align: center;
    color: white;
}

.info-icon {
    width: 32px;
    height: 32px;
    margin: 0 auto 10px;
}

.info-card h4 {
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 8px;
}

.info-card .highlight {
    font-weight: 700;
    font-size: 16px;
    color: #e8b939;
}

.summary-cta-btn {
    width: 100%;
    background: white;
    border: none;
    border-radius: 4px;
    padding: 24px 36px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    text-decoration: none;
    transition: box-shadow 0.3s ease;
}

.summary-cta-btn:hover {
    box-shadow: 2px 6px 14px 0px rgba(0,0,0,0.1);
}

.summary-cta-btn span {
    color: #8125c8;
    font-weight: 700;
    font-size: 18px;
}

/* フッター */
.footer {
    background: #091f31;
    padding: 32px 0;
}

.footer-contact {
    font-weight: 500;
    font-size: 12px;
    line-height: 1.7;
    color: white;
    text-align: center;
    margin-bottom: 10px;
}

.footer-copyright {
    font-weight: 500;
    font-size: 12px;
    line-height: 1.7;
    color: white;
    text-align: center;
}

/* ローディングオーバーレイ */
#loading-overlay {
    position: fixed;
    z-index: 9999;
    inset: 0;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.7s;
}
#loading-rocket {
    width: 5%;
    height: auto;
    animation: spin 2s linear infinite, floatUpDown 1.2s ease-in-out infinite;
}
#loading-overlay.hide {
    opacity: 0;
    pointer-events: none;
}

@keyframes floatUpDown {
    0% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
    100% { transform: translateY(0); }
}

/* レスポンシブ対応 */
@media (max-width: 767px) {
    .app {
        width: 100%;
    }
    
    .header {
        width: 100%;
    }
    
    .container {
        max-width: 100%;
    }
    
    .hero-cta-btn {
        width: calc(100% - 32px);
    }
    
    .program-card {
        width: 100%;
    }
    .report-movie {
    flex-direction: column;
    gap: 16px;
  }
  .report-movie video {
    max-width: 100%;
    min-width: 0;
  }
}

/* PC（Web）版 レスポンシブ対応 */
@media (min-width: 768px) {
  .container {
    width: 100%;
    max-width: 1140px;
    padding: 0 32px;
  }
  .section-description{
    line-height: 1.6;
  }
  .hero-section {
    height: 100vh;
    min-height: 700px;
  }
  .hero-logo {
    width: 36%;
    margin-top: 80px;
  }
  .hero-title {
    font-size: 32px;
    margin-top: 32px;
  }
  .hero-details {
    gap: 24px;
  }
  .hero-astronaut {
    width: 340px;
    top: 50%;
    left: 0;
  }
  .hero-cta-btn {
    width: 400px;
    margin: 0 auto;
    padding: 24px 40px;
  }
  .program-cards {
    flex-direction: row;
    gap: 32px;
    justify-content: center;
  }
  .program-card {
    width: 250px;
    min-height: 300px;
  }
  .program-card-description {
    line-height: 1.6;
  }
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
  }
  .report-cards {
    flex-direction: row;
    gap: 32px;
    justify-content: center;
  }
  .report-card {
    width: 360px;
  }
  .summary-info {
    flex-direction: row;
    gap: 32px;
    justify-content: center;
  }
  .info-card {
    width: 320px;
  }
  
  .summary-cta-btn {
    width: 400px;
    margin: 0 auto;
  }
}

@media (min-width: 1180px) {

  .flow-title{
    line-height: 1.4;
  }
  .flow-steps {
    flex-direction: row;
    gap: 4px;
    justify-content: center;
    align-items: flex-start;
  }
  .flow-arrow {
    width: 48px;
    height: 48px;
    margin: 0 8px;
    align-self: center;
    display: block;
    flex-shrink: 0;
    z-index: 1;
    stroke: #B3B3B3;
    transform: rotate(270deg);
  }
  .flow-card {
    height: 160px;
    padding: 24px;
  }
}

/* スムーススクロール */
html {
    scroll-behavior: smooth;
}

/* アクセシビリティ */
button:focus, a:focus {
    outline: 2px solid #8125c8;
    outline-offset: 2px;
}

img {
    max-width: 100%;
    height: auto;
}