@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 {
  font-family: 'Roboto Slab', 'Times New Roman', '游明朝', 'ＭＳ Ｐ明朝', serif;
  text-align: center;
  font-size: 3.125rem; /* 50px */
  font-weight: 400;
  color: #2e2d46;
  line-height: 1;
  margin-top: 3rem;
  letter-spacing: 0.125em; /* 2px相当 */
}

h2 {
  font-weight: normal;
  font-size: 11pt;
  color: #808080;
  text-align: center;
  padding-bottom: 3px;
  margin: 0;
  border-bottom: 1px solid #808080;
}

a {
  text-decoration: underline;
  color: #2f2e47;
}

a:hover {
  text-decoration: none;
  color: #7472a5;
}

.line {
  display: block;
  width: 100%;
  height: 7px;
  margin: 0 0 0 0;
}

.font {
  color: #808080;
}

.next {
  text-align: center;
  margin-bottom: 5px;
}

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

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

br {
  letter-spacing: 0;
}

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

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

  h1 {
    font-size: 2rem;
    font-weight: 300;
    line-height: 1.1;
  }

  h2 {
    font-size: 10pt;
  }

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

@media only screen and (max-width: 480px) {
  body {
    font-size: 0.875rem; /* ≒14px */
  }

  h1 {
    font-size: 1.6rem;
  }
}
