@charset "UTF-8";

/* =====================================================
   1. BASE & RESET
   ===================================================== */
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  color: #f8fafc;
  background-color: #0f172a;
  overflow-x: hidden;
}

/* =====================================================
   2. NAVBAR
   ===================================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0; /* 左端を固定 */
  width: 100%;
  height: 80px;
  background-color: #ffffff;
  display: flex;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.nav-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-img {
  height: 45px;
  width: auto;
  display: block;
}
.nav-links {
  display: flex;
  list-style: none;
  gap: 24px;
}

.nav-links li a {
  text-decoration: none;
  color: #0f172a;
  font-weight: 700;
  font-size: 15px;
  transition: color 0.3s;
}

.nav-links li a:hover { color: #3b82f6; }

.mobile-menu { display: none; }

/* =====================================================
   3. CATALOG GRID
   ===================================================== */
.catalog-section { padding: 130px 20px 80px; }
.catalog-header { text-align: center; margin-bottom: 50px; }
.en-title { font-size: 2.5rem; font-weight: 900; letter-spacing: 0.1em; color: #fff; }
.jp-subtitle { color: #94a3b8; font-size: 0.9rem; margin-top: 10px; }

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
  max-width: 1200px;
  margin: 0 auto;
}

.catalog-grid img {
  width: 100%;
  /* ★修正箇所：A4横置き（Landscape）の比率 1.414 / 1 に変更 */
  aspect-ratio: 1.414 / 1; 
  object-fit: cover;
  border-radius: 8px;
  background: #fff;
  padding: 8px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  cursor: pointer;
  transition: transform 0.3s, border-color 0.3s;
  border: 2px solid transparent;
  pointer-events: auto; /* クリックを確実に通す */
}

.catalog-grid img:hover { 
  transform: translateY(-8px); 
  border-color: #3b82f6;
}

/* =====================================================
   4. MOBILE (768px以下)
   ===================================================== */
@media screen and (max-width: 1024px) {
  .catalog-grid { grid-template-columns: repeat(2, 1fr); gap: 15px; }
  .en-title { font-size: 1.8rem; }

  .mobile-menu {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 22px;
    cursor: pointer;
    z-index: 1100;
  }

  .mobile-menu span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #0f172a;
    border-radius: 3px;
    transition: 0.3s;
  }

  .nav-links {
    position: fixed;
    top: 80px;
    right: -100%;
    width: 100%;
    height: auto;
    background-color: #0f172a;
    flex-direction: column;
    padding: 20px 0;
    transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1050;
    box-shadow: 0 10px 15px rgba(0,0,0,0.3);
  }

  .nav-links.active { right: 0; }

  .nav-links li { margin: 12px 0 !important; width: 100%; text-align: center; }
  .nav-links li a { color: #ffffff; font-size: 1.2rem; }

  /* ハンバーガーアニメーション（整理済み） */
  .mobile-menu.active span:nth-child(1) { transform: translateY(9.5px) rotate(45deg); background-color: #3b82f6; }
  .mobile-menu.active span:nth-child(2) { opacity: 0; }
  .mobile-menu.active span:nth-child(3) { transform: translateY(-9.5px) rotate(-45deg); background-color: #3b82f6; }
}

/* =====================================================
   5. VIEWER (拡大画面)
   ===================================================== */
#viewer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  display: none; /* JSで active がつくと flex になる */
  justify-content: center;
  align-items: center;
  z-index: 9999; /* 何があっても最前面 */
  cursor: zoom-out;
}

#viewer.active {
  display: flex !important;
}

#viewer img {
  max-width: 90%;
  max-height: 85%;
  object-fit: contain;
  box-shadow: 0 0 40px rgba(0,0,0,0.5);
  border: 1px solid rgba(255,255,255,0.2);
}

.close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: #fff;
  font-size: 50px;
  cursor: pointer;
  line-height: 1;
  z-index: 10000;
}


/* =====================================================
   5. FOOTER (index.htmlと完全統一)
   ===================================================== */
.footer-refined {
  background-color: #ffffff; /* 白背景 */
  color: #0f172a;           /* 紺色の文字 */
  padding: 80px 24px 40px;
  border-top: 1px solid #e2e8f0;
}

.footer-container {
  max-width: 1100px;
  margin: 0 auto;
}

.footer-upper {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
  margin-bottom: 60px;
}

.footer-brand {
  flex: 1;
  min-width: 280px;
}

.footer-logo {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 10px;
  letter-spacing: 0.05em;
}

.footer-email {
  font-size: 0.9rem;
  margin-bottom: 20px;
}

.footer-email a {
  color: #2563eb;
  text-decoration: underline;
}

.footer-contact-btn {
  display: inline-block;
  padding: 12px 30px;
  border: 1px solid #0f172a;
  color: #0f172a;
  font-size: 0.9rem;
  font-weight: 700;
  transition: all 0.3s;
  text-decoration: none;
}

.footer-contact-btn:hover {
  background-color: #0f172a;
  color: #ffffff;
}

.footer-address {
  text-align: right;
  line-height: 1.8;
  color: #475569;
}

.address-zip { font-weight: 700; font-size: 0.9rem; }
.address-text { font-size: 1rem; }
.address-tel { font-size: 0.9rem; margin-top: 10px; }

.footer-lower {
  border-top: 1px solid #f1f5f9;
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 0.8rem;
  color: #94a3b8;
}

.footer-links a {
  margin-right: 20px;
  color: #64748b;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: #0f172a;
}

.copyright {
  letter-spacing: 0.05em;
}

/* --- フッターのレスポンシブ --- */
@media (max-width: 768px) {
  .footer-upper {
    flex-direction: column;
    text-align: center;
  }
  
  .footer-address {
    text-align: center;
  }
  
  .footer-lower {
    flex-direction: column;
    text-align: center;
  }
  
  .footer-links a {
    margin: 0 10px;
  }
}