/* --- ヘッダー・フッター専用CSS --- */

/* ヘッダー・フッター全体の設定
================================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html, body {
  height: 100%;
}
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  font-family: 'M PLUS Rounded 1c', sans-serif;
}

/* ヘッダー ! 全体の設定
================================================== */
.site-header {
  width: 100%;
  background: #f7f5f2;
  border-bottom: 1px solid #ddd;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
.header-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
}

/* ヘッダー ! ロゴ
================================================== */
.logo-area {
  display: flex;
  align-items: center;
  margin-right: auto;
}

.logo-img {
  height: 44px;
  width: auto;
  display: block;
}

/* ヘッダー ! PC表示用ボタン
================================================== */
.nav-desktop {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.nav-link {
  text-decoration: none;
  border: 2px solid#555;
  color: #e8e6e1;
  background: #555;
  padding: 0.4rem 0.8rem;
  border-radius: 8px;
  transition: background 0.2s;
}
.nav-link:hover {
  color: #555;
  background: #e8e6e1;
}

/* ヘッダー ! スマホ表示用ハンバーガーボタン
================================================== */
.hamburger {
  display: none;
  width: 30px;
  height: 24px;
  position: relative;
  cursor: pointer;
}
.hamburger span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 4px;
  background: #555;
  border-radius: 2px;
  transition: transform 0.3s, top 0.3s, opacity 0.3s;
}
.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 10px; }
.hamburger span:nth-child(3) { top: 20px; }
.hamburger.open span:nth-child(1) {
  top: 10px;
  transform: rotate(45deg);
}
.hamburger.open span:nth-child(2) {
  opacity: 0;
}
.hamburger.open span:nth-child(3) {
  top: 10px;
  transform: rotate(-45deg);
}

/* ヘッダー ! ハンバーガー内メニュー
================================================== */
.nav-mobile {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(247,245,242,0.98);
  flex-direction: column;
  align-items: center;
  padding-top: 4rem;
  z-index: 999;
}
.close-btn {
  position: absolute;
  top: 1rem; right: 1rem;
  background: none;
  border: none;
  font-size: 2rem;
  color: #555;
  cursor: pointer;
}
.nav-mobile a {
  width: 80%;
  max-width: 300px;
  text-align: center;
  padding: 0.75rem;
  margin: 0.5rem 0;
  background: #555;
  color: #e8e6e1;
  text-decoration: none;
  border-radius: 8px;
  transition: background 0.2s;
}
.nav-mobile a:hover {
  background: #e8e6e1;
  color: #555;
}

/* フッター ! 全体の設定
================================================== */
.site-footer {
  width: 100%;
  /* グラデーション：左右を透明→中央色にフェード */
  background: linear-gradient(
    to right,
    rgba(245, 245, 245, 0) 0%,
    #f5f5f5 15%,
    #f5f5f5 85%,
    rgba(245, 245, 245, 0) 100%
  );
  /* 上ボーダーも淡くフェードさせる */
  border-top: 1px solid rgba(204, 204, 204, 0.5);
  text-align: center;
  padding: 20px 10px;
  text-align: center;
  font-size: 14px;
  margin-top: auto;
  box-sizing: border-box;
}

/* フッター ! ボーダーの左右をフェードイン */
.site-footer::before,
.site-footer::after {
  content: "";
  position: absolute;
  top: 0;
  height: 1px;
  width: 15%;
  background: linear-gradient(
    to right,
    rgba(204, 204, 204, 0.5),
    rgba(204, 204, 204, 0)
  );
}
.site-footer::before { left: 0; }
.site-footer::after {
  right: 0;
  transform: rotate(180deg);
}

/* フッター ! リンク一覧
================================================== */
.footer-nav {
  margin-bottom: 10px;
}

.footer-nav a {
  margin: 0 10px;
  color: #555;
  text-decoration: none;
  font-weight: 500;
}

.footer-nav a:hover {
  text-decoration: underline;
}

/* フッター ! コピーライト
================================================== */
.footer-copy {
  font-size: 12px;
  color: #999;
}

/* >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
                   スマホ表示対応                   
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< */
@media (max-width: 768px) {
  .nav-desktop { display: none; }
  .hamburger { display: block; }
  .nav-mobile.show { display: flex; }

  .footer-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
  }

  .footer-nav a {
    margin: 0;
  }
}
