@charset "UTF-8";
/* CSS Document */

/* ============================================================
   リセット・基本設定
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ============================================================
   ★ レイアウトの核心 — body
   ============================================================
   body がスクロールコンテナになる。
   background-attachment: fixed で背景を画面に固定。
   スクロールしても背景は動かない。
   ============================================================ */
html {
  height: 100%;
}

body {
  /* ★ 背景を固定するための設定 */
  background-image: url('img/haikei.jpg');
	  
  /* ★ ここが最重要: 背景をビューポートに固定 */
  background-attachment: fixed;
  background-size: 2500px;

  /* ★ body をスクロールコンテナにする */
  overflow-y: auto;
  height: 100vh;

  font-family: 'Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
  color: #333;
  line-height: 1.7;
}


/* ============================================================
   ★ 中央コンテンツ — .wrap
   ============================================================
   固定幅で中央に配置。左右には body の背景が見える。
   スマホでは width: 100% になり、背景が隠れる。
   ============================================================ */
.wrap {
  width: 750px;
  max-width: 100%;
  margin: 0 auto;
  background: #f8f6f2;
  min-height: 100vh;
  position: relative;
}

/* ============================================================
   リセットとベーススタイル
   ============================================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  min-height: 100vh;
  padding: 2rem 1rem;
}

.container {
  max-width: 1000px;
  margin: 0 auto;
}

h1 {
  text-align: center;
  color: #333;
  margin-bottom: 0.5rem;
  font-size: 2.5rem;
}

.subtitle {
  text-align: center;
  color: #666;
  margin-bottom: 2rem;
  font-size: 0.95rem;
}

/* ============================================================
   キャラクター紹介セクション
   ============================================================ */

.chara-section {
  background: white;
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  margin-bottom: 2rem;
}

/* 中央の大きな画像エリア */
.chara-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 2rem;
  perspective: 1000px;
}

#main-visual {
  width: 100%;
  max-width: 400px;
  height: auto;
  margin-bottom: 1.5rem;
  /* ★ふわっと切り替わる設定 */
  transition: opacity 0.3s ease, transform 0.3s ease;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

/* 画像が消える時のクラス */
.fade-out {
  opacity: 0;
  transform: scale(0.95);
}

/* キャラクターの説明文 */
.chara-description {
  text-align: center;
  color: #333;
  font-size: 0.95rem;
  line-height: 1.8;
  max-width: 500px;
  transition: opacity 0.3s ease;
}

/* ============================================================
   アイコン一覧（2段構成）
   ============================================================ */

.chara-icons {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.chara-icons-row {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.icon-item {
  width: 120px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  perspective: 1000px;
}

/* アイコンの画像 */
.icon-item img {
  width: 100%;
  height: auto;
  margin-bottom: 0.5rem;
  /* ★回転アニメーション */
  transition: transform 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.1));
  border-radius: 10px;
}

/* ★クリック後に回転するクラス */
.icon-item.rotate .icon-normal,
.icon-item.rotate .icon-active {
  transform: rotateY(360deg);
}

/* ホバー時の効果 */
.icon-item:hover img {
  filter: drop-shadow(0 4px 12px rgba(255, 105, 180, 0.3));
  transform: scale(1.05);
}

/* ============================================================
   レスポンシブ対応
   ============================================================ */

@media (max-width: 768px) {
  h1 {
    font-size: 1.8rem;
  }

  .chara-section {
    padding: 1.5rem;
  }

  #main-visual {
    max-width: 300px;
  }

  .chara-icons-row {
    gap: 1.5rem;
  }

  .icon-item {
    width: 100px;
  }

  .chara-description {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 1.3rem;
  }

  .chara-section {
    padding: 1rem;
  }

  #main-visual {
    max-width: 250px;
  }

  .chara-icons-row {
    gap: 1rem;
  }

  .icon-item {
    width: 80px;
  }

  .chara-description {
    font-size: 0.85rem;
    line-height: 1.6;
  }
}

/* ============================================================
   ボタン
   ============================================================ */
.button{
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.button-3 {
  margin:20px;
  width: 140px;
  height: 45px;
  font-family: 'Roboto', sans-serif;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  font-weight: 500;
  color: #000;
  background-color: #fed74b;
  border: none;
  border-radius: 45px;
  box-shadow: 0px 8px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease 0s;
  cursor: pointer;
  outline: none;
  }

.button-3:hover {
  background-color: #a44f16;
  box-shadow: 0px 15px 20px rgba(255, 165, 0 , 0.4);
  color: #fff;
  transform: translateY(-7px);
}


/* ============================================================
   フッター
   ============================================================ */
.footer {
  background: #ffaf14;
  color: rgba(255,255,255,0.5);
  text-align: center;
  padding: 2rem;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
}
