@charset "utf-8";

#character-introduction {

  padding: 5rem;
}

.character-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-top: 120px;
}

article {
  text-align: center;
  border-radius: 30px;
  box-shadow: 0 4px 6px rgba(255, 204, 237, 0.3);
  transition: transform 0.3s ease-in-out;
}

article:hover {
  transform: translateY(-10px);
  scale: 1.05;
}

body{
  font-family: Arial, sans-serif;
}

h2{
  font-weight: bold;
  margin-bottom: 20px;
}

h3 {
  margin-top: 1rem;
  color: #e18194;
  font-weight: bold;
}

p {
  line-height: 1.6;
  color: #666;
text-align: center;
}

header.scroll #nav {
    overflow: hidden;
    clear: both;
    text-align: center;
}

.header{
  margin: 0px auto 0px;
  /*ヘッダーの幅*/
  width: 100%;
  /*ヘッダーの高さ*/
  height: 100px;
  /*ヘッダーの色*/
  background-color: #f2dde0;
}
.nav{
  font-family: "Calistoga", serif;
  font-weight: 400;
  font-style: normal;
  /*ナビゲーションの横位置*/
  justify-content: center;
  /*ナビゲーションの縦位置*/
  padding-top: 20px;
  box-sizing: border-box;}

ul{
  /*横並び*/
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  align-items: center;
}

.rgo{
  width: 108px;
  height: 62px;
}

a{
  /*ナビゲーションの色*/
  color: rgb(139, 73, 29);
  /*ナビゲーションの間隔*/
  margin-right: 60px;
}


h2 {
  margin-top: 30px;
  font-size: 40px;
  text-align: center;
  color: #754c24;
}

.rampart-one-regular {  
  font-family: Arial, sans-serif;
  font-weight: 400;
  font-style: normal;
}

.text{
  margin-top: 20px;
  margin-bottom: 30px;
  text-align: center;
}

.charcont{
  display: flex;
  margin-top: 120px;
  margin-bottom: 60px;
}

.charcont2{
  display: flex;
}

.choco{
  height: 467px;
  width: 360px;
  margin-left: 40px;
  margin-right: 40px;
}

.berry{
  margin-left: 40px;
  margin-right: 40px;
}

.button-group {
  display: flex;
  align-items: flex-start;
  margin-top: 20px; /* ヘッダーからの距離を調整 */
  margin-bottom: 20px;
}

.round-button {
  width: 80px;
  height: 80px;
  background-color: #f2dede;
  border-radius: 50%; /* 丸い形を確実にする */
  border: none;
  cursor: pointer;
  font-family: Arial, sans-serif;
  font-size: 16px;
  color: #333;
  transition: all 0.3s ease;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden; /* テキストが溢れた場合にボタンが変形しない */
  margin-right: 10px; /* 右側のスペースを追加 */
  margin-left: 100px; /* 左側のスペースを追加 */
}
.round-button2 {
  width: 80px;
  height: 80px;
  background-color: #f2dede;
  border-radius: 50%; /* 丸い形を確実にする */
  border: none;
  cursor: pointer;
  font-family: Arial, sans-serif;
  font-size: 16px;
  color: #333;
  transition: all 0.3s ease;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden; /* テキストが溢れた場合にボタンが変形しない */
  margin-right: 10px; /* 右側のスペースを追加 */
  margin-left: 100px; /* 左側のスペースを追加 */
}

.result {
  font-size: 18px;
  opacity: 0;
  transition: opacity 0.3s ease;
  word-wrap: break-word;
  max-width: 400px;
  min-height: 80px;
  padding: 10px 5px; /* 左右の余白を追加 */
  white-space: normal; /* テキストを折り返す */
  text-overflow: ellipsis; /* テキストが切り取られた場合に省略記号を表示 */
  overflow-x: hidden; /* 水平方向のスクロールを非表示 */
}

/* 特徴ボタンのための追加スタイル */
#btn3 .result {
  width: 100%;
  height: 80px;
}

/* スマートフォンサイズ（最大767px） */
@media (max-width: 767px) {
  .md-flex { flex-direction: column; }
  .md-justify-between { justify-content: center; }
  .grid { grid-template-columns: 1fr; font-size: 12px; }
}

/* タブレットサイズ（768px以上、1023px未満） */
@media (min-width: 768px) and (max-width: 1023px) {
  .md-flex { flex-direction: column; }
  .md-justify-between { justify-content: space-between; }
  .grid { grid-template-columns: 1fr 1fr; font-size: 14px; }
}

/* デスクトップサイズ（1024px以上） */
@media (min-width: 1024px) {
  .md-flex { flex-direction: row; }
  .md-justify-between { justify-content: space-between; }
  .grid { grid-template-columns: 1fr 1fr 1fr; font-size: 15px; }
}



/* フッダー */
.footer {
  padding: 2rem;
  font-size: 15px;
  color: #4b5564;
  background-color:  #f2dde0; 
}

/* フッターのロゴ部分 */
.footer__logo {
  display: inline-block;
  margin-bottom: 2rem;
}

/* ナビゲーションメニュー */
.footer__navi {
  list-style-type: none;
  padding-left: 0;
  font-family: "Calistoga", serif;
  font-weight: 400;
  font-style: normal;
}

.footer__navi2 {
  list-style-type: none;
  padding-left: 0;
}

.footer__navi li {
  margin-bottom: 0.75rem;
}

.footer__navi a {
  color: #8a5216;
  text-decoration: none;
}

/* グリッドレイアウト */
.grid {
  display: grid;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

/* メディアクエリ - スマートフォンサイズ */
@media (max-width: 767px) {
  .md-flex {
    flex-direction: column;
  }

  .md-justify-between {
    justify-content: center;
  }

  .grid {
    grid-template-columns: repeat(1, minmax(0, 1fr));
    font-size: 12px;
  }
}

/* テーブルタップデバイスサイズ */
@media (min-width: 768px) and (max-width: 1023px) {
  .md-flex {
    flex-direction: column;
  }

  .md-justify-between {
    justify-content: space-between;
  }

  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    font-size: 14px;
  }
}

/* デスクトップサイズ以上 */
@media (min-width: 1024px) {
  .md-flex {
    flex-direction: row;
  }

  .md-justify-between {
    justify-content: space-between;
  }

  .grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    font-size: 15px;
  }
}

