@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@300;400;500;600;700&display=swap");
body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  margin: 0;
  padding: 0;
  margin: auto;
  color: #333;
}

:root {
  --primary-bg: #ffffff;
  --secondary-bg: #f8f9fa;
  --card-bg: rgba(255, 255, 255, 0.95);
  --accent-gold: #d4af37;
  --accent-blue: #4a9eff;
  --text-primary: #2c2c2c;
  --text-secondary: #555555;
  --text-muted: #777777;
  --border-color: rgba(212, 175, 55, 0.3);
  --gradient-primary: linear-gradient(135deg, #d4af37, #f4d03f);
  --gradient-light: linear-gradient(135deg, #f8f9fa, #e9ecef);
  --shadow-gold: 0 0 20px rgba(212, 175, 55, 0.2);
  --shadow-light: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* メインコンテンツラッパー */
.wrapper {
  display: flex;
  justify-content: space-between;
  margin: 0 auto;
  padding-left: 0.5cm;
}

.konntent {
  margin-top: 2cm;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  top: 5px;
}

h1 {
  font-size: 1.5em;
}

h2 {
  color: #000;
}

a {
  font-weight: bold;
  color: #000;
}

.chat-image {
  width: 70%;
  padding: 10px;
}

.chat-mini-image {
  width: 40%;
  padding: 10px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

/* Header Styles */
.fade-in {
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
}

.title {
  font-size: 2rem;
  font-weight: 700;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
  text-shadow: var(--shadow-gold);
}

.subtitle {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

/* Navigation */
.nav-container {
  background: var(--card-bg);
  border-radius: 15px;
  padding: 1.5rem;
  margin-bottom: 3rem;
  border: 1px solid var(--border-color);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-light);
}

.nav-title {
  color: var(--accent-gold);
  font-weight: 600;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 0.5rem;
}

.nav-item {
  padding: 0.75rem 1rem;
  background: rgba(212, 175, 55, 0.1);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid transparent;
  font-size: 0.9rem;
}

.nav-item:hover {
  background: rgba(212, 175, 55, 0.2);
  border-color: var(--accent-gold);
  transform: translateY(-2px);
}

/* Card Styles */
.section-card {
  background: var(--card-bg);
  border-radius: 20px;
  padding: 2rem;
  margin-bottom: 2rem;
  border: 1px solid var(--border-color);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-light);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

.section-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
}

.section-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-gold);
}

.section-title {
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--accent-gold);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.section-subtitle {
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--accent-blue);
  margin: 2rem 0 1rem 0;
  padding-left: 1rem;
  border-left: 3px solid var(--accent-blue);
}

/* Content Styles */
.content-text {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  font-size: 1rem;
  line-height: 1.7;
}

.highlight-box {
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid var(--accent-gold);
  border-radius: 12px;
  padding: 1.5rem;
  margin: 1.5rem 0;
  position: relative;
}

.highlight-box::before {
  content: "💡";
  position: absolute;
  top: -10px;
  left: 20px;
  background: var(--card-bg);
  padding: 0 10px;
  font-size: 1.2rem;
}

/* List Styles */
.custom-list {
  list-style: none;
  padding: 0;
}

.custom-list li {
  background: rgba(248, 249, 250, 0.8);
  margin-bottom: 0.75rem;
  padding: 1rem 1.25rem;
  border-radius: 10px;
  border-left: 4px solid var(--accent-gold);
  transition: all 0.3s ease;
  position: relative;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.custom-list li:hover {
  background: rgba(248, 249, 250, 1);
  transform: translateX(5px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.custom-list li strong {
  color: var(--accent-gold);
  font-weight: 600;
}

.numbered-list {
  counter-reset: item-counter;
}

.numbered-list li {
  counter-increment: item-counter;
}

.numbered-list li::before {
  content: counter(item-counter);
  position: absolute;
  left: -15px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--gradient-primary);
  color: #ffffff;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: bold;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Grid Layouts */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.info-card {
  background: rgba(248, 249, 250, 0.9);
  border-radius: 15px;
  padding: 1.5rem;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.info-card:hover {
  border-color: var(--accent-gold);
  box-shadow: var(--shadow-gold);
  transform: translateY(-2px);
}

.info-card-title {
  color: var(--accent-blue);
  font-weight: 600;
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

/* Collapsible Sections */
.collapsible {
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid var(--accent-gold);
  border-radius: 10px;
  margin-bottom: 1rem;
  overflow: hidden;
}

.collapsible-header {
  background: rgba(212, 175, 55, 0.2);
  padding: 1rem 1.5rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  color: var(--accent-gold);
  transition: background 0.3s ease;
}

.collapsible-header:hover {
  background: rgba(212, 175, 55, 0.3);
}

.collapsible-content {
  padding: 1.5rem;
  display: none;
}

.collapsible.active .collapsible-content {
  display: block;
}

.collapsible-toggle::after {
  content: "▼";
  margin-left: auto;
  transition: transform 0.3s ease;
}

.collapsible.active .collapsible-toggle::after {
  transform: rotate(180deg);
}

/* Progress Indicators */
.skill-level {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1rem 0;
}

.skill-bar {
  flex: 1;
  background: rgba(228, 230, 235, 0.8);
  height: 8px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.skill-progress {
  height: 100%;
  background: var(--gradient-primary);
  border-radius: 10px;
  transition: width 0.3s ease;
}

.skill-label {
  color: var(--text-secondary);
  font-size: 0.9rem;
  min-width: 100px;
}

/* Image Styles */
.content-image {
  max-width: 100%;
  height: auto;
  border-radius: 15px;
  margin: 1.5rem 0;
  box-shadow: var(--shadow-light);
  transition: transform 0.3s ease;
}

.content-image:hover {
  transform: scale(1.02);
}

.image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

/* Warning/Alert Boxes */
.alert {
  padding: 1.5rem;
  border-radius: 12px;
  margin: 1.5rem 0;
  border-left: 4px solid;
}

.alert-warning {
  background: rgba(255, 193, 7, 0.1);
  border-color: #ffc107;
  color: #856404;
}

.alert-info {
  background: rgba(74, 158, 255, 0.1);
  border-color: var(--accent-blue);
  color: #004085;
}

.alert-success {
  background: rgba(40, 167, 69, 0.1);
  border-color: #28a745;
  color: #155724;
}

/* キャラの写真 */
.character-image {
  display: block;
  width: 180px;
  height: auto;
  margin: 20px auto;
  border-radius: 8px;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
}

.separator-line {
  border: none;
  border-top: 2px solid #ddd;
  margin: 20px auto;
  width: 90%;
  position: relative;
}

@media (max-width: 1210px) {
  body {
    line-height: 1.4;
  }

  .wrapper {
    flex-direction: column; /* レイアウトを縦方向に */
    padding-left: 5px;
    padding-right: 5px;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 1rem 0.5rem;
  }

  .section-card {
    padding: 1.5rem;
  }

  .nav-grid {
    grid-template-columns: 1fr;
  }

  .info-grid {
    grid-template-columns: 1fr;
  }

  .section-title {
    font-size: 1.5rem;
  }
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--secondary-bg);
}

::-webkit-scrollbar-thumb {
  background: var(--gradient-primary);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-gold);
}

/* Animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeInUp 0.6s ease-out;
}
