@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+JP:wght@300;400&display=swap');

/* 基本設定 */
body {
  margin: 0;
  padding: 0;
  text-align: center;
  font-family: 'IBM Plex Sans JP', 'Hiragino Kaku Gothic ProN', 'メイリオ', sans-serif;
  font-size: 1rem; /* ≒16px */
  line-height: 1.9;
  letter-spacing: 0.04em;
  color: #333;
  -webkit-text-size-adjust: 100%;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
  background-attachment: fixed;
}

/* メインボックス（左右に余白を確保） */
#main {
  max-width: 760px;
  margin: 0rem auto; /* ←上下の余白はコンパクトに */
  padding: 2rem 2rem;
  background: rgba(255, 255, 255, 0.92);
  color: #333;
  text-align: left;
  font-size: 1rem;
  line-height: 1.9;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.04);
}

/* タイトルと見出し */
h1 {
  border-bottom: 1px solid #ccc;
  font-size: 1.25rem;
  color: #808080;
  text-align: right;
  margin-bottom: 1.5rem;
}

.title {
  color: #ccb9af;
  font-weight: bold;
  font-size: 2.3rem;
  font-family: "はんなり明朝", "Sawarabi Mincho", serif;
  margin-bottom: 1rem;
  text-align: center;
}

/* 各要素 */
img {
  border: 0;
  max-width: 100%;
  height: auto;
}

br {
  letter-spacing: 0;
}

p {
  line-height: 12em;
  margin: 1em 0;
}

a {
  text-decoration: none;
  background-color: transparent;
  color: #0b0b0b;
}

a:hover {
  text-decoration: underline;
  background-color: #add8e6;
  color: #0b0b0b;
}

.font {
  color: #ccc;
}

ruby {
  ruby-align: distribute-space;
  ruby-overhang: auto;
  ruby-position: above;
}

/* スマホ対応 */
@media screen and (max-width: 768px) {
  body {
    font-size: 0.9375rem; /* ≒15px */
  }

  .title {
    font-size: 1.8rem;
  }

  #main {
    width: 92%;
    margin: 1rem auto;
    padding: 1.5rem 1.5rem;
    background: rgba(255, 255, 255, 0.94);
    line-height: 1.85;
  }
}

@media screen and (max-width: 480px) {
  body {
    font-size: 0.875rem; /* ≒14px（必要最低限） */
  }

  .title {
    font-size: 1.6rem;
  }

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