/* style.css */

body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  margin: 0;
  padding: 0;
  background-color: #fff;
  color: #333;
}

/* メインコンテンツラッパー */
.wrapper {
  display: flex;
  justify-content: space-between;
  margin: 0 auto;
  padding-left: 2cm;
}

h1 {
  font-size: 1.5em;
}

h2 {
  color: #000;
  font-size: 26px;
  margin-bottom: 20px;
  padding-bottom: 12px;
}

.kopiki-image {
  width: 30%;
  padding: 10px;
}

a {
  font-weight: bold;
  color: #000;
}
/* キャラの写真 */
.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;
}

main {
  max-width: 960px;
  margin: auto;
  padding: 1em;
  background-color: #fff;
}

h3 {
  font-size: 20px;
  color: #34495e;
  margin: 30px 0 15px;
  padding-left: 12px;
  border-left: 4px solid #3498db;
}

p {
  margin-bottom: 15px;
  font-size: 16px;
}

ul,
ol {
  margin: 15px 0 15px 25px;
}

li {
  margin-bottom: 10px;
  font-size: 15px;
}

strong {
  color: #2c3e50;
  font-weight: 600;
}

#overview {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 40px;
  border-radius: 12px;
  text-align: center;
  margin-bottom: 40px;
}

#overview h2 {
  color: white;
  border-bottom: none;
  font-size: 32px;
  margin-bottom: 15px;
}

#overview p {
  font-size: 18px;
  opacity: 0.95;
}

.update-notice {
  background: #fff9e6;
  border-left: 5px solid #ffc107;
  padding: 20px;
  margin-bottom: 25px;
  border-radius: 8px;
}

.update-notice h3 {
  color: #f57c00;
  border: none;
  padding: 0;
  margin-bottom: 12px;
  font-size: 18px;
}

.update-notice ul {
  margin-left: 20px;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin: 25px 0;
}

.info-card {
  background: #f8f9fa;
  padding: 25px;
  border-radius: 10px;
  border: 2px solid #e9ecef;
  transition: transform 0.2s, box-shadow 0.2s;
}

.info-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.info-card h3 {
  margin-top: 0;
  font-size: 18px;
  border: none;
  padding: 0;
}

.faction-section {
  margin: 30px 0;
  border: 2px solid #e9ecef;
  border-radius: 10px;
  overflow: hidden;
}

.faction-header {
  padding: 20px 25px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 20px;
  font-weight: 600;
  transition: background 0.3s;
  user-select: none;
}

.faction-header:hover {
  opacity: 0.9;
}

.detective-faction .faction-header {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  color: white;
}

.impostor-faction .faction-header {
  background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
  color: white;
}

.visitor-faction .faction-header {
  background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
  color: #333;
}

.faction-header .arrow {
  transition: transform 0.3s;
  font-size: 14px;
}

.faction-header.active .arrow {
  transform: rotate(180deg);
}

.faction-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out;
  background: white;
}

.faction-content.active {
  max-height: 2000px;
  transition: max-height 0.5s ease-in;
}

.faction-content ul {
  padding: 25px 30px;
  margin: 0;
}

.faction-content li {
  padding: 12px;
  background: #f8f9fa;
  margin-bottom: 12px;
  border-radius: 6px;
  border-left: 4px solid #3498db;
}

.impostor-faction .faction-content li {
  border-left-color: #e74c3c;
}

.visitor-faction .faction-content li {
  border-left-color: #9b59b6;
}

.strategy-box {
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  padding: 30px;
  border-radius: 10px;
  margin: 25px 0;
}

.strategy-box h3 {
  margin-top: 0;
}

.conclusion {
  background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
  padding: 35px;
  border-radius: 12px;
  text-align: center;
}

.conclusion p {
  font-size: 16px;
  line-height: 2;
  margin-bottom: 10px;
}

@media (max-width: 1210px) {
  body {
    line-height: 1.4;
  }

  .wrapper {
    flex-direction: column; /* レイアウトを縦方向に */
    padding-left: 1cm;
    padding-right: 1cm;
  }
}

/* スマホ対応のレスポンシブデザイン */
@media (max-width: 768px) {
  .wrapper {
    padding-left: 5px;
    padding-right: 5px;
  }
  main {
    padding: 20px 15px;
  }

  #overview h2 {
    font-size: 26px;
  }

  .info-grid {
    grid-template-columns: 1fr;
  }
}
