@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: 100px;
  margin-bottom: -150px;
}

.four-traditions {
  max-width: 800px;     /* 正方形にしやすいサイズ */
  margin: 180px auto 80px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  padding: 0;
  border-radius: 12px;
  overflow: hidden;     /* ← 内側の角を切り落とす */
  box-shadow: 6px 6px 24px rgba(0,0,0,0.35);
}

/* 共通カード */
.tradition-card {
  position: relative;
  min-height: 260px;
  display: flex;
  justify-content: center; /* 横中央 */
  align-items: center;     /* 縦中央 */
  background-size: cover;
  background-position: center;
  text-decoration: none;   /* a の下線消し */
}


/* 背景オーバーレイ */
.tradition-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.35);
  transition: background 0.3s ease;
}

.tradition-card:hover::before {
  background: rgba(0,0,0,0.6);
}

/* ホバー */
.tradition-card:hover {
  transform: none; 
  box-shadow: inset 0 0 0 rgba(0,0,0,0);
}

.tradition-card:hover::before {
  background: rgba(0,0,0,0.55);
}

/* 中身を前面に */
.tradition-card h2,
.tradition-card ul,
.tradition-card li,
.tradition-card a {
  position: relative;
  z-index: 1;
}

/* 見出し */
.tradition-card h2 {
  text-align: center;
  font-size: 1.8rem;
  margin-bottom: 20px;
  color: #fff;
  text-shadow: 2px 2px 6px rgba(0,0,0,0.7);
}

/* リンク */
.tradition-card ul {
  list-style: none;
  padding: 0;
  text-align: center;
}

.tradition-card li {
  margin-bottom: 10px;
}

.tradition-card a {
  color: #fff;
  font-weight: bold;
  text-decoration: none;
}

.tradition-card a:hover {
  text-decoration: underline;
  color: #ffd700;
}

/* 背景画像（サイトマップと共通） */
.tradition-card.nihon-buyo {
  background-image: url('../../img/nihon.jpg');
}

.tradition-card.koishiwara {
  background-image: url('../../img/koisi.jpg');
}

.tradition-card.mizuhiki {
  background-image: url('../../img/mizuhiki.jpg');
}

.tradition-card.sado {
  background-image: url('../../img/sadou.jpg');
}