@charset "utf-8";

/* ＝＝＝＝＝＝＝＝＝＝ 基本 ＝＝＝＝＝＝＝＝＝＝ */

/* スクロールパディング */
html {
  scroll-padding-top: 160px;
}

@media (max-width: 800px) {
  html {
    scroll-padding-top: 80px;
  }
}

/* マージン、パディング */
*,
::before,
::after {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

/* フォントの指定・背景画像*/
body {
  font-family: 'Zen Kaku Gothic New';
  font-style: normal;
  color: #73727c;
  font-weight: 500;
  background-image: url(../images/imagesTop/ironone-background.png);
  background-repeat: repeat-y;
  background-size: 8%;
  background-position: 10% 0px;
}

/* 見出し */
h1,
h2,
h3 {
  color: #000;
}

/* 画像の最大幅 */
img {
  max-width: 100%;
}

/* リストの装飾 */
ul {
  list-style: none;
}

/* アンカー */
a,
a:link,
a:visited,
a:active {
  color: inherit;
  text-decoration: none;
  font-style: normal;
}

a:hover {
  opacity: 0.6;
}

/* コンテンツ幅の設定 */
.w-container {
  max-width: 1380px;
  width: 90%;
  margin-left: auto;
  margin-right: auto;
}

/* カード型デザイン、文字のバックグラウンドカラー */
.instagram-contents,
.photo,
.plan,
.timetable,
.price-table,
.trial-table,
.friend-table,
.form {
  background-color: #ffffff;
  border-radius: 20px;
}

/* テキスト背景 */
p,
.pro-dl,
.price-text-list {
  background: rgba(255, 255, 255, 0.5);
}

.button p,
.overview-text p,
.h1-p,
.confirm-text {
  background: none;
}

@media (min-width: 800px) {
  .ironone-first p {
    background: none;
  }
}

/* ＝＝＝＝＝＝＝＝＝＝ ヘッダー ＝＝＝＝＝＝＝＝＝＝ */

/* ヘッダー全体 */
.header {
  position: fixed;
  inset: 0;
  height: 160px;
  z-index: 9999;
  background-color: #ffffff;
  box-shadow: rgb(241, 241, 233) 0px 0px 15px -5px;
}

.header-container {
  max-width: 1380px;
  position: relative;
  width: 90%;
  margin-left: auto;
  margin-right: auto;
  padding-top: 10px;
}

/* アンカー　写真の余白を消してます */
.header-container img {
  vertical-align: bottom;
  width: 120px;
  height: 80px;
}

.header-container > *:first-child {
  padding-bottom: 20px;
}

/* ナビゲーション　均等揃え */
.header-container ul {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: black;
}

.nav li {
  color: #73727c;
}

.instagram-icon {
  padding-top: 16px;
  position: absolute;
  top: 5px;
  right: 5%;
}

.instagram-icon img {
  width: 200px;
  height: auto;
}

/* PC版ボタンの削除 */
.toggle-menu-button {
  padding: 0;
  outline: none;
  border: none;
  background: transparent;
  cursor: pointer;
  color: #aaa;
  font-size: 30px;
  display: none;
}

/* 開閉ボタンを一番上に設定 */
.open .toggle-menu-button {
  z-index: 110;
  color: #fff;
}

/* ボタン表示 */
.toggle-menu-button .fa-bars {
  display: revert;
}

.open .toggle-menu-button .fa-bars {
  display: none;
}

.toggle-menu-button .fa-times {
  display: none;
}

.open .toggle-menu-button .fa-times {
  display: revert;
}

/* PCの時非表示 */
.icon-item {
  display: none;
}

@media (max-width: 800px) {
  /* 800px以下の高さ */
  .header {
    height: 80px;
  }

  .header-container {
    padding-top: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
  }

  /* ナビゲーションの開閉方向と速度 */
  nav {
    position: fixed;
    inset: 0 -100% 0 100%;
    z-index: 100;
    background-color: #f1f1e9;
    transition: transform 0.3s;
  }

  /* 800px以下で表示 */
  .toggle-menu-button {
    display: block;
  }

  /* スライドメニュー表示 */
  .open .nav {
    transform: translate(-100%, 0);
  }

  /* 不要なスクロール防止 */
  .open body {
    /* position: fixed; */
    overflow: hidden;
  }

  /* 800px以下非表示 */
  .instagram-icon {
    display: none;
  }

  .icon-item {
    display: flex;
    gap: 30px;
    font-size: 25px;
  }

  .header-container ul {
    justify-content: center;
    color: #fff;
    flex-direction: column;
    height: 100%;
    gap: 40px;
  }
}

/* ＝＝＝＝＝＝＝＝＝＝ フッター ＝＝＝＝＝＝＝＝＝＝ */

/* フッターの中身 */
.footer-nav {
  text-align: center;
  gap: 8px;
}

.company-table {
  text-align: center;
  gap: 8px;
}

.footer-sns {
  text-align: center;
  font-size: 30px;
}

/* フッターグリッド（場所移動の記述） */
.footer {
  padding-top: 32px;
  background-color: #ffffff;
  box-shadow: rgb(241, 241, 233) 0px 0px 15px -5px;
}

.footer p {
  padding-top: 10px;
}

.company-table img {
  width: 100px;
  height: auto;
  padding-top: 10px;
}

.footer-container {
  line-height: 1.7;
  letter-spacing: 1px;
}

.footer-nav {
  grid-column: 1;
  grid-row: 1 / 2;
  /* サイト調整で消す */
  display: none;
}

.company-table {
  grid-column: 3;
  grid-row: 1 / 2;
}

/*アイコン調整*/
.footer-sns {
  grid-column: 3;
  grid-row: 2 / 3;
}

/* サイト調整 */
.footer-sns nav {
  display: contents;
}

.footer-sns ul {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.footer-container small {
  grid-column: 2;
  grid-row: 4;
}

.copy {
  text-align: center;
  padding-top: 10px;
}

@media (max-width: 800px) {
  /* 800px以下の高さ */
  .footer-container {
    display: block;
  }

  .footer-nav {
    display: none;
  }

  .footer-sns ul {
    justify-content: center;
    gap: 20px;
  }

  .copy {
    display: flex;
    justify-content: center;
  }
}

/* TOPページ */
.main-container {
  height: calc(100vh - 160px);
  overflow: hidden;
  align-items: center;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  background-image: url(../images/imagesTop/m_1.jpg);
  margin-top: 160px;
}

.main-img {
  height: calc(100vh - 160px);
}

/* テキスト左寄せ中央揃え */
.main-text {
  margin-top: 56px;
  font-size: 16px;
  font-weight: 400;
  text-align: center;
  display: block;
}

/* 左寄せ中央揃え */
.text-from {
  display: inline-block;
  text-align: left;
  padding-top: 32px;
}

.main-contents p {
  display: inline-block;
  text-align: left;
  padding-bottom: 56px;
}

.main-top {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
  margin-top: 56px;
}

@media (max-width: 800px) {
  .main-top {
    grid-template-columns: repeat(2, 1fr);
  }
}

.instagram-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 56px;
  padding-bottom: 56px;
}

.instagram-container p {
  font-weight: 400;
}

.instagram-container img {
  width: 400px;
}

.instagram-contents {
  border: solid 2px #73727c;
  border-radius: 20px;
  width: 100%;
  height: auto;
  padding: 20px;
  box-shadow: -20px 20px 0px -5px #f1f1e9;
}

.instagram-text {
  text-align: center;
  padding-bottom: 1em;
}

.instagram-contents:hover {
  transform: translateY(-5px);
}

.instagram-contents p {
  padding-bottom: 20px;
  text-align: center;
}

.instagram-contents img {
  width: 100%;
}

.inst-logo {
  margin-bottom: 8px;
  width: 200px;
}

.instagram-2 {
  max-width: 600px;
  margin: 0 auto;
}

/* お申込みボタンのデザイン */
.button-link {
  width: 300px;
  margin: 0 auto;
  color: #000;
}

.button {
  display: flex;
  align-items: center;
  width: 300px;
  height: 135px;
  background-color: #f1f1e9;
  border-radius: 20px;
  margin: 56px 0;
  padding: 1em;
}

.button img {
  width: 40%;
  height: auto;
  margin-left: 1em;
}

.button-text {
  text-align: center;
  font-size: 16px;
}

@media (max-width: 800px) {
  .main-container {
    margin-top: 80px;
    height: calc(100vh - 80px);
  }

  .main-contents {
    align-items: center;
  }

  .top {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px 25px;
  }
}

/* インフォメーションページ */
/*テキスト幅*/
.t-container {
  max-width: 900px;
  margin: 0 auto;
  width: 90%;
}

/* ヒーロー画像 */
.info {
  height: calc(100vh - 160px);
  width: 100%;
  background-image: url(../images/imagesInfo/info-hero.webp);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  margin-top: 160px;
}

/* 日記へのカラー */
.nikki {
  padding-top: 32px;
}

.nikki a {
  color: #e98080;
}

.ironone-first {
  padding-top: 56px;
}

.ironone-text {
  text-align: center;
  padding-bottom: 32px;
}

.ironone-first p {
  text-align: center;
}

.ironone-container {
  margin-top: 56px;
}

/*画像を横並び*/
.ironone-image {
  display: flex;
  justify-content: center;
  gap: 10px;
}

/*サイズ調整*/
.ironone-image img {
  width: calc((100% - 20px) / 3);
  height: auto;
  object-fit: cover;
}

/*疑似要素ラインの位置です*/
.sbtitle {
  position: relative;
  display: inline-block;
  padding-right: 1em;
  padding-top: 56px;
  padding-bottom: 56px;
  z-index: 3;
}

/*サブtitleに疑似要素でラインを引いてます*/
.sbtitle::after {
  content: '';
  position: absolute;
  background: #333;
  height: 1px;
  width: 30vw;
  top: 50%;
  left: 100%;
  transform: translateY(-50%);
  z-index: 2;
}

.info-image {
  background-image: url(../images/imagesInfo/about-ironone.webp);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  height: 50vh;
}

.info-txt {
  padding-bottom: 56px;
}

.info-txt p,
h3,
strong {
  line-height: 1.7;
  text-align: left;
}

.sbask {
  padding: 56px 0;
}

.plans h3 {
  text-align: center;
  margin-top: 24px;
  margin-bottom: 8px;
}

.gallery-image {
  text-align: center;
  display: block;
}

.gallery-container {
  display: block;
  padding-top: 56px;
}

.gallery-item {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.gallery-item img {
  width: 30%;
}

.gallery-itemb {
  display: flex;
  gap: 10px;
}

.gallery-itemb img {
  width: 25%;
}

.profile-container {
  max-width: 80vw;
  margin: 0 auto;
  border: solid 2px;
  border-radius: 20px;
  box-shadow: -20px 20px 0px -5px #f1f1e9;
}

.profile {
  padding-top: 56px;
}

.photo {
  padding: 3em;
}

.photo img {
  height: auto;
  border-radius: 10px;
}

.photo-text {
  line-height: 1.7;
  text-align: center;
  padding-top: 32px;
}

figcaption h3 {
  text-align: center;
}

.access {
  background-color: #f1f1e9;
  max-width: 100%;
  padding-bottom: 56px;
  line-height: 1.7;
}

.access h2 {
  padding-top: 56px;
}

.access p {
  background-color: inherit;
  padding-bottom: 20px;
}

.access-map span {
  border-bottom: solid 1px #333;
}

.sns-item {
  display: flex;
  gap: 20px;
  justify-content: center;
  padding-top: 56px;
}

.sns {
  width: 50px;
  height: auto;
  object-fit: cover;
  padding-bottom: 32px;
}

.text-area {
  padding-top: 56px;
  padding-bottom: 56px;
  line-height: 1.7;
  padding: 1em;
  padding-top: 56px;
}

@media (max-width: 800px) {
  .photo {
    padding: 1em;
  }

  .info {
    height: calc(100vh - 80px);
    margin-top: 80px;
  }

  .ironone-image {
    display: flex;
    flex-wrap: wrap;
  }

  .ironone-image img {
    width: 100%;
  }

  .gallery-item {
    justify-content: center;
    text-align: center;
    gap: 10px;
  }

  .gallery-item img {
    width: 45%;
  }

  .gallery-itemb {
    display: block;
  }

  .gallery-itemb img {
    width: 100%;
  }

  .gallery-container {
    display: block;
    padding-top: 32px;
  }

  .poro {
    height: auto;
  }

  .profile-container {
    height: auto;
  }
}

/* 子どもページの案内 */
/* すべての要素をセンタリングする */
.plans,
.plans-container p,
.kodomoh1,
.img-card {
  text-align: center;
}

/* h1下の余白 */
.kodomoh1 {
  margin-bottom: 56px;
}

/* プランカードの中身 */
.plan {
  width: 100%;
  max-width: 400px;
  border: 2px solid;
  border-radius: 20px;
  margin: 0 auto;
  padding: 16px 16px;
  box-shadow: -20px 20px 0px -5px #f1f1e9;
  border-radius: 20px;
}

/* カードの中身のクリック誘導 */
.kard-button {
  font-size: 14px;
  margin: 10px;
  text-align: right;
  border-top: solid 1px #000;
  padding-top: 10px;
  font-weight: 800;
}

/* ホバー時 */
.plan:hover {
  transform: translateY(-5px);
}

.img-card img {
  width: 90%;
  height: auto;
  margin-bottom: 8px;
}

.kubun {
  font-size: 14px;
  margin: 0 0 8px;
}

/* 曜日を横並びにする、間隔調整をする */
.youbi {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* プランカードの動き */
.plans-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 54px;
  margin-bottom: 56px;
}

@media (max-width: 1150px) {
  .plans-container {
    grid-template-columns: repeat(2, 3fr);
    gap: 24px;
    justify-items: center;
  }
}

@media (max-width: 800px) {
  /* ヘッダー分下げる */
  .main-Kodomo #hero {
    margin-top: 136px;
  }

  .plans-container {
    grid-template-columns: repeat(1, 3fr);
  }

  .plan {
    max-width: 320px;
  }
}

/* ギャラリーページへのボタン */
.gallery-link {
  margin-left: auto;
  width: 260px;
  margin-left: auto;
}

.gallery-link a {
  background-color: #f1f1e9;
  display: block;
  padding: 1em;
  border: 2px solid;
  border-radius: 20px;
}

.gallery-link:hover {
  transform: translateY(-5px);
}

/* ギャラリーページ */
/* ヘッダー分下げる */
.gallery-main {
  margin-top: 216px;
}

/* 背景画像を薄く入れる */
.gallery-body {
  background-image: url(../images/imagesGallery/gallery_background.jpg);
  background-color: rgba(255, 255, 255, 0.5);
  background-blend-mode: lighten;
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
}

/* IMGの大きさ */
figure img {
  object-fit: cover;
  display: block;
  height: auto;
}

/* IMGの動き */
.gallery-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  justify-items: center;
  gap: 8px;
}

/* 一つだけ縦横比調整*/
.gallery-list-item {
  aspect-ratio: 3/2;
}

@media (max-width: 1150px) {
  .gallery-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 800px) {
  .gallery-main {
    margin-top: 136px;
  }

  .gallery-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }
}

/* 各クラスのページ基本設定 */
.hero-img {
  width: 100%;
}

.overview {
  margin-top: 32px;
  padding: 8px;
  background-color: #f1f1e9;
}

.classh1 {
  font-size: 34px;
  text-align: center;
}

h2 {
  font-size: 24px;
  margin-top: 56px;
  margin-bottom: 24px;
  text-align: center;
}

/* ファーストビューの対象年齢の位置を中央に、下に余白 */
.h1-p {
  text-align: center;
  margin-bottom: 52px;
}

/* PC表示では以下の改行を無効 */
@media (min-width: 800px) {
  h1 br {
    display: none;
  }
}

/* 文章の位置をまとめて、中央・周りの余白・行間を設定 */
.hero-text,
.overview-text {
  line-height: 1.7;
  margin: 56px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.price-text,
.trial-text,
.friend-text,
.timetable-text {
  line-height: 1.7;
  margin: 56px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

/* H2の見出しの位置指定 */
.price-title,
.trial-title {
  text-align: center;
}

/* ギャラリーセクションの画像の並びの設定 */
.gallery-images {
  margin-bottom: 32px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1%;
}

@media (max-width: 800px) {
  .gallery-images {
    display: grid;
    grid-template-columns: 1fr;
    place-items: center;
  }
}

/* テーブルのデザイン */
.price-table,
.a-price-table,
.timetable,
.trial-table,
.friend-table {
  padding-top: 1rem;
  padding-bottom: 1rem;
  font-size: 32px;
  border: 5px dotted #000;
  max-width: 560px;
  border-radius: 20px;
  margin: 24px auto 56px auto;
  box-shadow: -20px 20px 0px -5px #f1f1e9;
  border-radius: 20px;
}

td span,
th span {
  font-size: 16px;
  color: #000;
}

table {
  border-collapse: collapse;
  width: 80%;
  margin: 0 auto 1rem auto;
}

table td {
  padding-top: 1rem;
  padding-left: 1em;
  border-bottom: 1px solid #000;
  color: #000;
}

table th {
  padding-top: 1rem;
  font-weight: 400;
  border-bottom: 1px solid #000;
  color: #000;
}

.timetable th {
  text-align: left;
}

/* q-class調整 */
.hero-container {
  padding-top: 56px;
  margin-top: 160px;
}

/* PC表示では以下の改行を無効 */
@media (min-width: 800px) {
  td br,
  th br {
    display: none;
  }
}

@media (max-width: 800px) {
  /* q-classの調整 */
  .hero-container {
    margin-top: 80px;
    padding-top: 56px;
  }

  th,
  td {
    display: inline-block;
    width: 100%;
    text-align: center;
  }

  .timetable th {
    border-bottom: none;
    text-align: center;
  }

  .timetable td {
    text-align: center;
    line-height: 1;
    padding-left: 0;
    padding-bottom: 16px;
  }

  .price-table th {
    font-size: 22px;
    border-bottom: none;
  }

  .price-table td {
    text-align: right;
  }

  .trial-table th {
    font-size: 24px;
  }
}

/*テーブルの文章にのみにつけた設定 */
.timetable-p,
.price-table p,
.a-price-table p,
.friend-table p {
  width: 80%;
  font-size: 16px;
  margin: 0 auto;
  color: #000;
}

/* お月謝テーブルのみにつけた設定 */
.pice-table td {
  text-align: right;
}

.price-table th {
  text-align: left;
}

/* 体験テーブルのみにつけた設定 */
.trial-table td {
  font-size: 16px;
  border-bottom: none;
}

/* お友だち追加・お問合せテーブルのみにつけた設定 */
.friend-table {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.friend-table td {
  font-size: 16px;
  border-bottom: none;
}

.friend-table a {
  text-align: center;
  font-size: 16px;
}

/* 大人クラス持ち物のリスト */
.price-text-list {
  margin-top: 8px;
  list-style: inside;
  text-indent: 1em;
}

.price-text-list li:first-child {
  list-style: none;
}

/* 大人クラスの体験テーブル内の文章のみにつけた設定 */
.price-table > .table-title {
  font-size: 20px;
  text-align: center;
  color: #000;
}

/* お問合せ */
input,
select,
input[type='submit'] {
  -webkit-appearance: none;
  appearance: none;
}

.form {
  padding-top: 1rem;
  padding-bottom: 1rem;
  font-size: 16px;
  border: 5px dotted #000;
  max-width: 800px;
  border-radius: 20px;
  margin: 24px auto 56px auto;
  box-shadow: -20px 20px 0px -5px #f1f1e9;
  border-radius: 20px;
  font-family: inherit;
  font-style: normal;
  color: #73727c;
  font-weight: 500;
}

.container h2 {
  text-align: center;
}

.qa-container {
  text-align: justify;
  margin-bottom: 0.5rem;
}

.qa-container label {
  display: block;
  position: relative;
  background: #fbfbfb;
  padding: 1rem 2.5rem 1rem 0.5rem;
  cursor: pointer;
}

.qa-container label:after {
  content: '';
  display: block;
  width: 0.5rem;
  height: 0.5rem;
  border-right: solid 2px #ccc;
  border-bottom: solid 2px #ccc;
  transform: rotate(45deg) translate(100%, 100%);
  position: absolute;
  top: 0;
  right: 0;
  margin-top: 0.5rem;
  margin-right: 1rem;
}

.qa-container input:checked ~ label:after {
  transform: rotate(-135deg) translate(-100%, -100%);
  margin-top: 0.75rem;
}

.qa-container input {
  display: none;
}

.qa-container p {
  height: 0px;
  opacity: 0;
  transition: opacity 0.3s ease-in-out, height 0.5s ease-in-out,
    margin 0.5s ease-in-out;
  margin: 0 0.5rem;
}

.qa-container input:checked ~ p {
  height: auto;
  opacity: 1;
  transition: opacity 0.3s 0.2s ease-in-out, height 0.3s ease-in-out;
  margin: 1rem 0.5rem;
}

.contact {
  max-width: 800px;
  margin-top: 56px;
}

.form-area {
  display: flex;
  flex-wrap: wrap;
}

.form-area dt {
  width: 200px;
  padding: 15px 0;
  font-size: 16px;
  font-weight: bold;
  line-height: 1.7;
}

.required,
.form-area dt {
  font-family: inherit;
}

.form-area dt .required::after {
  content: '必須';
  font-size: 11px;
  color: rgb(203, 45, 45);
  margin-left: 10px;
}

.form-area dd {
  width: calc(100% - 200px);
  padding: 15px 0;
}

.input-text {
  width: 100%;
  max-width: 280px;
  height: 40px;
  padding: 10px;
  background-color: #fff;
  border-radius: 10px;
  border: 2px solid #73727c;
  color: #000;
}

.select-box {
  width: 200px;
  height: 40px;
  padding: 10px;
  background-color: #fff;
  border-radius: 10px;
  border: 2px solid #73727c;
  color: #000;
}

.message {
  width: 100%;
  height: 200px;
  padding: 10px;
  line-height: 1.7;
  background-color: #fff;
  border-radius: 10px;
  border: 2px solid #73727c;
  color: #000;
}

.submit-button {
  background-color: #fff;
  color: #000;
  border: 2px solid;
  font-family: inherit;
  display: block;
  min-width: 180px;
  line-height: 24px;
  border-radius: 20px;
  font-size: 14px;
  text-align: center;
  margin-top: 32px;
  margin-bottom: 32px;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 800px) {
  .form-area dt,
  .form-area dd {
    width: 100%;
  }
}

/* ふわっと画像が出てくる調整 */
.test {
  height: calc(100vh - 160px);
  position: relative;
  margin-top: 160px;
  overflow: hidden;
}

.test-ch {
  position: relative;
  height: 100%;
  width: 100%;
}

.test-ch img {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transition: all 2s ease;
  width: 100%;
  object-fit: cover;
  height: calc(100vh - 160px);
}

img.active {
  opacity: 1;
}

@media (max-width: 800px) {
  .test {
    height: calc(100vh - 80px);
    margin-top: 80px;
  }

  .test-ch img {
    height: calc(100vh - 80px);
  }
}

/* 各クラスへのリンク */
.other-class {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 10px;
}

.other-class img {
  margin-top: auto;
}

.other-class1 {
  display: flex;
  flex-direction: column;
}

.other-class p {
  margin-top: auto;
  text-align: center;
  font-size: 16px;
  font-weight: bold;
}

.other-class0 {
  margin-bottom: 56px;
}

@media (max-width: 800px) {
  .other-class {
    grid-template-columns: repeat(2, 3fr);
  }
}
