@charset "utf-8";

/*========================================
  ▼ ページタイトル（そのまま移植）
========================================*/
#page-title {
  width: 100%;
  font-size: 30px;
  padding: 150px 0 30px 0;
  text-align: center;
}

#page-title h1 {
  font-weight: 300;
}

#page-title p {
  padding-top: 20px;
  font-size: 20px;
 line-height: 3.0;
}

/*========================================
  ▼ ヘッダー（そのまま移植）
========================================*/
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  background-color: #ffffff;
}

.header-inner {
  color: #000000;
}

/*========================================
  ▼ グリッド部分を Flexbox に書き換え
========================================*/
.grid-container {
  margin-left: auto;
  margin-right: auto;
  max-width: 1300px;
}

/* 
  ・display: flex; flex-wrap: wrap; で中身を横並びにしつつ折り返し可能に
  ・gap: 80px; で Grid のときと同じ隙間を確保
  ・padding は上下左右それぞれ20pxずつ余白をつけて、もとの Grid と近い見た目に。
*/
.grid {
  display: flex;
  flex-wrap: wrap;
  gap: 80px;
  padding: 80px 20px;
}

/* 
  各「セル」にあたる要素（.fish や .about-fish がこれに該当）に対して、
  ・flex: 0 0 calc(50% - 40px);   ←  50% の幅から gap/2(＝80px÷2＝40px) を引いた横幅を指定
  ・height: 200px;              ← もとの grid-auto-rows: 200px に相当
*/
.grid > .fish,
.grid > .about-fish {
  flex: 0 0 calc(50% - 40px);
  height: 200px;
  /* 横並び時の高さ揃えを維持するため、あえて height を固定 */
}

/*========================================
  ▼ .fish 内部の調整（大きくは変わらず）
========================================*/
.fish {
  display: flex;
  align-items: center;
  background: linear-gradient(to top, #cae5f7 0%, rgba(255,255,255,0) 50%);
  /* 必要に応じて内側の余白を追加（見た目の調整用） */
  padding: 20px;
  box-sizing: border-box;
  text-align: left;
}

.fish img {
  height: 200px;
  width: auto;
  object-fit: contain;
}

/*========================================
  ▼ .about-fish の調整（もとの見た目をベースに）
========================================*/
.about-fish {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  text-align: center;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  margin-top: 80px; /* 元の .about-fish にあった上余白 */
}

.about-fish h2 {
  font-size: 35px;
}

.about-fish p {
  font-size: 20px;
  margin-top: 40px;
  margin-left: 100px;
  line-height: 1.5;
  text-align: left;
}

/*========================================
  ▼ フッター（そのまま移植）
========================================*/
.footer {
  color: #000000;
  background: #ffffff;
  padding-top: 0px;
  padding-bottom: 30px;
  display: flex;
}

.feedback-button {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  background-image: linear-gradient(to right, #aad1e3, #817ce0);
  color: rgb(0, 0, 0);
  font-weight: 300;
  padding: 0.75rem 1.25rem;
  border-radius: 9999px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease-in-out;
  z-index: 60;
  display: inline-flex;   /* 横並びを確実にする */
  align-items: center;
  gap: 0.4rem;            /* アイコンと文字の隙間を少し小さめに */
  text-decoration: none;
  white-space: nowrap;    
  font-size: 20px;  
}

.feedback-button:hover {
  background-image: linear-gradient(to right, #5b9cbc, #5851a4);
  transform: scale(1.05);
}

.feedback-button:focus {
  outline: none;
  box-shadow: 0 0 0 4px #a5b4fc;
}

.feedback-icon {
  width: 25px;   /* アイコンを少し小さく */
  height: 25px;
}

/*========================================
  ▼ モバイル（画面幅800px以下）対応
========================================*/
@media (max-width: 800px) {
  /* 
    1カラムに切り替え：子要素は幅100%、高さは auto に変更して
    縦に並ぶようにする
  */
  .grid {
    gap: 50px;
    padding: 40px 10px;
  }
  .grid > .fish,
  .grid > .about-fish {
    flex: 0 0 100%;
    height: auto;
  }

  /* .about-fish 内の文章は左右マージンを20pxに調整 */
  .about-fish p {
    margin-left: 20px;
    margin-right: 20px;
    font-size: 15px;
    margin-top: 10px;
    text-align: center;
  }

  /* ページタイトル文字サイズ調整 */
  #page-title {
    font-size: 20px;
  }
  #page-title p {
    font-size: 15px;
  }

  /* 画像は横幅100%、高さは自動で拡大縮小 */
  .fish img {
    height: 150px;
    width: auto;
  }

  /* 見出しサイズも縮小 */
  .about-fish h2 {
    font-size: 20px;
  }
}
