@charest "UTF-8";

html{
   font-size: 62.5%;
}
body{
  text-align:center;
  font-family: "Noto Serif JP", serif;
  background-color: #EDF1F3;
}

.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; }


header{
  background-size: cover;
  background-position: center;
  height: 40rem; /* 好みで調整 */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
  font-size:1.5rem;
  position: relative;
}

header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(20, 30, 60, 0.25);
  z-index: 1;
}

header > * {
  position: relative;
  z-index: 2;
}

.jp-title{
  margin-top:10rem;
  display: inline-block;
  writing-mode: vertical-rl;
  -webkit-writing-mode: vertical-rl;
  -ms-writing-mode: vertical-rl;
}
.en-title{
  margin-top:10px;
  font-family: "Georgia";
}
.content{
  margin-top:5rem;
  font-size:2rem;
}
hr{
  margin-top:1.5rem;
  width:80%;
  color="#C0C0C0";
}
.fade {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
  margin-bottom:5rem;
}

.fade.show {
  opacity: 1;
  transform: translateY(0);
}

.kaisetu{
  padding-top:5rem;
}
.nav-links {
  margin-top: 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
}

.page-nav {
  position: absolute;
  inset: 0;
  z-index: 6;
  display: flex;
  align-items: center;          /* 縦中央 */
  justify-content: space-between;
  padding: 0 6rem;              /* ← 画面端から離す量 */
  pointer-events: none;
}

.page-nav a {
  pointer-events: auto;
}

/* nav-links系ボタンを流用 */
.nav-arrow {
  position: relative;
  font-size: 4rem;
  padding: 3rem;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  pointer-events: auto;
  z-index: 10;
}

.nav-arrow::before {
  pointer-events: none;
}


.nav-arrow:hover::before {
  opacity: 1;
}

.nav-arrow:hover {
  background: none;
  transform: scale(1.15);
  transform: scale(1.15);
  background: none;
}

.nav-arrow.left::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to left,
    rgba(0,0,0,0),
    rgba(0,0,0,0.45)
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.nav-arrow.right::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(0,0,0,0),
    rgba(0,0,0,0.45)
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}




.btn {
  width: 22rem;
  padding: 1.2rem 2rem;
  background: #f5f0e6;        /* 和紙っぽいオフ白 */
  border: 2px solid #c7b8a6;  /* 柔らかい茶色 */
  border-radius: 8px;         /* 角を軽く丸める */
  text-decoration: none;
  color: #333;
  font-size: 1.8rem;
  font-weight: bold;
  transition: 0.25s ease;
}

.btn:hover {
  background: #e9dfd0;          /* ほんのり濃く */
  transform: translateY(-3px);  /* ふわっと浮く */
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}