/* ============================
   基本設定（PC向け）
============================ */
body {
  font-family: "Helvetica Neue", Arial, sans-serif;
  line-height: 1.9;
  margin: 40px auto;
  max-width: 900px;
  padding: 0 20px;
  color: #222;
  background: #fff;
}

/* ============================
   見出し
============================ */
h1 {
  font-size: 2rem;
  color: #0044cc;
  text-align: center;
  margin-bottom: 1.2em;
  line-height: 1.3;
}

h2 {
  font-size: 1.6rem;
  color: #0044cc;
  margin-top: 0;
  line-height: 1.3;
}

h3 {
  font-size: 1.3rem;
  color: #0044cc;
  margin-top: 1em;
}

/* ============================
   テキスト
============================ */
p {
  font-size: 1.05rem;
  margin: 1em 0;
}

blockquote {
  padding: 1em 1.5em;
  margin: 1.2em 0;
  background: #f7f7f7;
  border-left: 4px solid #0044cc;
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ============================
   画像＋テキストのレイアウト
============================ */
.book-header {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 30px;
}

.book-image {
  flex-shrink: 0;
}

.book-image img {
  width: 100%;
  max-width: 360px; /* 本によって調整OK */
  height: auto;
  display: block;
}

.book-text {
  flex: 1;
  min-width: 0;
}

/* ============================
   リンク
============================ */
a {
  color: #0044cc;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

a:visited {
  color: #990000;
}

/* ============================
   右寄せ
============================ */
.right-aligned {
  text-align: right;
}

/* ============================
   スマホ最適化（700px以下）
============================ */
@media (max-width: 700px) {

  body {
    margin: 20px auto;
    padding: 0 18px;
    line-height: 2.0; /* スマホは行間広めが読みやすい */
  }

  /* 画像を縦並びに */
  .book-header {
    flex-direction: column;
    align-items: center;
  }

  .book-image img {
    width: 100%;
    max-width: 360px;
    height: auto;
    margin-bottom: 15px;
  }

  .book-text {
    width: 100%;
  }

  /* 見出しをスマホ向けに大きく */
  h1 {
    font-size: 1.9rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  h3 {
    font-size: 1.25rem;
  }

  /* 本文を大きくして読みやすく */
  p {
    font-size: 1.15rem;
    margin: 1.2em 0;
  }

  blockquote {
    font-size: 1rem;
  }
}
