/* ========================================================= */
/* 全体設定（背景、フォント、色など） */
/* ========================================================= */
body {
  margin: 0;
  font-family: 'Helvetica Neue', sans-serif;
  background-color: #fff;
  color: #333;
  line-height: 1.6;
}

/* ========================================================= */
/* ヒーローセクション（トップ画像＋見出し） */
/* ========================================================= */
.hero {
  background-image: url('jpg/hero.jpg');
  background-size: cover;
  background-position: center;
  color: white;
  text-align: center;
  /*padding: 100px 20px;*/
  position: relative;
  animation: zoomIn 8s ease-in-out infinite alternate;
   /* ▼ 追加 */
  display: flex;
  align-items: center;   /* 垂直方向に中央揃え */
  justify-content: center; /* 水平方向に中央揃え */
  height: 100vh; /* 背景を画面全体にする（任意） */
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(40,0,0,0.0), rgba(0,0,0,0.3));
  z-index: 1;
}

.hero-text {
  text-align: center;
  position: relative;
  z-index: 2;
  /*padding-top: 100px;*/
}



.hero h1, .hero p {
  position: relative;
  z-index: 2;
  opacity: 0;
  transform: translateY(30px);
  transition: all 1s ease-out;
}

@keyframes zoomIn {
  0% { background-size: 100%; }
  100% { background-size: 130%; }
}

/* フェードインアニメーション */
@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#hero-title.fade-in {
  animation: fadeSlideZoom 1s ease-out forwards;
  animation-delay: 0.8s; /* 遅延も指定可能 */
}

#hero-subtitle.fade-in {
  animation: fadeSlideZoom 1s ease-out forwards;
  animation-delay: 2s;
}

@keyframes fadeSlideZoom {
  0% {
    opacity: 0;
    transform: translateY(40px) scale(0.95);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.hero h1.visible,
.hero p.visible {
  animation: none !important;
}

/* ========================================================= */
/* ローディング画面 */
/* ========================================================= */
.loader {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 1s ease, visibility 1s ease;
}

.loader-text {
  font-size: 2em;
  color: white;
  font-weight: bold;
  animation: fadeInZoom 2s ease-in-out infinite alternate;
}

@keyframes fadeInZoom {
  0% { transform: scale(1); opacity: 0.7; }
  100% { transform: scale(1.1); opacity: 1; }
}

body.loaded .loader {
  opacity: 0;
  visibility: hidden;
}

/* ========================================================= */
/* ハンバーガーメニュー */
/* ========================================================= */
.menu-container {
 position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(8px);
  border-radius: 10px;
}

.hamburger {
  width: 30px;
  height: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
   /*
  padding: 6px;
  border-radius: 6px;
  backdrop-filter: blur(6px);
  background: rgba(255, 255, 255, 0.1);
  transition: background 0.3s ease;
  */
}

.hamburger span {
  display: block;
  height: 3px;
  background: #aaa;
  border-radius: 2px;
  transition: 0.3s ease;
}

.hamburger:hover {
  /*background: rgba(255, 255, 255, 0.2);*/
}

/* ドロップダウンメニュー */
.menu {
  display: none;
  position: absolute;
  top: 50px;
  right: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  padding: 20px 25px;
  border-radius: 10px;
  min-width: 200px;
}

.menu.show {
  display: block;
}

.menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.menu li {
  margin: 14px 0;
}

.menu a {
  color: white;
  text-decoration: none;
  font-size: 1em;
  font-weight: 600;
  display: inline-block;
}

.menu select {
  width: 100%;
  padding: 8px 10px;
  border-radius: 6px;
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
  font-size: 0.95em;
  backdrop-filter: blur(4px);
  border: none;
  appearance: none;
}

/* ========================================================= */
/* セクション（ABOUT, PRODUCTSなど） */
/* ========================================================= */
.section {
  opacity: 0;
  /*
  transform: translateY(30px);
  transition: all 0.8s ease-out;
  */
  transform: translateY(40px);
  transition: opacity 1.2s ease-out, transform 1.2s ease-out; /* ← 遅めに */
  padding: 60px 20px;
  max-width: 800px;
  margin: 0 auto;
}


.section.visible {
  opacity: 1;
  transform: translateY(0);
}


h2 {
  font-size: 1.8em;
  margin-bottom: 0.5em;
  color: #444;
}

footer {
  background: #f5f5f5;
  text-align: center;
  padding: 30px 0;
  font-size: 0.9em;
  color: #666;
}

/* ========================================================= */
/* NEWSカードレイアウト */
/* ========================================================= */
.news-cards {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  margin-top: 20px;
}

.card {
  background-color: #ffffff;
  color: #333;
  border: 1px solid #ddd;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
}

.card h3 {
  margin-top: 0;
  font-size: 1.2em;
  color: #111;
}

.card span {
  font-size: 0.85em;
  color: #666;
}

/* ========================================================= */
/* お問い合わせフォーム */
/* ========================================================= */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-width: 500px;
  margin-top: 20px;
}

.contact-form input,
.contact-form textarea {
  padding: 10px;
  font-size: 1em;
  border: none;
  border-radius: 6px;
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
  resize: vertical;
}

.contact-form button {
  padding: 10px;
  background-color: white;
  color: black;
  font-weight: bold;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.contact-form button:hover {
  background-color: #ddd;
}

/*
.contact-button {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 24px;
  background-color: white;
  color: #000;
  font-weight: bold;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.3s ease;
}

.contact-button:hover {
  background-color: #eee;
}
*/

.contact-button {
  display: inline-block;
  margin-top: 30px;
  padding: 14px 32px;
  background: linear-gradient(to right, #333, #666);
  color: #fff;
  font-size: 1em;
  font-weight: 600;
  border: none;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.contact-button:hover {
  background: linear-gradient(to right, #555, #888);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  transform: translateY(-2px);
}


/* ========================================================= */
/* PRODUCTS セクション */
/* ========================================================= */


.product-images {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 32px;
  justify-content: center;
}

.product-images img {
  max-width: 100%;
  width: 45%;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
  /*transition: transform 0.5s ease, opacity 0.5s ease;*/
  transition: transform 2s ease, opacity 2s ease;
}

.product-images img:hover {
  transform: scale(1.03);
  opacity: 0.9;
}



/* ========================================================= */
/* モバイル用メディアクエリ */
/* ========================================================= */
@media (max-width: 768px) {


@keyframes zoomIn {
  0% { background-size: 265%; }
  100% { background-size: 395%; }
}



  .hero {
    /*padding: 80px 15px;*/
    height: 100vh;
    background-size: cover;
    background-position: center;
    /*animation: zoomIn 7s ease-in-out infinite alternate;*/

  }


#hero-title.fade-in {  
  font-size: 1em;
  font-weight: 600;
  color: white;
}


#hero-subtitle.fade-in {
  font-size: 0.7em;
  color: white;
 
}


/*スマホセクション*/

  section {
    padding: 40px 15px;
  }

  h2 {
    font-size: 1.5em;
  }

  .loader-text {
    font-size: 1.2em;
  }
  
  .product-images {
    flex-direction: column;
    align-items: center;
  }

  .product-images img {
    width: 90%;
  }
  
  
  
  

  .menu {
    padding: 15px 20px;
  }

  .menu li {
    margin: 17px 0;
  }

  .menu a {
    font-size: 0.95em;
  }

  .menu select,
  #lang-select {
    font-size: 0.9em;
    padding: 5px 8px;
  }
}


