/* styles.css */
body {
  font-family: Arial, sans-serif;
  background-color: #fff;
  padding: 0px;
  margin: 0px;
}
/* メインコンテンツラッパー */
.wrapper {
  display: grid;
  grid-template-columns: 3fr 1fr; /* メイン:サイドバー = 3:1 */
  margin: 0 auto;
  padding-left: 1cm;
}

h1 {
  font-size: 1.5em;
  text-align: center;
  margin-bottom: 20px;
  background: linear-gradient(90deg, #ff6b6b, #ee5a6f, #c44569);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

h2 {
  color: #000;
}

a {
  font-weight: bold;
  color: #000;
}

.pennsaki-image {
  display: block;
  width: 30%;
  max-width: 250px;
  height: auto;
  margin: 0 auto 20px;
  padding: 10px;
  border-radius: 8px;
}
/* キャラの写真 */
.character-image {
  display: block;
  width: 150px;
  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;
}

.konntent {
  padding-top: 20px; /* 上の余白 */
  padding-bottom: 20px; /* 下の余白 */
}

.konntent h1 {
  color: #333;
}

.konntent h2 {
  padding-top: 20px;
  padding-bottom: 20px;
}

.ranking-box {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
}

.ranking-item {
  display: flex;
  width: 400px;
  background: white;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.ranking-item img {
  width: 150px;
  height: auto;
}

.ranking-text {
  padding: 15px;
  text-align: left;
}

.ranking-text h3 {
  margin: 0;
  font-size: 18px;
  color: #222;
}

.ranking-text p {
  font-size: 14px;
  color: #555;
}

.ranking-text a {
  display: inline-block;
  margin-top: 10px;
  text-decoration: none;
  color: #007bff;
  font-weight: bold;
}

.intro {
  text-align: center;
  font-size: 1.1em;
  margin-bottom: 60px;
  color: #555555;
}

.feature-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
  margin: 40px 0;
}

.feature-card {
  background: linear-gradient(135deg, #fff5f5, #ffe8e8);
  border: 1px solid #ffcccb;
  border-radius: 12px;
  padding: 25px;
  transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(255, 107, 107, 0.3);
}

.feature-icon {
  font-size: 2.5em;
  margin-bottom: 15px;
  text-align: center;
}

.feature-title {
  font-size: 1.3em;
  font-weight: bold;
  margin-bottom: 12px;
  color: #c44569;
  text-align: center;
}

.feature-desc {
  color: #666666;
  font-size: 0.95em;
  text-align: center;
}

.mode-guide {
  background: linear-gradient(135deg, #f0e6ff, #e6d9ff);
  border-left: 5px solid #9d4edd;
  padding: 25px;
  margin: 30px 0;
  border-radius: 8px;
}

.mode-guide h3 {
  color: #7b2cbf;
  margin-bottom: 15px;
  font-size: 1.4em;
}

.step-list {
  list-style: none;
  counter-reset: step-counter;
}

.step-list li {
  counter-increment: step-counter;
  margin: 15px 0;
  padding-left: 50px;
  position: relative;
  color: #444444;
}

.step-list li::before {
  content: counter(step-counter);
  position: absolute;
  left: 0;
  top: 0;
  background: linear-gradient(135deg, #ff6b6b, #c44569);
  color: white;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

.tips-box {
  background: #fffef0;
  border: 2px dashed #ffd700;
  border-radius: 10px;
  padding: 20px;
  margin: 25px 0;
}

.tips-box strong {
  color: #d4a100;
  font-size: 1.1em;
}

.btn-primary {
  display: inline-block;
  background: linear-gradient(90deg, #ff6b6b, #ee5a6f);
  color: white;
  padding: 15px 35px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: bold;
  margin: 10px;
  transition: transform 0.3s, box-shadow 0.3s;
}

.btn-primary:hover {
  transform: scale(1.05);
  box-shadow: 0 5px 20px rgba(255, 107, 107, 0.4);
}

.gallery-preview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  margin: 30px 0;
}

.gallery-item {
  aspect-ratio: 1;
  background: linear-gradient(135deg, #ffe8e8, #f0e6ff);
  border: 2px solid #ffd4d4;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3em;
  transition: transform 0.3s;
  cursor: pointer;
}

.gallery-item img {
  width: 95%;
}

.gallery-item:hover {
  transform: scale(1.05) rotate(2deg);
}

@media (max-width: 1210px) {
  body {
    line-height: 1.4;
  }

  .wrapper {
    flex-direction: column; /* レイアウトを縦方向に */
    padding-left: 0cm;
    padding-right: 0cm;
    grid-template-columns: repeat(2, 1fr);
  }
}

/* スマホ対応のレスポンシブデザイン */
@media (max-width: 768px) {
  .wrapper {
    padding-left: 20px;
    padding-right: 20px;
    grid-template-columns: 1fr;
  }
}
