/* Google Fonts */
@import url('https://fonts.googleapis.com/css?family=Noto+Sans+JP:400,700&display=swap');

/* ------------------------------
   基本スタイル
------------------------------ */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding-top: 90px;
  padding-left: 24px;
  padding-right: 24px;
  padding-bottom: 160px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  font-family: 'Noto Sans JP', '游ゴシック', serif;
  color: #222;
  background: url('image-test/beauty_image.png') no-repeat center center / cover;
  background-attachment: fixed;
}

main {
  flex: 1;
}

/* ------------------------------
   ヘッダー
------------------------------ */
header {
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.6);
  border-bottom: 1.5px solid #ddd;
}

h1 {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 700;
}

/* ------------------------------
   ナビゲーション
------------------------------ */
nav ul {
  list-style: none;
  margin: 0;
  display: flex;
  gap: 18px;
}

nav ul li {
  font-size: 14px;
  font-weight: 500;
}

nav ul li a {
  color: #5a7c4a;
  font-weight: 600;
  border-radius: 8px;
  padding: 2px 10px;
  transition: background 0.2s, color 0.2s;
}

nav ul li a:hover {
  background: #eaf7e1;
  color: #8fcf7a;
}

/* ------------------------------
   カードグリッド
------------------------------ */
.cardUnit {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 40px;
  margin-bottom: 100px;
  text-align: center;
}

.card {
  background: rgba(255, 255, 255, 0.8);
  border-radius: 16px;
  border: 1.5px solid #eee;
  padding: 18px 8px 22px;
  transition: transform 0.18s, box-shadow 0.18s;
}

.card:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 8px 32px rgba(0,0,0,0.13);
}

.card img {
  width: 100%;
  max-width: 160px;
  height: 160px;
  object-fit: contain;
  margin: 0 auto 12px;
  border-radius: 12px;
  background: #f8f8f8;
  border: 2px solid #eee;
}

/* ------------------------------
   フッター
------------------------------ */
footer {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100%;
  background: rgba(247, 247, 250, 0.95);
  border-top: 1.5px solid #e0e0e0;
  padding: 18px 0 12px;
  text-align: center;
  font-size: 0.9rem;
  z-index: 900;
}

.footer-links-row {
  display: flex;
  justify-content: center;
  gap: 32px;
  max-width: 900px;
  margin: 0 auto 10px;
}

.footer-links-row a {
  color: #5a7c4a;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 2px 10px;
  border-radius: 8px;
}

.footer-company-info {
  font-size: 0.8rem;
  color: #888;
  line-height: 1.7;
}

/* ------------------------------
   スマホ（600px以下）
------------------------------ */
@media (max-width: 600px) {

  body {
    padding-left: 6px;
    padding-right: 6px;
    font-size: 0.95rem;
  }

  header {
    padding: 12px 10px;
  }

  h1 {
    font-size: 1.3rem;
    white-space: nowrap;
  }

  nav ul {
    flex-direction: column;
    gap: 10px;
    align-items: center;
  }

  nav ul li {
    font-size: 0.9rem;
  }

  .cardUnit {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 18px;
    margin-bottom: 40px;
  }

  .card img {
    max-width: 120px;
    height: 120px;
  }

  footer {
    font-size: 0.8rem;
  }

  .footer-links-row {
    flex-direction: column;
    gap: 10px;
  }

  .footer-links-row a {
    font-size: 0.75rem;
    padding: 2px 6px;
  }
}