/* 基本設定 */
:root {
  --primary-color: #d6b370;
  --primary-dark: #a88c52;
  --primary-light: #f0d8a8;
  --secondary-color: #a4c3cf;
  --secondary-dark: #5d7d8a;
  --bg-dark: #1e2a38;
  --bg-darker: #0d0f14;
  --text-light: #ffffff;
  --text-dark: #2c2c2c;
  --accent-blue: #3a6e8c;
  --accent-blue-light: #5292b8;
  --accent-red: #8c3a3a;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  background: linear-gradient(180deg,
    rgba(13, 15, 20, 0.8) 0%,
    rgba(13, 15, 20, 0.8) 100%
  ),
  url('../img/background.png') no-repeat center center fixed;
  background-size: cover;
  font-family: 'Noto Serif JP', serif;
  color: var(--text-light);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* トップページ専用の背景スタイル */
body.index-page {
  background: linear-gradient(180deg,
    rgba(13, 15, 20, 0) 0%,
    rgba(13, 15, 20, 0) 100%
  ),
  url('../img/background.png') no-repeat center center fixed;
  background-size: cover;
}

body.index-page::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at top, rgba(214, 179, 112, 0) 0%, transparent 70%),
              radial-gradient(circle at bottom, rgba(0, 0, 0, 0) 0%, transparent 70%);
  pointer-events: none;
  z-index: 1;
}

body.index-page::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg,
    rgba(0, 0, 0, 0) 0%,
    transparent 20%,
    transparent 80%,
    rgba(0, 0, 0, 0) 100%
  );
  pointer-events: none;
  z-index: 1;
}

body.index-page header {
  background-color: rgba(13, 15, 20, 0.3);
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.2);
}

body.index-page main {
  background-color: rgba(13, 15, 20, 0.3);
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.2);
}

body.index-page .feature-card {
  background-color: rgba(13, 15, 20, 0.85);
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.3);
}

body.index-page .adventure-section {
  background-color: rgba(13, 15, 20, 0.85);
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.3);
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(
      circle at 50% 0%,
      rgba(214, 179, 112, 0.1) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 50% 100%,
      rgba(58, 110, 140, 0.1) 0%,
      transparent 50%
    );
  pointer-events: none;
  z-index: 0;
}

body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(13, 15, 20, 0.2) 0%,
    transparent 20%,
    transparent 80%,
    rgba(13, 15, 20, 0.2) 100%
  );
  pointer-events: none;
  z-index: 0;
}

h1, h2, h3, h4, .logo, .main-title, .subtitle, nav a {
  font-family: 'Cinzel', 'Noto Serif JP', serif;
  font-weight: 700;
}

/* ヘッダー */
header {
  background-color: rgba(14, 21, 29, 0.8);
  padding: 1em 2em;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid var(--primary-color);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.3);
}

.logo {
  display: flex;
  align-items: center;
  font-size: 1.8em;
  letter-spacing: 0.1em;
  color: var(--primary-color);
}

.emblem {
  width: 40px;
  height: 40px;
  background: url('../img/emblem.svg') no-repeat center;
  background-size: contain;
  margin-right: 10px;
}

nav {
  display: flex;
}

nav a {
  color: var(--secondary-color);
  text-decoration: none;
  margin: 0 1em;
  font-size: 1em;
  transition: color 0.3s, border-bottom 0.3s;
  padding-bottom: 0.3em;
  border-bottom: 2px solid transparent;
}

nav a:hover, nav a.active {
  color: var(--text-light);
  border-bottom: 2px solid var(--primary-color);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 3px;
  width: 100%;
  background-color: var(--primary-color);
  transition: all 0.3s ease;
}

/* メインコンテンツ - ホームページ */
.hero {
  height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.hero::before {
  display: none;
}

.hero-content {
  position: relative;
  text-align: center;
}

.main-title {
  font-size: 5em;
  letter-spacing: 0.1em;
  color: var(--primary-color);
  text-shadow: 0 0 10px rgba(214, 179, 112, 0.5);
  margin-bottom: 0.2em;
}

.title-separator {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 1em auto;
  width: 80%;
}

.separator-line {
  height: 2px;
  background-color: var(--primary-color);
  flex-grow: 1;
}

.separator-emblem {
  width: 40px;
  height: 40px;
  background: url('../img/emblem.svg') no-repeat center;
  background-size: contain;
  margin: 0 20px;
}

.subtitle {
  font-size: 1.5em;
  color: var(--secondary-color);
  margin-bottom: 1em;
}

.description {
  font-size: 1.2em;
  margin-bottom: 2em;
  color: var(--text-light);
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.cta-button {
  display: inline-block;
  padding: 0.8em 1.8em;
  border-radius: 3px;
  text-decoration: none;
  font-family: 'Cinzel', serif;
  font-weight: 700;
  letter-spacing: 0.05em;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.cta-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.1);
  transition: all 0.3s;
}

.cta-button:hover::before {
  left: 0;
}

.primary {
  background-color: var(--primary-color);
  color: var(--bg-darker);
  border: 2px solid var(--primary-color);
}

.primary:hover {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
}

.secondary {
  background-color: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.secondary:hover {
  background-color: rgba(214, 179, 112, 0.1);
}

/* 特徴セクション */
.features {
  display: flex;
  justify-content: center;
  gap: 2em;
  padding: 4em 2em;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
}

.feature-card {
  background: rgba(30, 42, 56, 0.1);
  padding: 1.5em;
  border-radius: 15px;
  text-align: center;
  flex: 0 1 300px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 2px solid rgba(214, 179, 112, 0.4);
  text-decoration: none;
  display: block;
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary-color);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.feature-card h3 {
  color: var(--primary-color);
  margin-bottom: 0.8em;
  font-size: 1.5em;
}

.feature-card p {
  color: var(--secondary-color);
}

/* 伝承プレビュー */
.lore-preview {
  display: flex;
  flex-wrap: wrap;
  padding: 4em 2em;
  background-color: rgba(13, 15, 20, 0.5);
}

.lore-image {
  flex: 1;
  min-width: 300px;
  background: url('../img/lore-image.png') no-repeat center;
  background-size: cover;
  border-radius: 5px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  min-height: 400px;
}

.lore-content {
  flex: 1;
  min-width: 300px;
  padding: 2em;
}

.lore-content h2 {
  color: var(--primary-color);
  font-size: 2em;
  margin-bottom: 1em;
  border-bottom: 2px solid var(--primary-color);
  padding-bottom: 0.3em;
  display: inline-block;
}

.lore-content p {
  margin-bottom: 1em;
  line-height: 1.8;
}

.read-more {
  display: inline-block;
  color: var(--primary-color);
  text-decoration: none;
  font-weight: bold;
  padding: 0.5em 0;
  border-bottom: 2px solid transparent;
  transition: all 0.3s;
}

.read-more:hover {
  border-bottom-color: var(--primary-color);
}

/* 世界観ページ */
.world-page .bg-effects {
  opacity: 0.8;
}

.world-intro {
  text-align: center;
  padding: 4em 2em 2em;
}

.page-title {
  font-size: 3.5em;
  color: var(--primary-color);
  margin-bottom: 0.3em;
}

.intro-text {
  max-width: 800px;
  margin: 2em auto;
  font-size: 1.2em;
  color: var(--secondary-color);
}

.world-content {
  display: flex;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2em 4em;
}

.world-nav {
  width: 160px;
  margin-right: 2em;
}

.nav-container {
  position: sticky;
  top: 100px;
  background-color: rgba(13, 15, 20, 0.7);
  border: 1px solid rgba(214, 179, 112, 0.3);
  border-radius: 5px;
  padding: 1em;
}

.world-nav h3 {
  color: var(--primary-color);
  margin-bottom: 0.8em;
  font-size: 1.3em;
  border-bottom: 1px solid var(--primary-color);
  padding-bottom: 0.4em;
}

.world-nav ul {
  list-style: none;
}

.world-nav li {
  margin-bottom: 0.6em;
}

.world-nav a {
  color: var(--secondary-color);
  text-decoration: none;
  transition: color 0.3s;
  display: block;
  padding: 0.2em 0;
  border-left: 2px solid transparent;
  padding-left: 0.5em;
  font-size: 1.1em;
  line-height: 1.3;
}

.world-nav a:hover {
  color: var(--primary-color);
  border-left-color: var(--primary-color);
}

.world-sections {
  flex: 1;
}

.world-section {
  margin-bottom: 5em;
  background-color: rgba(13, 15, 20, 0.5);
  border-radius: 5px;
  overflow: hidden;
  border: 1px solid rgba(214, 179, 112, 0.2);
}

.section-image {
  height: 250px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.section-image::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(13, 15, 20, 1), rgba(13, 15, 20, 0));
}

.history-image {
  background-image: url('../images/history.png');
}

.geography-image {
  background-image: url('../images/geography.png');
}

.magitech-image {
  background-image: url('../images/magitech.png');
}

.factions-image {
  background-image: url('../images/factions.png');
}

.races-image {
  background-image: url('../images/races.png');
}

.culture-image {
  background-image: url('../images/culture.png');
}

.population-image {
  background-image: url('../images/population.png');
}

.products-image {
  background-image: url('../images/products.png');
}

.section-content {
  padding: 2em;
}

.section-content h2 {
  color: var(--primary-color);
  font-size: 1.8em;
  margin-bottom: 0.2em;
  text-align: center;
  position: relative;
  padding-bottom: 0.3em;
}

.section-content h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 2px;
  background: linear-gradient(to right, transparent, var(--primary-color), transparent);
}

.section-content h3 {
  color: var(--secondary-color);
  margin: 1.5em 0 0.5em;
  font-size: 1.4em;
  text-align: left;
}

.section-content h3::before,
.section-content h3::after {
  display: none;
}

.section-content h4 {
  color: var(--primary-color);
  font-size: 1.3em;
  margin-bottom: 1em;
  font-family: 'Cinzel', serif;
}

.divider {
  height: 2px;
  width: 60px;
  background: linear-gradient(to right, transparent, var(--primary-color), transparent);
  margin: 0.8em auto 1.5em;
}

.section-content p {
  margin-bottom: 1em;
  line-height: 1.8;
}

/* フッター */
footer {
  background-color: rgba(14, 21, 29, 0.95);
  border-top: 2px solid var(--primary-color);
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3em 2em;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.footer-logo {
  display: flex;
  align-items: center;
  font-size: 1.5em;
  color: var(--primary-color);
  margin-bottom: 1em;
}

.emblem-small {
  width: 30px;
  height: 30px;
  background: url('../img/emblem.svg') no-repeat center;
  background-size: contain;
  margin-right: 10px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 1em;
}

.footer-links a {
  color: var(--secondary-color);
  text-decoration: none;
  margin-right: 1.5em;
  transition: color 0.3s;
  margin-bottom: 0.5em;
}

.footer-links a:hover {
  color: var(--primary-color);
}

.footer-info {
  width: 100%;
  color: var(--secondary-dark);
  margin-top: 2em;
  font-size: 0.9em;
  text-align: center;
}

/* レスポンシブデザイン */
@media (max-width: 1024px) {
  .main-title {
    font-size: 4em;
  }
  
  .world-content {
    flex-direction: column;
  }
  
  .world-nav {
    width: 100%;
    margin-right: 0;
    margin-bottom: 2em;
  }
  
  .nav-container {
    position: relative;
    top: 0;
  }
}

@media (max-width: 768px) {
  header {
    padding: 1em;
  }
  
  nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: rgba(14, 21, 29, 0.95);
    padding: 1em;
    flex-direction: column;
    align-items: center;
    border-bottom: 2px solid var(--primary-color);
  }
  
  nav.active {
    display: flex;
  }
  
  nav a {
    margin: 0.5em 0;
  }
  
  .nav-toggle {
    display: flex;
  }
  
  .main-title {
    font-size: 3em;
  }
  
  .lore-preview {
    flex-direction: column;
  }
  
  .lore-image {
    margin-bottom: 2em;
    min-height: 300px;
  }
  
  .footer-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .main-title {
    font-size: 2.5em;
  }
  
  .subtitle {
    font-size: 1.2em;
  }
  
  .cta-buttons {
    flex-direction: column;
    gap: 10px;
  }
  
  .feature-card {
    width: 100%;
  }
}

/* 人物紹介セクション */
.characters {
    padding: 40px 20px;
    background-color: rgba(13, 15, 20, 0.7);
    margin: 40px 0;
    border-top: 1px solid rgba(214, 179, 112, 0.3);
    border-bottom: 1px solid rgba(214, 179, 112, 0.3);
}

.characters h2 {
    text-align: center;
    color: var(--primary-color);
    font-size: 2em;
    margin-bottom: 30px;
    font-family: 'Cinzel', serif;
}

.character-grid {
    display: grid;
    grid-template-columns: repeat(3, 300px);
    gap: 2em;
    margin: 2em auto;
    background: transparent;
    max-width: 1200px;
    padding: 0 2em;
    justify-content: center;
}

.character-card {
    background: rgba(13, 15, 20, 0.7);
    border: 1px solid var(--primary-color);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    width: 300px;
}

.character-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(214, 179, 112, 0.3);
}

.character-image {
    width: 300px;
    height: 300px;
    background-size: cover;
    background-position: center;
    background-color: transparent;
    position: relative;
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin: 0 auto;
}

.character-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(to top, rgba(13, 15, 20, 0.9), transparent);
}

.character-info {
    padding: 1.5em;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.character-info h3 {
    color: var(--primary-color);
    font-size: 1.5em;
    margin-bottom: 10px;
    font-family: 'Cinzel', serif;
}

.character-info p {
    color: var(--secondary-color);
    line-height: 1.6;
    font-size: 0.95em;
    flex-grow: 1;
    margin-bottom: 0;
}

.character-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.character-card:hover .character-image {
    transform: scale(1.05);
}

.character-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.characters .read-more {
    display: block;
    text-align: center;
    margin-top: 30px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.characters .read-more:hover {
    color: var(--primary-light);
}

/* レスポンシブ対応 */
@media (max-width: 1024px) {
    .character-grid {
        grid-template-columns: repeat(2, 300px);
    }
}

@media (max-width: 768px) {
    .character-grid {
        grid-template-columns: 300px;
    }

    .character-image {
        width: 200px;
        height: 200px;
    }
}

/* レギュレーションページ */
.page-header {
    text-align: center;
    padding: 60px 20px;
    background-color: rgba(13, 15, 20, 0.7);
    border-bottom: 1px solid rgba(214, 179, 112, 0.3);
}

.page-header h1 {
    font-size: 3em;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.regulation-content {
    max-width: 1000px;
    margin: 40px auto;
    padding: 0 20px;
}

.regulation-section {
    background-color: rgba(30, 42, 56, 0.5);
    border: 1px solid rgba(214, 179, 112, 0.2);
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 30px;
}

.regulation-section h2 {
    color: var(--primary-color);
    font-size: 1.8em;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
}

.regulation-subsection {
    margin: 25px 0;
}

.regulation-subsection h3 {
    color: var(--secondary-color);
    font-size: 1.4em;
    margin-bottom: 15px;
}

.regulation-section ul {
    list-style: none;
    padding-left: 20px;
}

.regulation-section li {
    color: var(--text-light);
    margin-bottom: 10px;
    position: relative;
    padding-left: 20px;
}

.regulation-section li::before {
    content: '•';
    color: var(--primary-color);
    position: absolute;
    left: 0;
}

.supplement-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 15px;
}

.supplement-list li {
    background: rgba(13, 15, 20, 0.3);
    padding: 8px 12px;
    border-radius: 3px;
    border: 1px solid rgba(214, 179, 112, 0.1);
    font-size: 0.9em;
    line-height: 1.3;
}

.supplement-list li:hover {
    background: rgba(30, 42, 56, 0.6);
    border-color: var(--primary-color);
}

.note {
    color: var(--secondary-color);
    font-style: italic;
    padding: 15px;
    background-color: rgba(13, 15, 20, 0.3);
    border-left: 3px solid var(--primary-color);
    margin-top: 15px;
}

@media (max-width: 1024px) {
    .supplement-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .supplement-list {
        grid-template-columns: 1fr;
    }
}

.item-description {
    margin-top: 1.5em;
    padding: 1.5em;
    background-color: rgba(13, 15, 20, 0.3);
    border: 1px solid rgba(214, 179, 112, 0.2);
    border-radius: 5px;
}

.item-description h4 {
    color: var(--primary-color);
    font-size: 1.3em;
    margin-bottom: 1em;
    font-family: 'Cinzel', serif;
}

.item-description p {
    margin-bottom: 1.2em;
    line-height: 1.8;
    color: var(--secondary-color);
}

.item-description p:last-child {
    margin-bottom: 0;
}

/* 以下のアイコン関連のスタイルを削除 */
.feature-icon,
.magic-icon,
.adventure-icon,
.community-icon {
  display: none;
}

/* 地図ページ専用の背景スタイル */
body.map-page {
    background: linear-gradient(180deg,
        rgba(13, 15, 20, 0) 0%,
        rgba(13, 15, 20, 0) 100%
    ),
    url('../img/background.png') no-repeat center center fixed;
    background-size: cover;
}

body.map-page::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top, rgba(214, 179, 112, 0) 0%, transparent 70%),
                radial-gradient(circle at bottom, rgba(0, 0, 0, 0) 0%, transparent 70%);
    pointer-events: none;
    z-index: 1;
}

body.map-page::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg,
        rgba(0, 0, 0, 0) 0%,
        transparent 20%,
        transparent 80%,
        rgba(0, 0, 0, 0) 100%
    );
    pointer-events: none;
    z-index: 1;
}

body.map-page header {
    background-color: rgba(13, 15, 20, 0.3);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.2);
}

body.map-page main {
    background-color: rgba(13, 15, 20, 0.3);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.2);
}