/* ===== 共通リセット ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ===== ベースフォント ===== */
body, html {
  height: 100%;
  font-family: 'Helvetica Neue', Arial, sans-serif;
}

/* ==============================
   ヘッダー
================================ */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 2000;
  background-color: #fff;
  height: 80px;
  display: flex;
  align-items: center;
  padding: 0 40px;
}

/* ナビ */
nav {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

/* ===== ブランド名 ===== */
.brand .name-area {
  text-decoration: none;
  color: #000;
  font-size: 20px;
  font-weight: 600;
  white-space: nowrap;

  /* フォント変更 */
  font-family: 'Noto Serif JP', serif;
  letter-spacing: 0.08em;
}

/* ===== メニュー ===== */
nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 50px;
  padding-right: 10px;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
  /* ナビ英字フォント */
  font-family: 'Noto Serif JP', serif;
}
nav ul::-webkit-scrollbar {
  display: none;
}

nav ul li p {
  display: none;
}

nav ul li a {
  position: relative;
  display: inline-block;
  color: #000;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.3rem;
  white-space: nowrap;
  padding-bottom: 0.3rem;
  transition: color 0.2s;
  letter-spacing: 0.05em;
}

/* 下線アニメーション */
nav ul li a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background-color: #2e7344;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
nav ul li a:hover::after {
  transform: scaleX(1);
}

/* アイコンリンクは下線なし */
nav ul li a.icon-link::after {
  content: none;
}

nav ul li img {
  margin-top: 0.3rem;
  transition: transform 0.2s;
}
nav ul li img:hover {
  transform: scale(1.1);
}

/* ==============================
   ハンバーガーメニュー
================================ */
.hamburger {
  display: none;
  width: 30px;
  height: 20px;
  position: relative;
  cursor: pointer;
  z-index: 3000;
}

.hamburger span {
  position: absolute;
  width: 100%;
  height: 2px;
  background-color: #333;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.hamburger span:nth-child(1) { top: 4px; }
.hamburger span:nth-child(2) { bottom: 4px; }

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg);
  top: 50%;
}
.hamburger.active span:nth-child(2) {
  transform: rotate(-45deg);
  top: 50%;
  bottom: auto;
}

/* ==============================
   共通リンクアニメーション
================================ */
.site-link {
  position: relative;
  display: inline-block;
  color: #000;
  text-decoration: none;
  transition: color 0.3s ease;
}

.site-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background-color: #2e7344;
  transition: width 0.3s ease;
}

.site-link:hover::after {
  width: 100%;
}

/* ==============================
   フッター
================================ */
.footer {
  background-color: #444;
  color: #fff;
  text-align: center;
  padding: 1rem 0;
  font-size: 0.9rem;
}
.footer p {
  margin: 0;
}

/* ==============================
   レスポンシブ（900px）
================================ */
@media (max-width: 900px) {
  header { padding: 0 20px; }
  nav ul { gap: 30px; }
  nav ul li a { font-size: 14px; }
  .brand .name-area { font-size: 14px; }
}

/* ==============================
   レスポンシブ（600px）
================================ */
@media (max-width: 600px) {

  header {
    height: 70px;
    padding: 0 20px;
  }

  .hamburger {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
  }

  nav ul {
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    background: #525252f7;
    position: fixed;
    top: 0;
    right: 0;
    width: 60%;
    max-width: 400px;
    height: 100vh;
    padding: 100px 40px;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    z-index: 2000;
  }
  nav ul.show { transform: translateX(0); }

  nav ul li {
    display: flex;
    width: 100%;
    border-bottom: #7d7d7d solid 1px;
    margin-bottom: 20px;
  }

  nav ul li p {
    display: inline;
    margin: 0 10px 10px 0;
    color: #2e7344;
  }

  nav ul li a {
    font-size: 16px;
    color: #fff;
  }

  nav ul li a::after {
    display: none;
  }
}

