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

body {
  font-family: 'Kiwi Maru', serif;
  font-weight: 400;
  margin: 0;
  padding: 0;
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh; /* 画面の高さを全てカバー */
  background: #fff;
  color: #222;
}

header,
h1,
figure,
p,
footer {
  width: 100%;
  max-width: 390px;
}

h2 {
  font-size:1.6rem;
}

header {
  text-align: center;
  margin-bottom: 50px;
}
header img {
  width: 33%; /* headerの画像を33%に設定 */
  height: auto;
}

h1 img,
figure img, 
section img,
section figure img{
  width: 100%;
  height: auto;
}

section{
  margin: 20px 0 20px;
  font-size: 2.0rem;
  padding: 20px;
}



a {
  text-decoration: underline;
  color: #222;
}

p {
  font-size: 0.9rem;
  line-height: 1.6;
}

p.indented {
  text-indent: 1em;
  margin: 0;
}

p.download a {
  font-size: 2.2rem;
  text-decoration: none;
  color: inherit;
  background: rgb(136, 236, 203);
  padding: 2rem 0;
  color: white;
  border-radius: 10px;
  transition: background 0.3s ease;
  display: inline-block;
  width: 100%;
  box-sizing: border-box;
  text-align: center; /* テキストを中央揃え */
}

p.download a:hover {
  background: rgb(0, 0, 0);
  color: rgb(52, 243, 180);
}

h3 {
  color: rgb(52, 243, 180);
  font-size: 1.4rem;
  text-decoration: none;
  margin-top: 30px;
  margin-bottom: 20px;
}

.licenses {
  font-size: 0.7rem;
  text-align: left;
  width: 100%;
  max-width: 390px;
}

p.licenses a {
  background: none;
  padding: 0;
  color: #222;
  text-decoration: underline;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
}

.paren {
  font-size: 80%;
}
.licenses a i {
  margin-left: 0.3125rem; /* アイコンとの間にスペースを追加 */
}

.flex-nowrap {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

footer {
  margin-top: 100px;
  text-align: center;
}

footer img {
  width: 6.25rem; /* 100px */
  height: auto;
}

#back-to-top {
  display: block;
  position: fixed; /* 画面に固定 */
  bottom: 1.25rem; /* 下からの距離 */
  right: 1.25rem; /* 右からの距離 */
  text-decoration: none;
  color: rgb(52, 243, 180);
  padding: 0.625rem 1.25rem;
  border: 2px solid rgb(52, 243, 180);
  border-radius: 0.3125rem;
  transition: background 0.3s ease, color 0.3s ease;
  font-size: 0.8rem;
}

#back-to-top:hover {
  background: rgb(52, 243, 180);
  color: white;
}


p + .figure-container {
  margin-top: 40px; /* 必要な余白の値を設定 */
}

.figure-container {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 0px;
}

.figure-container figure {
  margin: 0;
  text-align: center;
  grid-column: span 2;
}

.figure-container div {
  margin: 0 auto;
  text-align: center;
  display: grid;
  align-items: center;
  justify-content: center;
  grid-column: span 1;
  color:rgb(52, 243, 180);
  font-size: 1rem;
}


.figure-container img {
  width: 100%;
  height: auto;
}

figcaption{
  font-size: 0.6rem;
}

.figure-container figcaption {
  margin: 10px 0 20px ;
  text-align: left;
  width: 100%;
}
figcaption::before {
  content: '⚫︎ ';
}


/* Breakpoints for responsive design */
@media (min-width: 460px) {
  header,
  h1,
  p,
  figure,
  .licenses {
    font-size: 1rem;
    max-width: 600px;
  }

  .figure-container {
    grid-template-columns: repeat(8, 1fr);
  }

  .figure-container div {
    font-size: 1.4rem;
  }

}

@media (min-width: 800px) {
  header,
  h1,
  p,
  figure,
  .licenses {
    font-size: 1.2rem;
    max-width: 800px;
  }

  .figure-container {
    max-width: 800px;
  }

  figcaption {
    font-size: 0.9rem;
  }
}

@media (min-width: 1280px) {
  h1 {
    font-size: 3rem;
  }
  p {
    font-size: 2rem;
    line-height: 1.8;
  }

  header,
  h1,
  p,
  figure,
  .licenses {
    font-size: 1rem;
    max-width: 1280px;
  }
  .figure-container {
    max-width: 1280px;
  }

  .figure-container div {
    font-size: 2.4rem;
  }

  figcaption {
    font-size: 1.1rem;
  }
}

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

  header,
  h1,
  p,
  figure,
  .licenses {
    font-size: 1rem;
    max-width: 1600px;
  }

  .figure-container {
    max-width: 1600px;
  }

  figcaption {
    font-size: 1.2rem;
  }
}
