* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.html {
    scroll-behavior: smooth;
}


body{
    font-family: 'Noto Sans JP', sans-serif;
    background-color: #0d001a;
    color: #eee;
    line-height: 1.8;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url('images/bg1.png');
  background-size: cover;
  background-position: center;
  opacity: 0.3;

  /* ここが超重要！ */
  z-index: -1;              /* 後ろに下げる */
  pointer-events: none;     /* クリック判定を無効化 */
}


.section {
    padding: 4rem 2rem;
    max-width: 960px;
    margin: 0 auto;
    text-align: center;
}

.header {
    background-color: rgba(26, 0, 51, 0.75);
    backdrop-filter: blur(4px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 2rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.6rem;
    color: #b388ff;
}

.logo-img {
    height: 80px;
    width: auto;
    display: block;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.menu-toggle .bar {
    width: 25px;
    height: 3px;
    background-color: #b388ff;
    margin: 4px 0;
    transition: 0.4s;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

.nav-links a {
    color: #eee;
    text-decoration: none;
    transition: color 0.3s;
}

.nav-links a:hover {
    color:#b388ff;
}


.menu-toggle {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    z-index: 1001;
}

.nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 60px;
    right: 20px;
    background:#2a0047;
    padding:1rem;
    border-radius: 8px;
    z-index: 1000;
}

.nav-links.active {
    display: flex;
}


.hero {
    text-align: center;
    color: #eee;
    padding-top: 120px;

.hero-content {
    display: flex;
    flex-direction: column;     /* 縦に並べる */
    justify-content: center;    /* 上下中央 */
    align-items: center;        /* 左右中央 */
    text-align: center;
    width: 100%;
    gap: 0.7rem;
    margin-top: 1.5rem; /* キャッチコピーを少し下げてバランス調整 */
}
.hero-image {
    display: block;
    width: 100%;
    max-width: 90%;        /* 画面幅の9割までOKにする */
    height: auto;
    margin: 1rem auto 0;   /* margin-top じゃなく margin にする */
}
}


.catch {
  font-family: "Cinzel", serif;
  font-size: 3rem;
  color: #e7d4ff;

  text-align: center;
  letter-spacing: 0.08em;

  /* 内側発光 */
  text-shadow:
    0 0 8px rgba(200, 140, 255, 1),
    0 0 18px rgba(160, 80, 255, 0.9),
    0 0 38px rgba(120, 40, 255, 0.85),
    0 0 70px rgba(90, 0, 160, 0.8);
  
  position: relative;
  margin-top: 2rem;
}

/* 魔法陣風 下ライン */
.catch::after {
  content: "";
  display: block;
  width: 220px;
  height: 6px;
  margin: 0.7rem auto 0;

  background: linear-gradient(
    90deg,
    rgba(160, 80, 255, 0) 0%,
    rgba(220, 180, 255, 1) 50%,
    rgba(160, 80, 255, 0) 100%
  );
  filter: blur(3px);
  border-radius: 999px;
}

/* 魔力エフェクト（粒子） */
.catch::before {
  content: "";
  position: absolute;
  top: -25px;
  left: 50%;
  width: 180px;
  height: 180px;
  transform: translateX(-50%);
  background: radial-gradient(
    circle,
    rgba(160, 80, 255, 0.18),
    rgba(90, 0, 160, 0.05),
    transparent 70%
  );
  filter: blur(16px);
  animation: pulse 3s infinite ease-in-out;
  z-index: -1;
}

/* ゆっくり脈動 */
@keyframes pulse {
  0% { opacity: 0.5; transform: translateX(-50%) scale(1); }
  50% { opacity: 0.9; transform: translateX(-50%) scale(1.15); }
  100% { opacity: 0.5; transform: translateX(-50%) scale(1); }
}



@keyframes magicLine {
    0%, 100% {
        transform: scaleX(1);
        opacity: 0.85;
    }
    50% {
        transform: scaleX(1.4);
        opacity: 1;
    }
}





@keyframes fadeInText {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.about-text {
    text-align: center;
    margin: 0 auto;
    max-width: 600px;
}

.about-line {
    opacity: 0;
    animation: fadeInText 0.8s ease-out forwards;
    text-align: center;
}

.about-line:nth-child(1) { animation-delay: 0.2s;}
.about-line:nth-child(2) { animation-delay: 0.6s; }
.about-line:nth-child(3) { animation-delay: 1.0s; }
.about-line:nth-child(4) { animation-delay: 1.4s; }
.about-line:nth-child(5) { animation-delay: 1.8s; }
.about-line:nth-child(6) { animation-delay: 2.2s; }
.about-line:nth-child(7) { animation-delay: 2.6s; }
.about-line:nth-child(8) { animation-delay: 3.0s; }
.about-line:nth-child(9) { animation-delay: 3.4s; }

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px,1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.gallery-grid img {
    width: 100%;
    border-radius: 8px;
    transition: transform 0.3s ease;
}
.gallery-grid img:hover {
    transform: scale(1.05);
}

.sns-links {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 1rem;
}

.sns-links a:hover {
    opacity: 0.7;
}

.contact-form input,

.contact-form textarea {
    width: 100%;
    padding: 0.8rem;
    margin-bottom: 1rem;
    border: none;
    border-radius: 5px;
}

.contact-form button {
    padding: 0.7rem 2rem;
    background-color: #b388ff;
    border: none;
    color: #fff;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
}

.contact-form button:hover {
    background-color: #a060ff;
}

@media (max-width: 768px) {
    .contact-form {
        padding: 1rem;
    }

    .contact-form input,
    .contact-form textarea {
    font-size: 1rem;
    }
}

.footer {
    text-align:  center;
    padding: 2rem;
    background-color: #1a0033;
    color: #aaa;
    font-size: 0.9rem;
}

.to-top {
    position: fixed;
    bottom:2rem;
    right: 2rem;
    background: #b388ff;
    color: #fff;
    border: none;
    padding: 0.7rem 1rem;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 10px #000;
}

@media (max-width: 768px) {
    body::before {
        background-size: cover;
        background-position: center top;
        opacity: 0.15;
    }
}

@media (max-width: 768px) {
  .section {
    padding: 2rem 1rem;
    max-width: 100%;
    width: 100%;
    text-align: center;
  }

  .logo-img {
    height: 32px;
  }

  .about-line

  .gallery-grid {
    justify-content: center;
  }

  .sns-links {
    justify-content: center;
  }

  .footer {
    text-align: center;
  }
}

/* ========== world.html & glossary.html 共通：カード風レイアウト ========== */

/* World / Glossary 共通のパネルデザイン */
.worldview,
.glossary {
  max-width: 960px;
  margin: 120px auto 60px;  /* ヘッダー分の上余白＋下余白 */
  padding: 2.5rem 1.8rem;
  color: #eee;
  background: rgba(8, 0, 24, 0.9);
  border-radius: 16px;
  border: 1px solid rgba(179, 136, 255, 0.35);
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.7);
  position: relative;
  z-index: 1;
}

/* うっすら魔法陣グラデーション（World/Glossary 共通） */
.worldview::before,
.glossary::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background:
    radial-gradient(circle at 10% 0%, rgba(179, 136, 255, 0.09), transparent 55%),
    radial-gradient(circle at 90% 100%, rgba(120, 80, 255, 0.16), transparent 55%);
  opacity: 0.9;
  z-index: -1;
}

/* タイトル（h1） */
.worldview h1,
.glossary h1 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  text-align: center;
  color: #e1b7ff;
  letter-spacing: 0.08em;
  text-shadow: 0 0 8px rgba(179, 136, 255, 0.8);
}

/* World 用のサブ見出し（期ごとのタイトル） */
.worldview h2 {
  font-size: 1.25rem;
  margin: 2.2rem 0 0.7rem;
  padding-left: 0.9rem;
  border-left: 3px solid #b388ff;
  color: #f3e6ff;
}

/* World 本文 */
.worldview p {
  margin-bottom: 0.9rem;
  line-height: 1.9;
  font-size: 0.98rem;
}

.worldview ul {
  margin: 0.5rem 0 1.2rem 1.4rem;
  padding-left: 0;
}

.worldview li {
  margin-bottom: 0.35rem;
  list-style: "◆ ";
}

/* 用語辞典の導入文 */
.glossary-intro {
  margin-bottom: 1.8rem;
  font-size: 0.98rem;
  line-height: 1.9;
  text-align: center;
}

/* 用語リスト */
.glossary-list {
  margin-top: 1rem;
}

.glossary-list dt {
  margin-top: 1.6rem;
  font-weight: 700;
  color: #f5e4ff;
  font-size: 1rem;
  border-left: 3px solid #b388ff;
  padding-left: 0.6rem;
}

.glossary-list dd {
  margin: 0.4rem 0 0.8rem 0.6rem;
  font-size: 0.95rem;
  line-height: 1.9;
}

/* Worldページ内の「用語はこちら」リンク */
.glossary-link {
  margin: 0.5rem 0 1.5rem;
  font-size: 0.95rem;
}

.glossary-link a {
  display: inline-block;
  margin-left: 0.4rem;
  padding: 0.25rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(179, 136, 255, 0.7);
  background: rgba(20, 0, 40, 0.6);
  color: #e1d2ff;
  text-decoration: none;
  font-size: 0.9rem;
  transition: 0.2s;
}

.glossary-link a:hover {
  background: rgba(179, 136, 255, 0.14);
  transform: translateY(-1px);
}

/* 戻るリンク（両ページ共通で使える） */
.back-link {
  margin-top: 2rem;
  text-align: right;
  font-size: 0.92rem;
}

.back-link a {
  color: #c7a6ff;
  text-decoration: underline;
}

.back-link a:hover {
  opacity: 0.8;
}

/* スマホ調整 */
@media (max-width: 768px) {
  .worldview,
  .glossary {
    margin: 100px 1rem 40px;
    padding: 2rem 1.2rem;
    border-radius: 12px;
  }

  .worldview h1,
  .glossary h1 {
    font-size: 1.7rem;
  }

  .worldview h2 {
    font-size: 1.05rem;
  }

  .worldview p,
  .glossary-intro,
  .glossary-list dd {
    font-size: 0.95rem;
    line-height: 1.8;
  }

  .glossary-list dt {
    font-size: 0.95rem;
  }
}
