@charset "UTF-8";

body {
  text-align: center;
  background-color: #EDF1F3;
  font-family: "Noto Serif JP", serif;
}

header {
  background-color: #f0be89;
}

.logo {
  position: fixed;   /* ハンバーガーと同じく固定 */
  top: 20px;
  left: 20px;        /* 左上に配置 */
  width: 250px;       /* 好きなサイズに調整 */
  height: auto;      /* 縦横比を維持 */
  z-index: 30;       /* ハンバーガーより前面に出すなら大きめに */
}

@media screen and (max-width: 768px) {
  .menu {
    width: 85vw;          /* 画面幅に応じて */
    padding: 15px;
  }

  .menu ul {
    margin-top: 40px;
  }

  .menu li {
    font-size: 1rem;
  }
}

@media screen and (max-width: 480px) {
  .menu {
    width: 100vw;         /* スマホは全幅 */
  }

  .menu li {
    font-size: 0.95rem;
  }
}

.menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 300px;
  height: 100%;
  background-color: #eee8aa;
  color: #333;
  transition: right 0.3s ease;
  padding: 20px;
  box-sizing: border-box;
  z-index: 10;
  overflow-y: auto;
  box-shadow: -4px 0 12px rgba(0,0,0,0.2);
}

.menu.open {
  right: 0;
}

.hamburger {
  position: fixed;
  top: 20px;
  right: 20px;
  width: 30px;
  cursor: pointer;
  z-index: 20;
}

.hamburger span {
  display: block;
  height: 3px;
  width: 100%;
  background-color: #c9c9c9;
  margin: 5px 0;
  transition: 0.4s;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

.menu ul {
  list-style-type: none;
  padding: 0;
  margin-top: 50px;
}

.menu li {
  padding: 10px 0;
  border-bottom: 1px solid #444;
}

.menu li a {
  color: #333;
  text-decoration: none;
  display: block;
}

/* アコーディオン用 */
.sub-items {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding-left: 15px;
}



.category.open .sub-items {
  max-height: 1000px;
}

.toggle { cursor: pointer; font-weight: bold; }


h1 {
  margin-top: 150px;
}

.sitemap-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  gap: 40px;
  margin-top: -60px;
  padding: 100px;
}

/* 共通カード */
.sitemap-card {
  padding: 20px;
  border-radius: 12px;
  color: #333;
  box-shadow: 2px 2px 12px rgba(0,0,0,0.15);
  transition: transform 0.3s, box-shadow 0.3s;
  background-size: cover;
  background-position: center;
  background-blend-mode: overlay;
  min-height: 180px;
  min-width: 200px;
  position: relative; /* 擬似要素の基準 */
  overflow: hidden;   /* 擬似要素をカード内に収める */
}

/* 背景画像オーバーレイ用 */
.sitemap-card.nihon-buyo::before,
.sitemap-card.koishiwara::before,
.sitemap-card.mizuhiki::before,
.sitemap-card.sado::before,
.sitemap-card.matome::before,
.sitemap-card.home::before,
.sitemap-card.supplement::before,
.sitemap-card.others::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.2);
  transition: background 0.3s ease;
  z-index: 0;
  border-radius: 12px;
}

.sitemap-card.nihon-buyo:hover::before,
.sitemap-card.koishiwara:hover::before,
.sitemap-card.mizuhiki:hover::before,
.sitemap-card.sado:hover::before,
.sitemap-card.matome:hover::before,
.sitemap-card.home:hover::before,
.sitemap-card.supplement:hover::before,
.sitemap-card.others:hover::before {
  background: rgba(0,0,0,0.5);
}

/* 背景画像ありカードの初期影（箱の影は少しだけ） */
.sitemap-card.nihon-buyo,
.sitemap-card.koishiwara,
.sitemap-card.mizuhiki,
.sitemap-card.sado,
.sitemap-card matome,
.sitemap-card.home,
.sitemap-card.supplement,
.sitemap-card.others {
  box-shadow: 2px 2px 8px rgba(0,0,0,0.2);
}

/* ホバー時は少し浮かせる */
.sitemap-card:hover {
  transform: translateY(-5px);
}


/* カード内テキストをオーバーレイより前面に出す */
.sitemap-card h2,
.sitemap-card ul,
.sitemap-card li,
.sitemap-card a {
  position: relative;
  z-index: 1;
}

.sitemap-card h2 {
  font-size: 1.4rem;
  margin-bottom: 12px;
  color: #fff;
  text-shadow: 2px 2px 5px rgba(0,0,0,0.6);
}

.sitemap-card ul {
  list-style: none;
  padding: 0;
}

.sitemap-card li {
  margin-bottom: 6px;
}

.sitemap-card a {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

.sitemap-card a:hover {
  color: #ffd700;
  text-decoration: underline;
}

.sitemap-card.home {
  background-image: url('../../img/sann.jpg');
}

.sitemap-card.nihon-buyo {
  background-image: url('../../img/nihon.jpg');
}

.sitemap-card.koishiwara {
  background-image: url('../../img/koisi.jpg');
}

.sitemap-card.mizuhiki {
  background-image: url('../../img/mizuhiki.jpg');
}

.sitemap-card.sado {
  background-image: url('../../img/sadou.jpg');
}

.sitemap-card.matome {
  background-image: url('../../img/matome.jpg');
}

.sitemap-card.supplement {
  background-image: url('../../img/itimatu.jpg');
}

.sitemap-card.others {
  background-image: url('../../img/higaki.jpg');
}
