@charset "UTF-8";

:root {
  --bg-color: #ffffff;
  --text-color: #000000;
  --primary-color: #35a4ff;
  --secondary-color: #ffffff;
  --border-color: #35a4ff;
}

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

body {
  font-family: 'Helvetica Neue', 'Arial', 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', 'Meiryo', sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--bg-color);
  overflow-x: hidden;
  overflow-wrap: break-word;
}

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

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

h1, h2, h3 {
  margin-bottom: 1.5rem;
  text-align: center;
}

h1 {
  margin-bottom: 50px;
}

#content-start { scroll-margin-top: 100px; }
#details-days, #details-members, #details-content, #details-locations { scroll-margin-top: 95px; }
#content-start-news { scroll-margin-top: 90px; }

main {
  margin-bottom: 0px;
}
.home-page main {
  margin-bottom: 0;
}

#wrapper {
  opacity: 0;
  transition: opacity 0.4s ease-out;
}
#wrapper.visible {
  opacity: 1;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1001;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 0.3rem 1.0rem;
  background-color: var(--secondary-color);
  border-bottom: 1px solid var(--border-color);
}

.logo {
  height: 80px;
  width: auto;
}

.header-icons {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.header-map-link {
  font-size: 1.6rem;
  color: #333;
  text-decoration: none;
  transition: color 0.3s, transform 0.3s;
  display: flex;
  align-items: center;
}

.header-map-link:hover {
  color: var(--primary-color);
  transform: translateY(-2px);
}

.menu-toggle {
  font-size: 1.8rem;
  color: var(--text-color);
  background: none;
  border: none;
  cursor: pointer;
}

.slide-menu {
  position: fixed;
  top: 0;
  right: -500px;
  z-index: 2000;
  width: 400px;
  height: 100%;
  padding: 2rem;
  background-color: var(--secondary-color);
  box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
  transition: right 0.4s ease-in-out;
}

.slide-menu.active {
  right: 0;
}

.close-menu {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-size: 2.5rem;
  color: var(--text-color);
  background: none;
  border: none;
  cursor: pointer;
}

.menu-slide {
  padding-top: 60px;
  list-style: none;
}

.slide-menu ul li a {
  display: block;
  padding: 1rem 0;
  font-size: 1rem;
  border-bottom: 1px solid var(--primary-color);
  transition: background-color 0.3s;
}

.slide-menu ul li a:hover {
  background-color: var(--primary-color);
}

.submenu {
  max-height: 0;
  overflow: hidden;
  list-style: none;
  background-color: rgba(0, 0, 0, 0.05);
  transition: max-height 0.75s ease-out;
}

.has-submenu > a {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.has-submenu > a::after {
  content: '＋';
  font-size: 0.8em;
  transition: transform 0.3s;
}

.has-submenu.active > a::after {
  content: '－';
  transform: rotate(180deg);
}

.has-submenu.active .submenu {
  max-height: 300px;
}

.menu-footer {
  position: absolute;
  bottom: 20px;
  left: 0;
  width: 100%;
  padding: 0 2rem;
  text-align: center;
}

.social-icons-menu {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1rem;
}

.social-icons-menu a i {
  font-size: 1.8rem;
  color: var(--text-color);
  transition: color 0.3s;
}

.social-icons-menu a:hover i {
  color: var(--primary-color);
}

.site-footer-main {
  background-color: #ffffff;
  color: #000000;
  padding: 3rem;
  border-top: 1px solid #70d2ff;
  text-align: center;
  justify-content: center;
}

.footer-grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto 3rem auto;
  text-align: left;
}

.footer-column .en-title {
  display: block;
  font-size: 1.2rem;
  font-weight: bold;
  color: #000000;
  margin-bottom: 1.5rem;
  font-family: sans-serif;
}

.footer-sub-links {
  list-style: none;
}

.footer-sub-links li {
  margin-bottom: 1rem;
}

.footer-sub-links a {
  color: #555;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s;
}

.footer-sub-links a:hover {
  color: var(--primary-color);
}

.site-footer-main .social-icons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.site-footer-main .social-icons a i {
  color: #000000;
  font-size: 2rem;
  transition: color 0.3s;
}

.site-footer-main .social-icons a:hover i {
  color: var(--primary-color);
}

.site-footer-main .copyright {
  color: #888;
  font-size: 0.9rem;
}

.btn {
  display: inline-block;
  padding: 0.8rem 2.5rem;
  font-weight: bold;
  color: var(--secondary-color);
  background-color: var(--primary-color);
  text-decoration: none;
  border-radius: 50px;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.btn:hover {
  background-color: #f0950c;
  transform: translateY(-2px);
}

.more-button {
  display: block;
  width: 200px;
  margin: 1.5rem auto 0;
  padding: 0.8rem 1rem;
  color: var(--secondary-color);
  background-color: var(--primary-color);
  font-weight: bold;
  text-align: center;
  border-radius: 25px;
  transition: background-color 0.2s ease-in-out;
}

.more-button:hover {
  background-color: #555;
}

.more-button-1 {
  display: block;
  width: 240px;
  margin: 1.5rem auto 30px;
  padding: 12px 24px;
  color: white;
  background-color: var(--primary-color);
  font-weight: bold;
  text-align: center;
  border-radius: 50px;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.more-button-1:hover {
  background-color: #f0950c;
  transform: translateY(-2px);
}

.more-button-1 a.btn {
  padding: 0;
  color: inherit;
  background-color: transparent;
  text-decoration: none;
}
.more-button-1 a.btn:hover {
  background-color: transparent;
  transform: none;
}

.back-link-container {
  text-align: center;
  margin: 80px 0 40px;
}

.btn-back-list {
  display: inline-block;
  padding: 1rem 3rem;
  background-color: #6c757d;
  color: #ffffff;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  letter-spacing: 1px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

.btn-back-list:hover {
  background-color: #5a6268;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.btn-back-list i {
  margin-right: 10px;
}

.more-detail-link {
  position: absolute;
  bottom: 15px;
  right: 15px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  background-color: var(--primary-color);
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: bold;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 30px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(4px);
  z-index: 10;
  transition: all 0.3s ease;
}

.more-detail-link:hover {
  background-color: #ffffff;
  color: var(--primary-color);
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

.more-detail-link::after {
  content: '\f061';
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  transition: transform 0.3s ease;
}

.more-detail-link:hover::after {
  transform: translateX(4px);
}

.news-card {
  overflow: hidden;
  background-color: var(--secondary-color);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  border-color: var(--primary-color);
}

.news-card.hidden {
  display: none;
}

.card-image img {
  width: 100%;
  height: 350px;
  object-fit: cover;
  margin-bottom: -40px;
}

.card-content {
  padding: 20px 25px 25px;
}

.card-date {
  display: block;
  margin-bottom: 10px;
  font-size: 0.85rem;
  color: #888;
}

.card-title {
  margin-top: 0px;
  font-size: 1.0rem;
  font-weight: bold;
  line-height: 1.4;
}

.card-excerpt {
  margin: 0;
  font-size: 0.9rem;
  color: #555;
}

.card-category {
  display: inline-block;
  padding: 4px 12px;
  margin-bottom: 12px;
  font-size: 0.8rem;
  font-weight: bold;
  color: #ffffff;
  border-radius: 4px;
}
.category-news { background-color: #28a745; }
.category-event { background-color: #007bff; }
.category-blog { background-color: #fd7e14; }

.lightbox, #modern-lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 2000;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  animation: fadeIn 0.4s ease;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.lightbox.active, #modern-lightbox.active {
  display: flex;
  opacity: 1;
  visibility: visible;
}

.lightbox-content, .lightbox-content-modern {
  max-width: 90%;
  max-height: 85%;
  animation: zoomIn 0.4s ease;
  object-fit: contain;
}

.close-btn, .lightbox-close-btn {
  position: absolute;
  top: 20px;
  right: 35px;
  font-size: 40px;
  font-weight: bold;
  color: #fff;
  cursor: pointer;
  transition: color 0.3s ease;
}

.close-btn:hover, .lightbox-close-btn:hover {
  color: #bbb;
}

.lightbox-caption {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  text-align: center;
  padding: 10px 20px;
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 8px;
}
.lightbox-caption h3 { margin: 0 0 5px; text-align: center; }
.lightbox-caption p { margin: 0; font-size: 0.9em; }

#splash-screen {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  background-color: var(--secondary-color);
  overflow: hidden;
}

.splash-panel {
  position: absolute;
  top: 0;
  width: 50.5%;
  height: 150%;
  background-color: var(--secondary-color);
  transition: transform 1s cubic-bezier(0.7, 0, 0.3, 1);
}
#splash-left-panel { left: 0; }
#splash-right-panel { right: 0; }

.splash-logo {
  z-index: 10;
  width: 200px;
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.8s ease-out 0.5s, transform 0.8s ease-out 0.5s;
}

#splash-screen.start-animation .splash-left-panel { transform: translateX(-100%); }
#splash-screen.start-animation .splash-right-panel { transform: translateX(100%); }
#splash-screen.start-animation .splash-logo { opacity: 1; transform: scale(1); }

#splash-screen.hidden {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s, visibility 0.5s;
}

.faq-container { max-width: 800px; margin: 0 auto; }
.faq-item {
  background-color: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  transition: margin-bottom 0.3s ease;
}
.faq-item[open] { margin-bottom: 20px; }
.faq-item summary {
  display: block;
  padding: 1rem 1.5rem;
  font-weight: bold;
  font-size: 1.1rem;
  color: #333;
  cursor: pointer;
  position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { background-color: #f8f8f8; }
.faq-item summary::after {
  content: '＋';
  position: absolute;
  right: 1.5rem;
  top: 50%;
  font-size: 1.5rem;
  color: var(--primary-color);
  transform: translateY(-50%);
  transition: transform 0.2s ease-out;
}
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-answer {
  padding: 0.5rem 1.5rem 1.5rem 1.5rem;
  color: #555;
  line-height: 1.8;
  border-top: 1px solid #e0e0e0;
}

@keyframes fadeInChar {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0) rotate(45deg); }
  40%, 60% { transform: translateY(-10px) rotate(45deg); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes zoomIn {
  from { transform: scale(0.8); }
  to { transform: scale(1); }
}

@keyframes fadeInLogo {
  0% { opacity: 0; transform: translateY(-20px); }
  100% { opacity: 1; transform: translateY(0); }
}

body.home-page {
  background-color: #ffffff;
  background-image:
      linear-gradient(#e5e5e5 1px, transparent 1px),
      linear-gradient(90deg, #e5e5e5 1px, transparent 1px) !important;
  background-size: 20px 20px;
  background-repeat: repeat !important;
  background-attachment: fixed;
  background-position: center top;
}

.hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  width: 100%;
  height: 100vh;
  padding-left: 8%;
  overflow: hidden;
}

.hero-image {
  position: absolute;
  top: 0;
  left: 0;
  z-index: -1;
  width: 100%;
  height: 90%;
  object-fit: cover;
}

.hero-title {
  font-size: 5rem;
  font-weight: bold;
  color: var(--secondary-color);
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}

.hero-subtitle {
  margin-top: -70px;
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--secondary-color);
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
  text-align: left;
}

.hero-section-secondary {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 90vh;
  padding: 2rem;
  color: white;
  text-align: center;
  background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('images/TUS-ACM-shinkan.JPG');
  background-size: cover;
  background-position: center;
}

.hero-content {
  max-width: 800px;
}

.hero-content h2 {
  font-size: 2.3rem;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
}

.hero-content p {
  margin: 1rem 0 2rem 0;
  font-size: 1.2rem;
  line-height: 1.8;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
}

.slideshow-container {
  position: relative;
  width: 100%;
  height: 94vh;
  overflow: hidden;
}

.slides .slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.slides .slide.active { opacity: 1; }
.slides .slide img { width: 100%; height: 100%; object-fit: cover; }

.slideshow-title-wrapper {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 20;
  width: 100%;
  color: white;
  text-align: center;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.6);
  transform: translate(-50%, -50%);
}

.slideshow-title {
  display: block;
  margin: 0 auto;
  font-size: 3.6rem;
  font-weight: bold;
}
.slideshow-title span {
  display: inline-block;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInChar 1.5s ease-out forwards;
}

.slideshow-subtitle {
  margin-top: 0;
  font-size: 1.5rem;
}

.mobile-only { display: none; }

.dots-container {
  position: absolute;
  bottom: 60px;
  left: 50%;
  z-index: 100;
  padding: 0.55rem 1rem;
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 20px;
  text-align: center;
  transform: translateX(-50%);
  line-height: 0;
}

.dots-container .dot {
  display: inline-block;
  margin: 0 5px;
  padding: 0;
  outline: none;
  background-color: #bbb;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.3s ease;
  
  position: static;
  border: none;
  width: 12px;
  height: 12px;
  box-sizing: content-box;
}

.dots-container .dot.active {
  background-color: #717171;
}

.scroll-down-arrow {
  position: absolute;
  bottom: 150px;
  left: 50%;
  display: block;
  width: 25px;
  height: 25px;
  border-bottom: 2px solid var(--secondary-color);
  border-right: 2px solid var(--secondary-color);
  box-shadow: 4px 4px 7px rgba(0, 0, 0, 0.4);
  cursor: pointer;
  transform: rotate(45deg);
  animation: bounce 2.5s infinite;
}

.news-background-wrapper {
  background-color: transparent !important;
  padding: 60px 20px;
  padding-top: 0;
}

.news-section {
  max-width: 800px;
  margin: 0px auto 0;
  padding: 1.5rem;
  background-color: var(--secondary-color);
  border: 2px solid var(--border-color);
  border-radius: 8px;
}

.news-section-title {
  margin-bottom: 20px;
  font-size: 5.0rem;
  font-weight: bold;
  color: #666666;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}

.news-section h2 {
  padding-bottom: 0.5rem;
  margin-bottom: 1.0rem;
  border-bottom: 2px solid var(--primary-color);
}

.news-list-container {
  max-height: 400px;
  padding: 0 0.5rem;
  border: 1px solid var(--primary-color);
  border-radius: 4px;
  overflow-y: auto;
}

.news-list { list-style: none; }

.news-list li a {
  display: flex;
  align-items: center;
  padding: 1.2rem 0.5rem;
  border-bottom: 1px solid var(--primary-color);
  transition: background-color 0.2s ease-in-out;
  gap: 20px;
}

.home-page .news-list li a:hover {
  background-color: rgba(53, 164, 255, 0.2) !important;
}

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

.news-thumb-wrapper {
  flex-shrink: 0;
  width: 160px;
  height: 100px;
  overflow: hidden;
  border-radius: 6px;
  border: 1px solid #eee;
}

.news-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.news-text-wrapper {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.news-date {
  font-size: 0.9rem;
  color: #888;
  margin-bottom: 8px;
  display: inline-block;
}

.news-title {
  font-size: 1.1rem;
  font-weight: bold;
  line-height: 1.4;
}

.news-list-tag {
  display: inline-block;
  font-size: 0.7rem;
  padding: 2px 8px;
  margin-bottom: 6px;
  border-radius: 3px;
  width: fit-content;
  line-height: 1.2;
}

.youtube-section {
  padding: 60px 30px;
  padding-bottom: 20px;
  background-color: transparent !important;
  text-align: center;
}

.youtube-title {
  display: inline-block;
  padding-bottom: 0.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid var(--primary-color);
  color: #333;
  font-size: 2.5rem;
}

.youtube-iframe-container {
  position: relative;
  width: 100%;
  max-width: 1200px;
  padding-bottom: 50.56%;
  height: 0;
  overflow: hidden;
  margin: 0 auto;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.youtube-iframe-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.expanding-menu-container {
  display: flex;
  width: 100%;
  height: 60vh;
  min-height: 400px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  scroll-margin-top: 95px;
}

.menu-panel {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: white;
  text-decoration: none;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
  background-size: cover;
  background-position: center;
  transition: flex 0.6s ease-in-out;
}

.menu-panel:hover { flex: 5; }

.menu-panel h3 {
  margin: 0;
  font-size: 2rem;
}

.sub-text {
  font-size: 1rem;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.menu-panel:hover .sub-text {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.2s;
}

.panel-1 { background-image: url("images/TUS-ACM-Aircraft-takeoff-1.JPG"); }
.panel-2 { background-image: url("images/TUS-ACM-human-plane\ .JPG"); }
.panel-3 { background-image: url("images/TUS-ACM-wing.JPG"); }
.panel-4 { background-image: url("images/TUS-ACM-Aircraft-3Dmodel.JPG"); }
.panel-5 { background-image: url("images/TUS-ACM-2024-T.JPG"); }

body.team-page {
  background-image: linear-gradient(to bottom, #8ec5fc 0%, #2b5876 100%) !important;
  background-attachment: fixed;
  background-repeat: no-repeat;
  background-color: #2b5876;
}

.page-section-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

.intro-with-background {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 60px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.intro-background-image {
  width: 100%;
  height: 400px;
  object-fit: cover;
  display: block;
}

.intro-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: rgba(0, 0, 0, 0.5);
  padding: 20px;
  text-align: center;
}

.intro-overlay h2 {
  font-size: 3rem;
  color: #ffffff;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
  margin: 0 0 15px 0;
  border-bottom: none;
}

.intro-overlay p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: #f0f0f0;
  max-width: 700px;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.7);
}

.team-structure-section {
  text-align: center;
  margin: 40px 0;
  padding: 0 20px;
}

.team-structure-section .section-title {
  font-size: 2.8rem;
  color: #ffffff;
  margin-bottom: 20px;
  display: inline-block;
  padding-bottom: 0px;
  border-bottom: 5px solid var(--primary-color);
}

.team-introduction-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 40px;
  max-width: 1100px;
  margin: 0 auto 25px;
  padding: 0 10px;
}

.team-card {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-align: left;
}

.team-image {
  width: 100%;
  height: 350px !important;
  max-height: none !important;
  object-fit: cover;
}

.team-card-content {
  padding: 25px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.team-card h3 {
  font-size: 1.4rem;
  color: #333;
  text-align: left;
  border-bottom: 2px solid var(--primary-color);
  padding-bottom: 8px;
  margin-bottom: 15px;
}

.team-card p {
  font-size: 0.9rem;
  line-height: 1.7;
  color: #555;
  margin: 0;
  flex-grow: 1;
}

.activity-info-section {
  background: url('images/aircraft_parts.jpg') center/cover no-repeat;
  padding: 0;
  color: #fff;
  text-align: center;
  margin-bottom: 100px;
}

.activity-info-container {
  max-width: 1000px;
  margin: -70px auto;
  padding: 30px;
  border-radius: 10px;
  color: #fff;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.25);
  background: linear-gradient(rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.65)), url('images/aircraft.jpg') center/cover no-repeat;
}

.activity-info-container h2 {
  margin-bottom: 30px;
  color: #fff;
  font-size: 35px;
}

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

.info-card {
  background-color: rgba(255, 255, 255, 0.8);
  color: #333;
  padding: 20px;
  border-radius: 8px;
  text-align: center;
  transition: transform 0.3s ease;
  cursor: pointer;
}
.info-card:hover { transform: translateY(-5px); }
.info-icon { font-size: 2em; margin-bottom: 10px; color: var(--primary-color); }
.info-card h3 { margin-top: 0; margin-bottom: 10px; color: #555; }
.info-card p { font-size: 0.9em; line-height: 1.6; }

.location-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  max-width: 1100px;
  margin: 40px auto;
  padding: 0 20px;
}
.map-container {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 56.25%;
  margin: 2rem auto;
  border: 1px solid var(--border-color);
}
.map-container iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }

.details-section {
  padding: 0px 20px;
  max-width: 1100px;
  margin: 30px auto;
  scroll-margin-top: 75px;
}
.details-section:first-of-type { border-top: none; }
.details-section h2 {
  font-size: 2rem;
  text-align: left;
  color: #333;
  padding-bottom: 15px;
  border-bottom: 2px solid var(--primary-color);
  margin-bottom: 25px;
}
.details-section h3 {
  font-size: 1.4rem;
  font-weight: bold;
  color: #333;
  margin-top: 50px;
  margin-bottom: 20px;
  padding: 0.6rem 1.0rem;
  border-left: 6px solid var(--primary-color);
  background-color: #f0f8ff;
  border-radius: 0 4px 4px 0;
  border-bottom: none;
}
.details-section p { line-height: 1.8; color: #555; }

.member-table {
  width: 100%;
  max-width: 600px;
  margin: 20px auto;
  border-collapse: collapse;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  border-radius: 8px;
  overflow: hidden;
}
.member-table th, .member-table td {
  padding: 12px 15px;
  text-align: center;
  border-bottom: 1px solid #ddd;
}
.member-table th { background-color: var(--primary-color); color: white; font-weight: bold; }
.member-table td { color: #333; }
.member-table tbody tr:nth-child(even) { background-color: #f8f8f8; }
.member-table tbody tr:hover { background-color: #f1f1f1; }
.member-table tfoot { font-weight: bold; color: #333; background-color: #e9e9e9; }

.schedule-container { margin-top: 30px; padding-left: 20px; border-left: 3px solid var(--primary-color); }
.schedule-item { display: flex; align-items: baseline; margin-bottom: 20px; }
.schedule-month { flex-shrink: 0; width: 100px; font-weight: bold; font-size: 1.1rem; color: #333; }
.schedule-description { color: #555; }
.schedule-description strong { color: var(--primary-color); }

body.aircraft-page .blueprint-note {
  color: #535353;
  text-align: right;
}

body.history-page {
  background-image: linear-gradient(to bottom, #238ea3, #0159a1);
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
}

.history-page-container { max-width: 1200px; margin: 0 auto; padding: 40px 20px; }

.timeline {
  position: relative;
  max-width: 800px;
  margin: 50px auto;
  padding: 20px 10px;
}
.timeline-line {
  position: absolute; top: 0; left: 15px;
  width: 4px; height: 100%; background-color: #ddd; z-index: -100;
}
#timeline-progress {
  position: absolute; top: 0; left: 15px;
  width: 4px; height: 0;
  background: linear-gradient(to top, #00bfff, #007bff);
  z-index: -90;
  transition: height 0.3s ease-out;
}
.timeline-entry {
  position: relative; width: 100%;
  padding: 0 0 0 50px;
  margin-bottom: 80px;
  box-sizing: border-box;
}
.year {
  font-size: clamp(5rem, 5vw + 1rem, 7rem);
  font-weight: bold;
  color: rgb(49, 190, 255);
  margin-bottom: -50px;
  text-align: left !important;
}
.dot {
  position: absolute; top: 45px; left: -6.5px;
  width: 27px; height: 27px;
  border-radius: 50%; background-color: white; border: 4px solid #00bfff;
  z-index: 100;
}

.founding-section {
  max-width: 800px; margin: -50px auto 60px; padding: 0 20px;
  position: relative; z-index: 10;
}
.founding-card {
  display: flex; align-items: center;
  background-color: #3d3d3d;
  border-radius: 12px; padding: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border: 1px solid #e0e0e0; text-align: left;
}
.founding-icon {
  flex-shrink: 0; width: 80px; height: 80px;
  background-color: var(--primary-color); color: #fff;
  border-radius: 50%; display: flex; justify-content: center; align-items: center;
  font-size: 2rem; margin-right: 30px;
  box-shadow: 0 4px 10px rgba(53, 164, 255, 0.3);
}
.founding-content { flex-grow: 1; }
.founding-year {
  display: inline-block; font-family: 'Oswald', sans-serif;
  font-weight: bold; color: #aaa; letter-spacing: 2px; margin-bottom: 5px;
}
.founding-content h3 {
  margin: 0 0 15px 0; font-size: 1.8rem; color: #131313;
  text-align: left; border-bottom: 2px solid var(--primary-color);
  padding-bottom: 10px; display: inline-block;
}
.founding-content p { margin: 0; font-size: 1rem; color: #000000; line-height: 1.8; }

.photos-wrapper {
  display: flex;
  flex-direction: column;
  gap: 15px;
  width: 100%;
  margin-top: 20px;
  margin-bottom: 25px;
}

.photo-container {
  position: relative; overflow: hidden; border-radius: 8px; height: 200px;
}
.photo-container img {
  width: 100%; height: 100%; object-fit: contain; display: block;
  filter: drop-shadow(0 0 5px rgb(255, 255, 255));
}

.photo-container-under {
  position: relative;
  width: 100%;
  height: 450px;
  border-radius: 12px;
  overflow: hidden;
  background-color: #fff;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  border: 1px solid #eee;
  margin-bottom: 0;
  aspect-ratio: auto !important;
}
.photo-container-under img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 0.5s ease;
}
.photo-container-under:hover img { transform: scale(1.08); }

.content-wrapper { padding-top: 0; }
.text-content ul {
  margin-top: 0; padding: 15px;
  background-color: rgba(0, 0, 0, 0.4);
  border-radius: 8px;
}
.text-content li {
  margin-bottom: 8px; line-height: 1.6; color: #ffffff; list-style-position: inside;
}

.fade-in-target { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease-out, transform 0.8s ease-out; }
.fade-in-target.visible { opacity: 1; transform: translateY(0); }

.alumni-callout {
  max-width: 600px; margin: 100px auto 80px auto;
  padding: 40px;
  background-color: rgba(88, 88, 88, 0.9);
  color: #333; border-radius: 12px; text-align: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.alumni-callout h2 { font-size: 1.8rem; margin-bottom: 20px; }
.alumni-callout p { line-height: 1.8; margin-bottom: 30px; }

.sort-buttons { text-align: center; margin: -20px 0 40px 0; }
.sort-buttons button {
  background-color: #007bff; color: white; border: none;
  padding: 10px 20px; margin: 0 10px; border-radius: 5px;
  cursor: pointer; font-size: 1rem; font-weight: bold;
  transition: background-color 0.3s ease, transform 0.2s ease;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}
.sort-buttons button:hover { background-color: #00bfff; transform: translateY(-2px); }

body.aircraft-page {
  background-color: #121212;
  color: #ffffff;
  background-image:
      linear-gradient(#222222 1px, transparent 1px),
      linear-gradient(90deg, #222222 1px, transparent 1px) !important;
  background-size: 20px 20px;
  background-repeat: repeat !important;
  background-attachment: fixed;
  background-position: center top;
}
body.aircraft-page h1, body.aircraft-page h2, body.aircraft-page h3, body.aircraft-page p {
  color: #ffffff;
}

.aircraft-hero { text-align: center; padding: 60px 20px 20px; }
.aircraft-title {
  font-family: 'Oswald', sans-serif; font-size: 4rem; color: #333;
  margin-bottom: 10px; letter-spacing: 2px; text-transform: uppercase;
}
.aircraft-subtitle {
  font-size: 1.2rem; color: var(--primary-color); font-weight: bold; letter-spacing: 1px;
}

.hero-logo-area {
  text-align: center;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero-logo-label {
  font-size: 1.0rem; color: #888888; margin-bottom: 10px;
  letter-spacing: 2px; text-transform: uppercase; font-weight: normal;
  text-align: center; width: 100%; display: block;
}
.hero-logo-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%; max-width: 90%; height: 150px;
  margin: 0 auto 20px auto; position: relative;
}
.hero-logo-img {
  width: 500px; height: 170px; object-fit: contain; border-radius: 8px;
  filter: drop-shadow(0 0 10px rgb(255, 255, 255));
  animation: fadeInLogo 1.5s ease-out;
}

.technical-header {
  text-align: center; margin-top: 40px; margin-bottom: 15px;
}
.technical-header h3 {
  font-family: 'Oswald', sans-serif; font-size: 2rem; color: #ffffff;
  margin-bottom: 0; letter-spacing: 1.5px; text-transform: uppercase;
  text-shadow: 0 0 10px rgba(53, 164, 255, 0.5);
}
.technical-header p {
  font-size: 0.9rem; color: var(--primary-color);
  letter-spacing: 3px; text-transform: uppercase;
  margin-top: 5px; font-weight: bold; opacity: 0.9;
}

.viewer-container {
  position: relative; width: 90%; max-width: 1000px; height: 60vh;
  margin: 20px auto 60px;
  background-color: #ffffff; border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1); border: 1px solid #e0e0e0; overflow: hidden;
}
model-viewer {
  width: 100%; 
  height: 100%;       /* 高さいっぱいに表示 */
  max-width: none;    /* 横幅の制限を解除（親要素に合わせる） */
  margin: 0;          /* 余白をゼロにする */
  display: block;
  pointer-events: none; 
  transition: opacity 0.3s;
}
.viewer-container.is-active model-viewer { pointer-events: auto; cursor: grab; }

.viewer-overlay {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background-color: rgba(255, 255, 255, 0.1);
  display: flex; justify-content: center; align-items: center; z-index: 10;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.viewer-container.is-active .viewer-overlay { opacity: 0; visibility: hidden; pointer-events: none; }
.btn-activate-model {
  padding: 12px 24px; font-size: 1rem; font-weight: bold; color: #fff;
  background-color: rgba(0, 0, 0, 0.7); border: 1px solid #fff; border-radius: 30px;
  cursor: pointer; transition: background-color 0.3s, transform 0.2s;
  backdrop-filter: blur(4px);
}
.btn-activate-model:hover {
  background-color: var(--primary-color); transform: scale(1.05); border-color: var(--primary-color);
}
.model-instruction {
  position: absolute; bottom: 15px; left: 50%; transform: translateX(-50%);
  font-size: 0.9rem; color: #888; pointer-events: none;
}

.spec-table {
  max-width: 800px; margin-bottom: 60px;
  background-color: #ffffff !important; border: 1px solid #ccc !important;
}
.spec-table td, .spec-table th {
  color: #252525 !important; border-bottom: 1px solid #e0e0e0;
}
.spec-table th {
  width: 40%; background-color: #f0f0f0 !important;
}

.blueprint-frame {
  border: 4px double #333; padding: 20px; background-color: #fff;
  margin-bottom: 50px; position: relative;
}
.blueprint-title-block {
  position: absolute; top: -30px; right: 0;
  font-family: 'Oswald', sans-serif; font-size: 0.9rem; color: #555; letter-spacing: 1px;
}
.blueprint-single-container { text-align: center; }
.blueprint-image { max-width: 100%; height: auto; }

.video-container-blueprint {
  position: relative; width: 100%; padding-bottom: 56.25%; height: 0;
  background-color: #000; margin-bottom: 15px; border: 1px solid #333;
}
.video-container-blueprint iframe {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
}
.blueprint-note {
  font-size: 0.85rem; color: #535353; text-align: right; margin: 0; font-family: sans-serif;
}

.aircraft-photo-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-bottom: 50px;
}
.aircraft-photo-grid .gallery-item-modern { height: 250px; margin-bottom: 0; }
.aircraft-photo-grid .gallery-item-modern img { height: 100%; object-fit: cover; }

body.aircraft-page .team-card {
  background-color: #2c2c2c; border: 1px solid #444;
}
body.aircraft-page .spec-table th,
body.aircraft-page .spec-table td,
body.aircraft-page .gallery-item-modern h3,
body.aircraft-page .gallery-item-modern p,
body.aircraft-page .blueprint-title-block {
  color: inherit;
}
body.aircraft-page .team-card h3,
body.aircraft-page .team-card p {
  color: inherit;
}
body.aircraft-page .details-section h3 {
  background-color: #2c2c2c !important;
  color: #ffffff !important;
  border-left: 6px solid var(--primary-color);
  border-bottom: none;
}

body.news-page {
  background-color: #ffffff;
  background-image:
      linear-gradient(#e5e5e5 1px, transparent 1px),
      linear-gradient(90deg, #e5e5e5 1px, transparent 1px) !important;
  background-size: 20px 20px;
  background-repeat: repeat !important;
  background-attachment: fixed;
  background-position: center top;
}

.news-page-container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.news-page-container h1 { margin-bottom: 40px; font-size: 2.5rem; color: #333; text-align: center; }

body.news-page .news-section {
  width: 90%; max-width: 1100px;
  margin: 60px auto 40px;
  padding: 0 !important;
  background-color: transparent !important;
  box-shadow: none !important; border: none !important;
  text-align: center;
}

body.news-page .news-section h2 {
  font-family: 'Oswald', sans-serif; font-size: 3.5rem; font-weight: bold;
  color: #333; letter-spacing: 2px; margin-bottom: 30px;
  border-bottom: none; text-transform: uppercase;
  text-shadow: 2px 2px 0px rgba(255,255,255, 0.8);
}

.news-filter-container {
  display: inline-flex; background-color: #ffffff; padding: 8px;
  border-radius: 50px; box-shadow: 0 5px 20px rgba(0,0,0,0.1);
  gap: 5px; max-width: 100%; box-sizing: border-box;
  margin-top: 0; margin-bottom: 0;
}

.filter-btn {
  background: transparent; border: none; color: #666;
  padding: 10px 25px; margin: 0; cursor: pointer; border-radius: 40px;
  font-size: 1rem; font-weight: bold; transition: all 0.3s ease;
}
.filter-btn:hover {
  color: var(--primary-color); background-color: rgba(53, 164, 255, 0.1);
}
.filter-btn.active {
  background-color: var(--primary-color); color: #ffffff;
  box-shadow: 0 4px 10px rgba(53, 164, 255, 0.3); transform: translateY(-1px);
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  max-width: 1100px;
  margin: 30px auto;
  padding: 0 20px;
}

body.gallery-page {
  background-color: #f7f9fc;
  background-image:
      linear-gradient(rgba(0, 80, 200, 0.1) 1px, transparent 1px),
      linear-gradient(90deg, rgba(0, 80, 200, 0.1) 1px, transparent 1px);
  background-size: 20px 20px;
}

body.gallery-page main {
  padding-top: 0px; padding-bottom: 40px;
}

.gallery-page-container { max-width: 1400px; margin: auto; }

.modern-gallery-grid { column-count: 3; column-gap: 20px; padding: 20px; }
.gallery-item-modern {
  position: relative; overflow: hidden; border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.1); cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  break-inside: avoid; margin-bottom: 20px;
}
.gallery-item-modern img {
  width: 100%; height: auto; display: block; transition: transform 0.4s ease-out;
}
.gallery-item-modern:hover img { transform: scale(1.05); }

.item-overlay {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(to top, rgba(0,0,0,0.8), rgba(0,0,0,0));
  color: #fff; display: flex; align-items: flex-end; padding: 20px;
  opacity: 0; transition: opacity 0.4s ease-out;
}
.gallery-item-modern:hover .item-overlay { opacity: 1; }
.overlay-text h3 { margin: 0 0 5px 0; text-align: left; color: #fff; }
.overlay-text p { margin: 0; font-size: 0.9em; color: #eee; }

#modern-lightbox {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background-color: rgba(0, 0, 0, 0.85); z-index: 2000;
  display: flex; justify-content: center; align-items: center;
  opacity: 0; visibility: hidden; transition: opacity 0.4s ease, visibility 0.4s ease;
}
#modern-lightbox.active { opacity: 1; visibility: visible; }
.lightbox-close-btn {
  position: absolute; top: 20px; right: 35px; font-size: 40px;
  font-weight: bold; color: #fff; cursor: pointer; transition: color 0.3s ease;
}
.lightbox-close-btn:hover { color: #bbb; }
.lightbox-content-modern {
  max-width: 90%; max-height: 80%; object-fit: contain; animation: zoomIn 0.4s ease;
}

body.contact-page {
  background-color: #ffffff;
  background-image:
      linear-gradient(#e5e5e5 1px, transparent 1px),
      linear-gradient(90deg, #e5e5e5 1px, transparent 1px);
  background-size: 20px 20px;
  background-repeat: repeat;
  background-attachment: fixed;
}

.contact-page-container {
  max-width: 900px; margin: 0 auto 60px; padding: 0 20px;
}

.page-intro-text {
  text-align: center; margin: 40px auto; font-size: 1.1rem; color: #555; line-height: 1.8;
}

.contact-card {
  background-color: #ffffff; border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  margin-bottom: 40px; overflow: hidden; border: 1px solid #eaeaea;
}

.card-header {
  background-color: #f9fbfc; padding: 20px 30px;
  border-bottom: 1px solid #eaeaea;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
}
.card-header h2 {
  font-size: 1.5rem; margin: 0; color: #333; text-align: left;
  border: none; display: flex; align-items: center; gap: 12px;
}
.card-header h2 i { color: var(--primary-color); }
.card-header .note { font-size: 0.85rem; color: #e74c3c; margin: 0; font-weight: bold; }

.card-body, .contact-form-wrapper { padding: 30px; }

.form-row { display: flex; gap: 20px; }
.form-group.half { flex: 1; }
.form-group { margin-bottom: 20px; }
.form-group label {
  font-weight: bold; font-size: 0.95rem; margin-bottom: 8px;
  color: #444; display: block;
}
.required { color: #e74c3c; margin-left: 4px; }

.form-group input, .form-group textarea {
  width: 100%; padding: 14px; border: 2px solid #eee; border-radius: 8px;
  font-size: 1rem; background-color: #fcfcfc; transition: all 0.3s ease;
  font-family: inherit;
}
.form-group input:focus, .form-group textarea:focus {
  border-color: var(--primary-color); background-color: #fff;
  box-shadow: 0 0 0 4px rgba(53, 164, 255, 0.1); outline: none;
}
.form-group textarea { min-height: 180px; resize: vertical; }

.btn-send {
  display: inline-block; background-color: var(--primary-color); color: #fff;
  font-size: 1.1rem; font-weight: bold; padding: 15px 60px;
  border: none; border-radius: 50px; cursor: pointer;
  transition: all 0.3s ease; box-shadow: 0 4px 15px rgba(53, 164, 255, 0.4);
}
.btn-send:hover {
  background-color: #f0950c; transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(240, 149, 12, 0.4);
}
.btn-send i { margin-left: 10px; }

.sns-buttons-container {
  display: flex; gap: 20px; margin: 20px 0 40px;
  justify-content: center; flex-wrap: wrap;
}
.sns-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 30px; border-radius: 8px; color: #fff;
  text-decoration: none; font-weight: bold; min-width: 200px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.sns-btn.twitter { background-color: #000; }
.sns-btn.instagram { background: linear-gradient(45deg, #f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%); }
.sns-btn:hover { transform: translateY(-3px); box-shadow: 0 6px 15px rgba(0,0,0,0.2); }

.shinkan-link-box {
  background-color: #eaf6ff; border: 2px dashed var(--primary-color);
  border-radius: 8px; padding: 20px; text-align: center;
}
.shinkan-link-box h3 {
  color: var(--primary-color); margin-bottom: 10px; font-size: 1.2rem; border: none;
}

.btn-shinkan {
  display: inline-block; margin-top: 10px; color: var(--primary-color);
  font-weight: bold; text-decoration: none; border-bottom: 2px solid var(--primary-color);
  padding-bottom: 2px; transition: opacity 0.3s;
}
.btn-shinkan:hover { opacity: 0.7; }

.address-info { margin-bottom: 20px; text-align: center; }
.address-text h3 { font-size: 1.2rem; margin-bottom: 5px; color: #333; border: none; }
.map-container-styled {
  border-radius: 8px; overflow: hidden; box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  border: 1px solid #ccc;
}

body.shikan-page {
  background-color: #fcfcfc;
  background-image:
      linear-gradient(#e0ecf8 1px, transparent 1px),
      linear-gradient(90deg, #e0ecf8 1px, transparent 1px);
  background-size: 20px 20px;
  background-repeat: repeat;
  background-attachment: fixed;
}

.schedule-timeline {
  max-width: 800px; margin: 40px auto; position: relative; padding-left: 20px;
}
.schedule-timeline::before {
  content: ''; position: absolute; left: 38px; top: 0; bottom: 0;
  width: 3px; background-color: #d0d0d0;
}
.timeline-item {
  display: flex; align-items: center; margin-bottom: 30px; position: relative;
}

.time-badge {
  flex-shrink: 0; width: 80px; height: 80px; background-color: #fff;
  border: 3px solid var(--primary-color); color: var(--primary-color);
  font-weight: bold; display: flex; flex-direction: column; justify-content: center;
  align-items: center; border-radius: 50%; z-index: 2; margin-right: 25px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1); font-size: 1.1rem; line-height: 1.1;
}
.time-badge small { font-size: 0.7rem; font-weight: normal; margin-top: 2px; }

.timeline-item.highlight .time-badge {
  background-color: var(--primary-color); color: #fff; border-color: #fff;
  box-shadow: 0 0 0 3px var(--primary-color);
}

.time-content {
  background-color: #fff; padding: 20px 25px; border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05); flex-grow: 1;
  border: 1px solid #eee; position: relative;
}
.time-content::before {
  content: ''; position: absolute; left: -10px; top: 50%;
  transform: translateY(-50%);
  border-top: 10px solid transparent; border-bottom: 10px solid transparent;
  border-right: 10px solid #fff;
}
.time-content h4 {
  margin: 0 0 8px; font-size: 1.2rem; color: #333; text-align: left;
  border: none; font-weight: bold;
}
.time-content p {
  margin: 0 0 5px; font-size: 0.95rem; color: #666;
}
.time-content i {
  color: var(--primary-color); width: 20px; text-align: center; margin-right: 5px;
}

body.shikan-page .sns-btn.line { background-color: #06c755; }
body.shikan-page .shinkan-link-box {
  background-color: #f0f8ff; border: 2px dashed var(--primary-color);
  border-radius: 16px; padding: 30px; text-align: center;
  max-width: 700px; margin: 0 auto;
}
body.shikan-page .btn-shinkan {
  display: inline-block; margin-top: 20px;
  background-color: var(--primary-color); color: #ffffff;
  padding: 14px 35px; border-radius: 50px; font-weight: bold;
  text-decoration: none; border-bottom: none;
  box-shadow: 0 4px 10px rgba(53, 164, 255, 0.4); transition: all 0.3s ease;
}
body.shikan-page .btn-shinkan:hover {
  background-color: #f0950c; transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(240, 149, 12, 0.4); opacity: 1;
}

@media (max-width: 768px) {

  body { padding-bottom: 0 !important; }
  h1, h2, h3 { margin-bottom: 1rem; }
  .logo { height: 80px; }
  #content-start { scroll-margin-top: 85px; }

  .header-icons { gap: 1.2rem; }
  .header-map-link { font-size: 1.4rem; }
  .slide-menu { width: 85%; max-width: 300px; right: -320px; }

  .hero-title { margin-bottom: 100px; font-size: 3.0rem; text-align: right; }
  .hero-subtitle { margin-top: -100px; font-size: 1.0rem; text-align: left; }
  .hero-content h2 { font-size: 1.7rem; }
  .hero-content p { font-size: 0.8rem; }
  .slideshow-container { height: 91vh; }
  .slideshow-title { margin: 0; font-size: 2.8rem; font-weight: bold; }
  .mobile-only { display: block; }
  .dots-container { bottom: 90px; }

  body.team-page, body.history-page {
    background-attachment: scroll !important;
    background-size: cover !important;
    min-height: 100vh;
  }
  body.home-page, body.aircraft-page, body.shikan-page, body.contact-page, body.news-page {
    background-attachment: scroll !important;
    background-size: 20px 20px !important;
    background-repeat: repeat !important;
    min-height: 100vh;
  }

  .history-section h2 { margin-bottom: 20px; font-size: 2rem; }
  .history-section p { margin-top: 30px; font-size: 1.3rem; text-shadow: 3px 3px 8px rgba(0, 0, 0, 0.7); }
  .timeline { padding: 20px 5px; margin: 30px auto; }
  .timeline-entry { padding-left: 45px; margin-bottom: 60px; }
  .timeline-line, #timeline-progress { left: 15px; }
  .dot { left: 0px; top: 35px; width: 25px; height: 25px; border-width: 4px; }
  .year { font-size: clamp(4.0rem, 5vw + 1rem, 5rem); margin-bottom: -35px; }
  
  .photo-container { height: 120px; }
  .photo-container-under { height: 220px; aspect-ratio: 16 / 9; }
  
  .more-detail-link {
    padding: 8px 16px; font-size: 0.8rem; bottom: 10px; right: 10px;
  }
  
  .alumni-callout { max-width: 90%; margin: 50px auto; padding: 30px 20px; }
  .alumni-callout h2 { font-size: 1.5rem; }
  .alumni-callout p { font-size: 0.8rem; }
  .text-content { margin-top: 20px; position: relative; z-index: 5; }
  .founding-section { margin-top: 20px; }
  .founding-card { flex-direction: column; text-align: center; padding: 25px 20px; }
  .founding-icon { margin-right: 0; margin-bottom: 20px; }
  .founding-content h3 { font-size: 1.5rem; text-align: center; display: block; }

  .expanding-menu-container { flex-direction: column; height: 70vh; min-height: 500px; }
  .menu-panel:hover { flex: 1; }
  .menu-panel.panel-expanded { flex: 5; }
  .sub-text { opacity: 0; transform: translateY(20px); }
  .menu-panel.panel-expanded .sub-text { opacity: 1; transform: translateY(0); transition-delay: 0.2s; }

  .news-section { margin: 20px auto; padding: 1.5rem 1rem; }
  .news-section-title { font-size: 3rem; }
  .news-list-container { max-height: 300px; }
  .news-list li a { flex-direction: row; align-items: center; }
  .news-date { margin-bottom: 0.3rem; font-size: 0.8rem; }
  .news-thumb-wrapper { width: 120px; height: 80px; }
  .news-title { font-size: 1.0rem; }

  body.news-page .news-section {
    width: 90% !important; margin: 30px auto !important; padding: 0 !important;
    background-color: transparent !important; border: none !important; box-shadow: none !important;
  }
  body.news-page .news-section h2 {
    font-size: 2.5rem; margin-bottom: 20px; text-align: center;
  }
  .news-filter-container {
    display: flex; justify-content: center; flex-wrap: wrap; gap: 10px;
    margin: 0 auto; width: 100%; overflow-x: visible; white-space: normal;
    padding: 0; background: transparent; box-shadow: none;
  }
  .filter-btn { margin: 0; flex-shrink: 0; background-color: #fff; box-shadow: 0 2px 5px rgba(0,0,0,0.05); padding: 8px 16px; font-size: 0.9rem; }
  
  .news-grid { grid-template-columns: 1fr; width: 95%; }

  .youtube-title {
      font-size: 1.2rem;
      margin-bottom: 1.0rem;
      padding: 0 10px;
      word-break: normal;
      line-height: 1.4;
  }
  .youtube-iframe-container {
    width: 100%; max-width: 100%; padding-bottom: 56.25%;
    border-radius: 0; box-shadow: none;
  }

  .news-page-container { padding: 30px 15px; }
  .news-page-container h1 { font-size: 2rem; margin-bottom: 30px; }
  .page-section-container { padding: 0 20px; margin: 0px auto; }

  .info-grid { grid-template-columns: 1fr; }
  .location-card-grid { grid-template-columns: 1fr; }
  .schedule-item { flex-direction: column; align-items: flex-start; }
  .schedule-month { width: auto; margin-bottom: 5px; }
  .details-section h2 { font-size: 1.5rem; }
  .team-grid { grid-template-columns: 1fr; gap: 30px; }
  .team-structure-section { margin: 50px 0; }
  .team-structure-section .section-title { font-size: 2rem; }
  .intro-overlay h2 { font-size: 2.2rem; }
  .intro-overlay p { font-size: 1rem; }
  .team-image { height: 280px !important; }

  .aircraft-title { font-size: 2.5rem; }
  .viewer-container { height: 50vh; width: 95%; }
  .model-viewer-prompt { margin: 0 20px 10px 20px; }
  .hero-logo-area { text-align: center; width: 100%; display: flex; flex-direction: column; align-items: center; }
  .hero-logo-label { text-align: center; width: 100%; display: block; margin-bottom: 10px; }
  .hero-logo-wrapper { height: 150px; max-width: 90%; margin: 0 auto 20px auto; display: flex; justify-content: center; align-items: center; }
  .hero-logo-img { width: 500px; height: 170px; object-fit: contain; }
  .technical-header { margin-top: 20px; }
  .technical-header h3 { font-size: 1.6rem; }
  .technical-header p { font-size: 0.75rem; letter-spacing: 2px; }
  .blueprint-grid { display: flex; flex-direction: column; gap: 30px; }
  .blueprint-frame { padding: 10px; border-width: 2px; }
  .blueprint-title-block { position: static; text-align: right; margin-bottom: 10px; }
  .flight-video-section .blueprint-frame { padding-bottom: 20px; }
  .aircraft-photo-grid { grid-template-columns: 1fr; }
  .aircraft-photo-grid .gallery-item-modern { height: 200px; }

  .modern-gallery-grid { column-count: 2; }
  .gallery-header { padding: 80px 24px; margin-bottom: 40px; }
  .gallery-header h1 { font-size: 3rem; }
  .gallery-header p { font-size: 1rem; }

  .form-row { flex-direction: column; gap: 0; }
  .card-header { flex-direction: column; align-items: flex-start; gap: 10px; }
  .btn-send { width: 100%; }
  .sns-btn { width: 100%; }
  .card-body, .contact-form-wrapper { padding: 20px; }

  .schedule-timeline { padding-left: 0; margin: 20px auto; }
  .schedule-timeline::before { left: 20px; }
  .timeline-item { flex-direction: column; align-items: flex-start; margin-left: 0; }
  .time-badge {
    width: auto; height: auto; padding: 5px 15px; border-radius: 20px;
    margin-bottom: 10px; flex-direction: row; gap: 5px; margin-left: 0;
  }
  .time-content { width: calc(100% - 30px); margin-left: 30px; }
  .time-content::before { display: none; }
  
  .model-note {
    width: 95%;
    font-size: 0.7rem;
  }
}

@media (max-width: 500px) {
  .modern-gallery-grid { column-count: 1; }
}

.model-note {
  width: 90%;
  max-width: 1000px;
  margin: 8px auto 0;
  text-align: right;
  font-size: 0.8rem;
  color: #aaaaaa;
}

body.maintenance-page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    
    background-color: #ffffff;
    background-image:
        linear-gradient(#e5e5e5 1px, transparent 1px),
        linear-gradient(90deg, #e5e5e5 1px, transparent 1px);
    background-size: 20px 20px;
    background-attachment: fixed;
}

body.maintenance-page main {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
}

.maintenance-container {
    background-color: rgba(255, 255, 255, 0.95);
    padding: 60px 40px;
    border-radius: 16px;
    text-align: center;
    max-width: 600px;
    width: 100%;
    border: 1px solid var(--border-color);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
}

.maintenance-icon {
    font-size: 5rem;
    color: var(--primary-color);
    margin-bottom: 30px;
    animation: bounce 3s infinite ease-in-out;
}

@keyframes floatIcon {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}
.maintenance-icon i {
    animation: floatIcon 3s ease-in-out infinite;
}

.maintenance-title {
    font-size: 2rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 20px;
    font-family: 'Helvetica Neue', sans-serif;
}

.maintenance-text {
    font-size: 1rem;
    color: #666;
    line-height: 1.8;
    margin-bottom: 40px;
}

@media (max-width: 768px) {
    .maintenance-container {
        padding: 40px 20px;
    }
    .maintenance-icon {
        font-size: 4rem;
    }
    .maintenance-title {
        font-size: 1.5rem;
    }
}


#ar-button {
  background-image: url(https://modelviewer.dev/shared-assets/icons/ic_view_in_ar_new_googblue_48dp.png);
  background-repeat: no-repeat;
  background-size: 20px 20px;
  background-position: 12px 50%;
  background-color: #fff;
  

  position: absolute;
  right: 10px;
  top: 10px;
  left: auto;       
  bottom: auto;     
  transform: none;  


  white-space: nowrap;
  padding: 0px 16px 0px 40px;
  font-family: Roboto, Regular, Helvetica Neue, sans-serif;
  font-size: 14px;
  color: #4285f4;
  height: 36px;
  line-height: 36px;
  border-radius: 18px;
  border: 1px solid #DADCE0;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
  cursor: pointer;
  display: none; 
  

  z-index: 100; 
}

#ar-button:active {
  background-color: #E8EAED;
}

#ar-button:focus {
  outline: none;
}

#ar-button:focus-visible {
  outline: 1px solid #4285f4;
}


model-viewer:not([ar-status="failed"]) #ar-button {
  display: inline-block;
}

body.aircraft-page .blueprint-frame .blueprint-title-block {
  color: #555 !important;
}

@media (max-width: 768px) {
  .blueprint-title-block {
      display: block !important;
      position: static !important;
      text-align: right;
      margin-bottom: 5px;
      width: 100%;
      color: #555 !important; 
  }
}

.article-content h3 {
      margin-top: 40px;
      margin-bottom: 20px;
      border-left: 5px solid var(--primary-color);
      padding-left: 15px;
      text-align: left;
    }
    .shop-info-box {
        background-color: #f9f9f9;
        border: 1px solid #ddd;
        border-radius: 8px;
        padding: 20px;
        margin-top: 30px;
    }
    .shop-info-list {
        list-style: none;
        padding: 0;
    }
    .shop-info-list li {
        margin-bottom: 10px;
        border-bottom: 1px dashed #ccc;
        padding-bottom: 10px;
    }
    .shop-info-list li:last-child {
        border-bottom: none;
        margin-bottom: 0;
    }
    .shop-info-list strong {
        color: #333;
        margin-right: 10px;
        display: inline-block;
        min-width: 80px;
    }
    .article-body-image {
        width: 100%;
        max-width: 600px;
        height: auto;
        border-radius: 8px;
        margin: 30px auto;
        display: block;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    }
