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

html{font-size:16px;scroll-behavior:smooth}

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

img{max-width:100%;height:auto;display:block}
a{text-decoration:none;color:inherit}
ul{list-style:none}

:root{
  --font-display:'Roboto Condensed',sans-serif;
  --font-serif:'Noto Serif JP',serif;
  --font-body:'Raleway',sans-serif;

  --color-primary:#2c3e50;
  --color-text:#333333;
  --color-text-light:#666666;
  --color-text-white:#ffffff;
  --color-bg:#ffffff;
  --color-bg-alt:#f8f9fa;
  --color-border:#e0e0e0;
  --color-navy:#041833;
  --color-green:#00AD68;
  --color-green-light:rgba(0,210,160,0.8);
  --color-green-tint:rgba(0,173,104,0.2);

  --spacing-xs:0.5rem;
  --spacing-sm:1rem;
  --spacing-md:1.5rem;
  --spacing-lg:3rem;
  --spacing-xl:4rem;

  --transition-base:0.3s ease;
}

#password-gate{
  position:fixed;
  inset:0;
  background:#041833;
  display:flex;
  align-items:center;
  justify-content:center;
  z-index:99999;
}
#password-gate .gate-box{
  background:white;
  padding:48px 40px;
  border-radius:8px;
  text-align:center;
  max-width:380px;
  width:90%;
  box-shadow:0 20px 60px rgba(0,0,0,0.4);
}
#password-gate h2{
  font-family:var(--font-body);
  font-size:1.4rem;
  font-weight:600;
  margin:0 0 8px 0;
  color:#041833;
}
#password-gate p{
  font-family:var(--font-body);
  font-size:0.9rem;
  color:#666;
  margin:0 0 24px 0;
}
#password-gate input{
  width:100%;
  padding:12px 16px;
  font-size:1rem;
  border:1px solid #ddd;
  border-radius:4px;
  box-sizing:border-box;
  margin-bottom:12px;
  font-family:var(--font-body);
  outline:none;
}
#password-gate input:focus{border-color:#041833}
#password-gate button{
  width:100%;
  padding:12px;
  background:#008350;
  color:white;
  border:none;
  border-radius:4px;
  font-size:0.95rem;
  font-family:var(--font-body);
  font-weight:600;
  letter-spacing:0.05em;
  cursor:pointer;
}
#password-gate button:hover{background:#006840}
#password-gate .error-msg{
  color:#c0392b;
  font-size:0.85rem;
  margin-top:10px;
  display:none;
  font-family:var(--font-body);
}
body.gate-active{overflow:hidden}

.sr-only{
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0;
}

.main-header{
  background-color:var(--color-navy);
  border-bottom:1px solid rgba(255,255,255,0.08);
  padding:var(--spacing-sm) 0;
  position:sticky;
  top:0;
  z-index:1000;
}
.header-content{
  display:flex;
  justify-content:space-between;
  align-items:center;
}
.logo{display:flex;align-items:center;}
.logo img{height:72px;width:auto;}

.main-nav ul{display:flex;gap:var(--spacing-lg);}
.main-nav a{
  font-family:var(--font-body);
  font-size:0.95rem;
  font-weight:500;
  color:white;
  text-transform:uppercase;
  letter-spacing:0.5px;
  transition:color var(--transition-base);
}
.main-nav a:hover{color:#00AD68}

.hamburger{
  display:none;
  flex-direction:column;
  justify-content:space-between;
  width:28px;
  height:20px;
  background:none;
  border:none;
  cursor:pointer;
  padding:0;
  z-index:1001;
}
.hamburger span{
  display:block;
  width:100%;
  height:2px;
  background-color:white;
  border-radius:2px;
  transition:transform 0.3s ease,opacity 0.3s ease;
}
.hamburger.open span:nth-child(1){transform:translateY(9px) rotate(45deg);}
.hamburger.open span:nth-child(2){opacity:0;}
.hamburger.open span:nth-child(3){transform:translateY(-9px) rotate(-45deg);}

.main-nav a.external {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #e368b2;
}

.main-nav a.external:hover {
  color: #00AD68;
}

.main-nav a.external::after {
  content: '';
  width: 10px;
  height: 10px;
  background-color: currentColor;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17L17 7M7 7h10v10'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17L17 7M7 7h10v10'/%3E%3C/svg%3E");
  -webkit-mask-size: contain;
  mask-size: contain;
  flex-shrink: 0;
}

.main-footer{
  padding:var(--spacing-lg) 0;
  background:var(--color-navy);
  color:white;
  text-align:center;
}
.footer-text{
  font-family:var(--font-body);
  font-size:0.95rem;
  color:#77848D;
}

.video-modal{
  display:none;
  position:fixed;
  inset:0;
  background:rgba(0,0,0,0.9);
  justify-content:center;
  align-items:center;
  z-index:9999;
}
.video-modal.open{display:flex;}
.video-modal-content{
  width:min(1100px,92vw);
  max-height:82vh;
  aspect-ratio:16/9;
  position:relative;
}
.video-modal-close{
  position:absolute;
  top:14px;
  right:14px;
  width:44px;
  height:44px;
  border:none;
  border-radius:999px;
  background:rgba(0,0,0,0.72);
  backdrop-filter:blur(4px);
  color:white;
  font-size:1.8rem;
  line-height:1;
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  z-index:10001;
}
.video-modal-player{
  width:100%;
  height:100%;
  background:#000;
}
.video-modal-player iframe{
  width:100%;
  height:100%;
  border-radius:4px;
}

@media(max-width:1100px){
  .video-modal-content{width:94vw;max-height:78vh}
  .video-modal-close{top:10px;right:10px;width:40px;height:40px;font-size:1.5rem}
}

@media(max-width:1024px){
  .main-header .container{position:relative;}
  .hamburger{display:flex;}
  .main-nav{
    display:none;
    position:absolute;
    top:100%;
    left:0;
    right:0;
    background-color:var(--color-navy);
    z-index:1000;
    border-top:1px solid rgba(255,255,255,0.1);
  }
  .main-nav.open{display:block;}
  .main-nav ul{flex-direction:column;gap:0;padding:var(--spacing-sm) 0;}
  .main-nav li{width:100%;}
  .main-nav a{
    display:block;
    padding:var(--spacing-sm) var(--spacing-md);
    border-bottom:1px solid rgba(255,255,255,0.07);
  }
  .main-nav a:hover{color:#00AD68;background-color:rgba(255,255,255,0.05);}
  .main-nav li:last-child a{border-bottom:none;}
  .logo img{height:60px;}
}

.skip-link {
  position: fixed;
  top: 0;
  left: 0;
  transform: translateY(-100%);
  padding: 0.5rem 1rem;
  background: var(--color-navy);
  color: white;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  z-index: 9999;
  text-decoration: none;
  border-bottom: 2px solid var(--color-green);
}
.skip-link:focus {
  transform: translateY(0);
}

.about-credits-list {
  list-style: disc;
  padding-left: 1.5rem;
  margin: 1rem 0;
}

.about-credits-list li {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-text-light);
  line-height: 1.8;
  margin-bottom: 0.3rem;
}

.cta-button {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  padding: 1rem 2.5rem;
  background-color: #008350;
  color: white;
  border-radius: 4px;
  transition: background-color var(--transition-base);
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  border: none;
  display: inline-block;
}

.cta-button:hover {
  background-color: #006840;
}

.cta-button--extra-space {
  margin-top: 2.5rem;
}

.cta-button--hero-space {
  margin-top: 1rem;
}
