* { 
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html, body {
  height: 100%;
  width: 100%;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  overflow-y: auto;
  font-family: 'Noto Sans JP', sans-serif;
  background-color: #ffffff;
}
body {
  font-family: 'Noto Sans JP', sans-serif;
  background-color: #ffffff;
  display: block;
  justify-content: center;
  align-items: center;
}
.container {
  width: 100vw;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}
h1 {
  font-size: 2.55vw;
  text-align: center;
  margin-bottom: 20px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 1s ease-out forwards;
}
@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 사진 가운데 고정 + 오른쪽에 문구 */
.hero-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr; /* 좌/가운데(사진)/우 */
  align-items: center;
  column-gap: 24px;
  margin: 10px 0 24px;
}

/* 사진은 가운데 열(2번)에 고정 */
.hero-row .photo {
  grid-column: 2;
  justify-self: center;
  margin: 0; /* 아래 여백 제거 */
}

/* 문구는 오른쪽 열(3번)에 배치 + 더 크게 + 한 박자 늦게 */
.mission-text {
  font-family: 'Noto Serif JP', serif;
  grid-column: 3;
  font-weight: 500;
  line-height: 1.7;
  /* 크기: 모바일~대화면 모두 선명하게 보이도록 */
  font-size: clamp(22px, 3vw, 34px);
  max-width: 40vw;

  /* 아래에서 위로 희미하게 올라오기 */
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 1s ease-out forwards;
  animation-delay: 0.6s; /* 기존 상단 문구보다 한 박자 늦게 */
}

/* 화면이 좁아지면 세로로 쌓이게 (사진 아래에 문구) */
@media (max-width: 992px) {
  .hero-row {
    grid-template-columns: 1fr; /* 한 열 */
    row-gap: 12px;
    text-align: center;
  }
  .mission-text {
    grid-column: 1;
    max-width: 90vw;
    margin: 0 auto;
    text-align: center;
    font-size: clamp(16px, 4.2vw, 22px);
  }
}


.photo {
  width: 180px;
  height: 230px;
  background-image: url('/static/images/shoumei.jpg');  
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  margin-bottom: 30px;
  border: 1px solid #aaa;
  border-radius: 8px;
}
.name {
  font-size: 1.5vw;
  margin-bottom: 30px;
  font-family: 'Noto Serif JP', Georgia, serif;
}
.buttons {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 70%;
  max-width: 900px;
  align-items: center;
}
.button-row-top {
  display: flex;
  gap: 20px;
  width: 100%;
  justify-content: center;
}
.button-row-bottom {
  display: flex;
  gap: 20px;
  width: 80%;
  justify-content: center;
}
.buttons button {
  padding: 1.2vw;
  font-size: 1.2vw;
  border: 1px solid #333;
  border-radius: 10px;
  background-color: white;
  cursor: pointer;
  transition: background-color 0.3s;
  font-family: 'Roboto', 'Noto Sans JP', Arial, sans-serif;
  min-height: 60px;
  flex: 1;
}
.buttons button:hover {
  background-color: #f0f0f0;
}
@media (max-width: 768px) {
  h1 {
    font-size: 5vw;
  }
  .name {
    font-size: 3vw;
  }
  .buttons {
    width: 90%;
  }
  .button-row-top,
  .button-row-bottom {
    flex-direction: column;
    width: 100%;
  }
  .buttons button {
    font-size: 3vw;
    padding: 4vw;
  }
}
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  height: 60px;
  background-color: #f8f8f8;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  z-index: 1000;
}
.logo {
  font-weight: bold;
  font-size: 1.5rem;
  color: #333;
  text-decoration: none;
}
.menu a {
  margin-left: 20px;
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: color 0.3s;
}
.menu a:hover {
  color: #555;
}
.resume-page {
  width: 100%;
  height: auto;
  padding: 60px 20px 40px 20px;
  display: block;
  text-align: center;
  /* overflow-y: visible; */
}
.resume-page .resume-image {
  width: auto;
  max-width: 100%;
  max-height: 150vh;
  height: auto;
  object-fit: contain;
  display: block;
  margin: 0 auto 40px;
  border: 1px solid #ccc;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}
body.home-page {
  display: flex;
  justify-content: center;
  align-items: center;
}
.home-page .container {
  width: 100vw;
  height: 100vh;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}
.team-page {
  max-width: 1000px;
  margin: 0 auto;
}

.project-tabs {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.tab-button {
  padding: 10px 20px;
  font-size: 1rem;
  border: 1px solid #aaa;
  border-radius: 8px;
  background-color: white;
  cursor: pointer;
  transition: all 0.2s;
}

.tab-button.active {
  background-color: #333;
  color: white;
  border-color: #333;
}

.project-content {
  width: 100%;
  padding: 0 20px;
}

.tab-content {
  display: block;
  max-width: 800px;
  margin: 0 auto;
  text-align: left;
  line-height: 1.8;
}

.hidden {
  display: none;
}

.next-wrapper {
  position: fixed;
  top: 50%;
  right: 30px;
  transform: translateY(-50%);
  text-align: center;
  z-index: 1000;
}

.next-button {
  display: inline-block;
  width: 48px;
  height: 48px;
  font-size: 1.5rem;
  border-radius: 50%;
  border: 1px solid #888;
  color: #333;
  background-color: transparent;
  text-decoration: none;
  line-height: 46px;
  transition: all 0.2s;
}

.next-button:hover {
  background-color: #f0f0f0;
  border-color: #555;
  color: #000;
}

.next-label {
  font-size: 0.8rem;
  color: #555;
  margin-top: 6px;
  white-space: nowrap;
}

.menu a.nav-space {
  margin-left: 40px;
}

.menu a.blue-link,
.menu a.blue-link:hover {
  color: #337ab7;
}

.video-description {
  text-align: center;
  font-size: 1rem;
  color: #333;
  margin-top: 0px;
  margin-bottom: 14px;
}

.video-wrapper {
  width: 100%;
  text-align: center;
  margin-bottom: 6px;
  margin-top: 0;
}

.video-wrapper iframe {
  display: block;
  margin: 0 auto;
  width: 50%;
  max-width: 960px;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.tab-content h2 {
  margin-top: 24px;
  font-size: 1.2rem;
  color: #222;
  border-left: 4px solid #4a90e2;
  padding-left: 8px;
}

.tab-content h3 {
  font-size: 1.1rem;  
  margin-top: 12px;  
  margin-bottom: 4px;  
  color: #333; 
}

.tab-content p {
  margin-top: 8px;
  line-height: 1.6;
  color: #444;
}

.tab-content ul {
  margin-top: 8px;
  padding-left: 20px;
}

.tab-content li {
  margin-bottom: 6px;
  line-height: 1.5;
}

.below-video-message {
  text-align: center;
  font-size: 0.95rem;
  color: #222;
  margin-bottom: 12px;
}

home-page h1 {
  margin-bottom: 16px; 
}

.subheading {
  font-size: 1.5vw;
  color: #555;
  margin-top: 4px;   
  margin-bottom: 20px; 
  opacity: 0;
  transform: translateY(12px);
  animation: fadeUp 0.8s ease-out forwards; 
}

/* 모바일 대응 */
@media (max-width: 768px) {
  .subheading {
    font-size: 4vw;
    margin-bottom: 16px;
  }
}

.tab-content .light-text,
.tab-content .light-text li {
  color: #444;
}

.intro-tab-section .tab-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
}

.paiza-rank {
  text-align: center;
  margin-top: 20px;
}

.paiza-rank img {
  max-width: 300px; 
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.feature-image {
  max-width: 100%;
  height: auto;
  border: 1px solid #ccc;
  border-radius: 8px;
  margin-top: 12px;
  margin-bottom: 0px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.feature-image2 {
  max-width: 50%;
  height: auto;
  border: 1px solid #ccc;
  border-radius: 8px;
  margin-top: 12px;
  margin-bottom: 0px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.feature-image3 {
  max-width: 75%;
  height: auto;
  border: 1px solid #ccc;
  border-radius: 8px;
  margin-top: 12px;
  margin-bottom: 0px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.image-caption {
  text-align: center;
  font-size: 0.9rem;
  color: #555;
  margin-top: 6px;
  margin-bottom: 24px;
}

.board-image {
  max-height: 500px;
  object-fit: contain;
  display: block;        
  margin: 0 auto;         
  border: 1px solid #ccc;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  margin-top: 12px;
  margin-bottom: 24px;
}

.flowchart-note {
  text-align: center;
  font-size: 0.9rem;
  color: #555;
  margin-top: 24px;
  line-height: 1.6;
}

.flowchart-note a {
  color: #4a90e2;
  text-decoration: underline;
}

.site-button {
  border: 2px solid #2196f3;       /* 파란 테두리 */
  background-color: #e3f2fd;       /* 연한 파란 배경 */
  color: #0d47a1;                  /* 진한 파란 텍스트 */
  padding: 12px 28px;
  font-size: 16px;
  font-weight: bold;
  border-radius: 8px;
  text-decoration: none;
  display: inline-block;
  font-family: "Noto Sans JP", sans-serif;
  transition: all 0.3s ease;
  box-shadow: 0 0 8px rgba(33, 150, 243, 0.2);  /* 살짝 그림자 */
}

.site-button:hover {
  background-color: #bbdefb;
  box-shadow: 0 0 12px rgba(33, 150, 243, 0.5); /* 호버 시 강조 */
}

.result-link {
  text-align: center;
  margin-top: 30px;
}

.button-icon {
  margin-right: 8px;
  animation: shake 1.5s infinite;
  display: inline-block;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-3px); }
  40%, 80% { transform: translateX(3px); }
}

.image-slider {
  max-width: 100%;
  height: auto;
  overflow: hidden;
  border: 1px solid #ccc;
  border-radius: 8px;
  margin-top: 12px;
  margin-bottom: 24px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}


.slides {
  display: flex;
  transition: transform 0.4s ease;
  width: 100%;
}

.slides img {
  width: 100%;
  height: auto;
  max-height: 500px; 
  object-fit: contain;
  border-radius: 8px;
}


.slider-controls {
  text-align: center;
  margin-top: 10px;
}

.slider-controls button {
  background-color: transparent;
  color: #4a90e2;
  border: 2px solid #4a90e2;
  border-radius: 6px;
  padding: 6px 12px;
  margin: 0 6px;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.2s;
}

.slider-controls button:hover {
  background-color: #4a90e2;
  color: #fff;
}

.slide {
  min-width: 100%;
  box-sizing: border-box;
}

.image-caption {
  font-size: 0.9rem;
  color: #555;
  margin-top: 8px;
}

.slider-index {
  text-align: center;
  margin-top: 10px;
  font-size: 0.95rem;
  color: #666;
}

.menu a.active {
  border-bottom: 3px solid #4a90e2;                      
}

.menu a.blue-link {
  color: #337ab7;  
}

.menu a.blue-link.active {
  border-bottom: 3px solid #4a90e2; 
}

.video-wrapper.with-button {
  position: relative;
  display: inline-block;
}

.floating-video-button {
  position: absolute;
  top: 50%;
  right: 160px;  /* 안쪽으로 들어오게 */
  transform: translateY(-50%);
  white-space: nowrap;

  border: 2px solid #2196f3;
  background-color: #e3f2fd;
  color: #0d47a1;
  padding: 10px 20px;
  font-size: 15px;
  font-weight: bold;
  border-radius: 8px;
  text-decoration: none;
  font-family: "Noto Sans JP", sans-serif;
  transition: all 0.3s ease;
  box-shadow: 0 0 8px rgba(33, 150, 243, 0.2);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.floating-video-button:hover {
  background-color: #bbdefb;
  box-shadow: 0 0 12px rgba(33, 150, 243, 0.5);
}

.floating-video-button .arrow-icon {
  transition: transform 0.3s ease;
}

.floating-video-button:hover .arrow-icon {
  transform: translateX(5px);
}

/* 모바일에서는 아래쪽 정렬 */
@media (max-width: 768px) {
  .floating-video-button {
    position: static;
    margin-top: 12px;
    transform: none;
  }

  .video-wrapper.with-button {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
}

.db-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
  margin-bottom: 8px;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 15px;
}

.db-table th, .db-table td {
  border: 1px solid #ccc;
  padding: 10px 12px;
  text-align: left;
}

.db-table thead {
  background-color: #e3f2fd;
  color: #0d47a1;
  font-weight: bold;
}

.db-table tbody tr:nth-child(even) {
  background-color: #f9f9f9;
}

.table-caption {
  text-align: center;
  font-size: 0.9rem;
  color: #555;
  margin-top: 0px;     
  margin-bottom: 24px;
}

.github-link{
  display:inline-block;
  padding:10px 16px;
  border:1px solid #222;
  border-radius:10px;
  text-decoration:none;
  font-weight:600;
  transition:transform .15s ease, box-shadow .15s ease;
}
.github-link:hover{
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0,0,0,.08);
}

#backToTopBtn {
  display: none;              /* 기본은 숨김 */
  position: fixed;
  bottom: 40px;               /* 화면 아래에서 40px */
  right: 40px;                /* 화면 오른쪽에서 40px */
  z-index: 99;
  font-size: 18px;
  border: none;
  outline: none;
  background-color: #4a90e2;  /* 사이트 색감에 맞게 */
  color: white;
  cursor: pointer;
  padding: 12px 16px;
  border-radius: 50%;         /* 동그랗게 */
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  transition: all 0.3s;
}

#backToTopBtn:hover {
  background-color: #357ABD;
}

.highlight {
  color: #007acc;   /* 원하는 색상 (빨강 계열 예시) */
  font-weight: 700; /* 강조 효과 */
}

/* log 페이지 전용: 전체 폭 넓히기 */
.log-container {
  max-width: 1200px;   /* 필요하면 1200px까지 올려도 OK */
  margin: 0 auto;
}

/* 버튼 사이 간격 + 줄바꿈 정돈 */
.tab-section .tab-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;           /* ← 버튼 사이 여백 */
  justify-content: center;
  margin-bottom: 18px; /* 버튼과 콘텐츠 사이 간격 */
}

/* 콘텐츠가 너무 가운데로 몰리지 않게 내부 여백 확보 */
.tab-section .tab-content {
  padding: 0 40px;     /* 좌우 여백 */
  text-align: left;
  max-width: 800px;    
}

.tts-player { margin-top: 12px; }
.play-btn {
  background: transparent;
  border: 2px solid #4a90e2;
  border-radius: 8px;
  padding: 8px 14px;
  cursor: pointer;
  transition: all .2s;
}
.play-btn:hover { transform: translateY(-1px); }


.download-wrap {
  margin: 8px 0 24px; 
  text-align: center; 
}
