﻿@charset "UTF-8";
@import url('resetcss.css');

.zen-maru-gothic-regular {
  font-family: 'Zen Maru Gothic', serif;
  font-weight: 400;
  font-style: normal;
}

.zen-maru-gothic-medium {
  font-family: 'Zen Maru Gothic', serif;
  font-weight: 500;
  font-style: normal;
}

.zen-maru-gothic-bold {
  font-family: 'Zen Maru Gothic', serif;
  font-weight: 700;
  font-style: normal;
}

.kiwi-maru-regular {
  font-family: 'Kiwi Maru', serif;
  font-weight: 400;
  font-style: normal;
}

.kiwi-maru-medium {
  font-family: 'Kiwi Maru', serif;
  font-weight: 500;
  font-style: normal;
}


body {
  font-family: 'Kiwi Maru', serif;
  margin: 0;
  padding: 0;
  text-align: center;
  min-height: 100vh; /* 画面の高さを全てカバー */
  background: linear-gradient(
    to bottom,
    rgb(187, 255, 187),
    rgb(252, 252, 178)
  ); /* グラデーション */
}

header,
.content,
footer {
  padding: 20px;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  text-decoration: none;
  color: inherit;
}

figure {
  margin: 0;
  padding: 10px;
}

h2,
p {
  font-family: 'Kiwi Maru', serif;
  font-weight: 500;
  font-style: normal;
}

h2 {
  color: rgb(52, 243, 180);
}

p {
  margin: 10px 0;
  background: rgb(97, 220, 179);
  padding: 12px;
  border-radius: 6px;
  color: rgb(255, 255, 255);
  transition: transform 0.5s ease-in-out; /* トランジションの追加 */
  will-change: transform; /* ブラウザに変更を通知 */
}

p:hover {
  transform: scale(1.15); /* ホバー時のズーム効果 */
  background: rgb(52, 243, 180);
}

.content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-bottom: 40px;
}

.item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  text-align: center;
}

.item img {
  max-width: 60%;
}

/* Footer image size and alignment */
footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-top: 40px;
}

footer img {
  width: 62px;
  height: auto;
  margin-bottom: 10px;
}

/* Breakpoints for responsive design */
@media (min-width: 800px) {
  .content {
    grid-template-columns: repeat(2, 1fr);
    align-items: start;
  }

  .item img {
    max-width: 60%; /* Adjust this percentage to make the image smaller on larger screens */
  }
}

@media (min-width: 1280px) {
  h1 {
    font-size: 3em;
  }
  p {
    font-size: 1.2em;
  }
}

@media (min-width: 1600px) {
  h1 {
    font-size: 3.5em;
  }
  p {
    font-size: 1.3em;
  }
}
