@charset "utf-8";

.exam-gallery {
  display: flex;
  gap: 0.5rem;
  padding: 1rem;
  justify-content: center;
}

.exam-gallery img {
  width: 50%;      /* ← 横幅を 1:1 にする本体 */
  height: auto;    /* ← 高さは画像の比率に従う */
  border-radius: 4px;
  border: 1px solid #355e3b;
}

/* スマホでは縦並びにする場合 */
@media (max-width: 800px) {
  .exam-gallery {
    flex-direction: column;
  }
  .exam-gallery img {
    width: 100%;   /* ← スマホでは全幅 */
  }
}

/* ------------------------------
   Buttons
------------------------------ */
.btn-list {
    display: flex;
    justify-content: center;
}

.btn {
    display: flex;
    align-items: center;      /* 縦方向の中央揃え */
    justify-content: center;  /* 横方向の中央揃え */

    padding: 0.6rem 1.4rem;
    margin: 0 1rem 0 0;
    border: 1px solid #355e3b;
    background: #f7f3e8;
    color: #355e3b;
    border-radius: 30px;
    font-size: 1rem;
    text-decoration: none;

    width: fit-content;

    transition: all 0.2s ease;
}

.btn:hover {
    background: #355e3b;
    color: #f7f3e8;
}

/* スマホでボタン縦並び */
@media (max-width: 800px) {
    .btn-list {
        flex-direction: column;
        gap: 0.8rem;
    }

    .btn {
        width: 100%;
        margin: 0;
        justify-content: center;
    }
}