/* 全体のリセット */
body {
  margin: 0; /* 余白を完全にリセット */
  padding: 0; /* 内側の余白もリセット */
  font-family: "Noto Sans JP", "Helvetica Neue", "Zen Kurenaido", "Meiryo",
    "Helvetica", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Arial",
    "Yu Gothic", sans-serif;
  overflow-x: hidden;
  background-color: #e6dfdb;
  color: #3e3e3e;
}

/* ヒーローセクション */
.hero {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible; /* アイコンがはみ出せるように設定 */
}

/* 肉球アイコン */
.menu-icon {
  position: fixed; /* スクロールしても固定される */
  top: clamp(2%, 4vw, 4%); /* 2%〜4vw〜4%で動的に調整 */
  right: clamp(55px, 8%, 77px); /* 最小10px、最大50px、ビュー幅に応じて変動 */
  width: 100px; /* アイコンサイズはそのまま */
  height: auto;
  cursor: pointer;
  z-index: 1001; /* アイコンを前面に表示 */
  display: flex; /* アイコンとテキストを縦並び */
  flex-direction: column;
  align-items: center; /* 水平中央揃え */
  justify-content: center; /* 垂直中央揃え */
  pointer-events: auto; /* クリック可能にする */
}

/* 肉球アイコンの画像 */
.menu-icon img {
  display: block;
  width: 100%; /* 親要素に合わせて表示 */
  height: auto;
}

/* 肉球アイコン下のテキスト */
.menu-icon #menuText {
  margin-top: 5px;
  font-size: clamp(12px, 1.5vw, 16px);
  color: rgb(161, 111, 111);
  text-align: center;
  white-space: nowrap;
}

/* 猫の腕メニュー */
.menu {
  position: fixed;
  top: -100%; /* 初期状態では隠す */
  right: 0;
  width: clamp(
    200px,
    25vw,
    250px
  ); /* 最小200px, ビューポート幅に応じて調整, 最大250px */
  height: 100%; /* 画面全体の高さ */
  background: url("../images/menuArm.svg") no-repeat center top;
  background-size: contain;
  z-index: 1000;
  transition: top 0.5s ease;
}

.menu.show {
  top: 0; /* メニュー表示時 */
}

/* メニュー内のリストスタイル */
.menu ul {
  list-style: none;
  margin: 180px 0 0; /* 猫の腕の肉球部分の下に配置 */
  padding: 0;
  text-align: center;
}
.menu ul li {
  margin-top: clamp(10px, 2vw, 20px);
  margin-bottom: clamp(10px, 2vw, 20px);
}

/* Noto Serif JPをメニュー項目に適用 */
.menu ul li a {
  /* フォントを適用 */
  /* font-optical-sizing: auto; */
  font-weight: 400;
  font-style: normal;
  text-decoration: none;
  color: #896a75;
  font-size: clamp(14px, 2vw, 18px);
  font-weight: bold;
  transition: color 0.3s;
  font-family: "Kaisei Decol", serif;
}

.menu ul li a:hover {
  color: #ff8b8b; /* ホバー時の色 */
}

/* ヒーロー画像 */
..hero-image {
  position: relative;
  width: 100%;
  height: auto;
  overflow: hidden;
}

.hero-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.container {
  text-align: center;
  margin: 20px;
}

.cats {
  display: flex;
  justify-content: center;
  margin: 20px;
}

.cat {
  width: 80vw;
  height: 45vw;
  max-width: 960px;
  max-height: 540px;
  cursor: pointer;
}

button {
  padding: 10px 20px;
  font-size: 16px;
  cursor: pointer;
}

.manga {
  width: 100%;
  max-width: 960px;
  margin: 0 auto 20px;
  padding: 10px;
}

/* 漫画画像の基本アニメーション */
.manga-image {
  width: 100%;
  display: block;
  margin: 150px 0; /* 上下に余白を追加 */
  opacity: 0; /* 初期状態で非表示 */
  transform: translateY(20px); /* 少し下にずらして非表示 */
  transition: opacity 0.6s ease, transform 0.6s ease; /* ふわっと現れるアニメーション */
}

.manga-image.visible {
  opacity: 1; /* 表示 */
  transform: translateY(0); /* 元の位置に戻る */
}
#mangaContainer2 {
  margin-bottom: -161px;
}

/* ボックスサイズの標準化 */
*,
*:before,
*:after {
  -webkit-box-sizing: inherit;
  box-sizing: inherit;
}

html {
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  font-size: 62.5%; /* 1rem = 10px相当 */
}

/* ボタンやリンクの基本スタイル */
.btn,
a.btn,
button.btn {
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.5;
  position: relative;
  display: inline-block;
  padding: 1rem 4rem;
  cursor: pointer;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-transition: all 0.3s;
  transition: all 0.3s;
  text-align: center;
  vertical-align: middle;
  text-decoration: none;
  letter-spacing: 0.1em;
  color: #212529;
  border-radius: 0.5rem;
}

/* 破線風ボタン */
a.btn-border {
  margin-bottom: 12px;
  padding: 10px;
  border: 2px solid #000;
  background: -webkit-radial-gradient(#000 15%, rgba(0, 0, 0, 0) 16%),
    -webkit-radial-gradient(#000 15%, rgba(0, 0, 0, 0) 16%), #fc0;
  background: radial-gradient(#000 15%, rgba(0, 0, 0, 0) 16%),
    radial-gradient(#000 15%, rgba(0, 0, 0, 0) 16%), #fc0;
  background-position: 0 0, 6px 6px;
  background-clip: border-box;
  background-origin: padding-box;
  background-size: 12px 12px;
  -webkit-transition: all 0.3s;
  transition: all 0.3s;
}

a.btn-border span {
  position: relative;
  display: block;
  padding: 1.25rem 3rem;
  color: #000;
  border: 2px solid #000;
  border-radius: 0.5rem;
  background: #fff;
}

a.btn-border:hover {
  background-position: 0 0, 8px 8px;
  background-size: 16px 16px;
}

/* 漫画コンテナの設定 */
.manga-container {
  position: relative;
  margin: 20px auto;
  width: 100%;
  max-width: 960px; /* 漫画画像の最大幅 */
}

/* 吹き出し画像 */
.bubble-image {
  position: absolute;
  width: 180px; /* 吹き出し画像の大きさ（調整可能） */
  height: auto;
}

/* 吹き出しの各位置指定 */
.top-center {
  top: -10%;
  left: 27%;
  transform: translateX(-50%);
}

.top-left {
  top: 10%;
  left: 5%;
}

.top-right {
  top: -11%;
  right: 21%;
}

.bottom-left {
  bottom: 64%;
  left: 5%;
}

.bottom-right {
  bottom: 70%;
  right: 1%;
}

/* 吹き出し初期状態（非表示） */
.bubble-image {
  width: 150px; /* 吹き出しのサイズ */
  opacity: 0;
  transform: translateY(30px);
  visibility: hidden;
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.bubble-image.visible {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
}

/* スタートボタンの中央寄せ */
.btn-engine-start {
  display: flex; /* Flexboxを使用 */
  justify-content: center; /* 水平中央寄せ */
  margin: 20px auto; /* 上下に余白を追加 & 横方向中央寄せ */
}

.footer {
  background-color: #594b47; /* お問い合わせフォームと同じ背景色 */
  color: #9b6d6d;
  text-align: center;
  padding: 73px;
}

.footer-content {
  max-width: 800px;
  margin: 0 auto;
}

.footer-content p {
  margin: 0;
  font-size: 16px;
}

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

/* --- タブレット (max-width: 992px) --- */
@media (max-width: 992px) {
  html {
    font-size: 58%; /* 1rem = 9.28px相当 */
  }

  .manga-image {
    margin: 120px 0;
  }

  .bubble-image {
    width: 140px;
  }

  /* ボタンのサイズ若干縮小 */
  .btn,
  a.btn-border,
  button.btn {
    font-size: 1.5rem;
    padding: 1rem 3rem;
  }
  #mangaContainer2 {
    margin-bottom: -131px;
  }
}

/* --- PC中画面 (max-width: 1200px) --- */
@media (max-width: 1200px) {
  html {
    font-size: 60%; /* 1rem = 9.6px相当 */
  }

  .cat {
    width: 70vw;
    height: 40vw;
  }
}

@media (max-width: 800px) {
  html {
    font-size: 55%;
  }
  #mangaContainer2 {
    margin-bottom: -131px;
  }
}

/* --- スマホ (max-width: 600px) --- */
@media (max-width: 600px) {
  html {
    font-size: 55%; /* 1rem = 8.8px相当 */
  }

  .cat {
    width: 90vw;
    height: 50vw;
  }

  .manga {
    padding: 5px;
  }

  .manga-image {
    margin: 100px 0; /* 余白をやや減らす */
  }

  #mangaContainer2 {
    margin-bottom: -105px;
  }

  /* 吹き出しのサイズを小さく */
  .bubble-image {
    width: 81px;
  }

  /* ボタンのサイズを調整 */
  .btn,
  a.btn-border,
  button.btn {
    font-size: 1.4rem;
    padding: 0.8rem 2rem;
  }

  .btn-engine-start {
    margin: 10px auto;
  }
}
