
/* 無料・読み放題電子書籍サイト2×2グリッド */
/* 全体を白背景+グレー罫線の角丸で囲む */
.reading-platform-box {
  background: #fff;
  border-radius: 12px;
  padding: 15px;
  border: 1px solid #ddd;
  margin-bottom: 20px;
}


/* 見出しのスタイル */
.platform-heading {
  text-align: center;
  margin-top: 0;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid #ddd;
  color: #333;
  font-size: 1.2em;
}

.platform-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* カード本体: flexで左右分割 */
.platform-item {
  display: flex;
  background: #fff;
  border-radius: 6px;
  overflow: hidden;
  /* box-shadow: 0 1px 3px rgba(0,0,0,0.1);*/
}

/* 左30%: アイコン */
.platform-left {
  width: 30%;
  min-width: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  padding: 8px;
  box-sizing: border-box;
}
.platform-left img {
  width: 80px;
  height: auto;
  border-radius: 10px;
  /* アイコンに影 */
  box-shadow: 0 4px 6px rgba(0,0,0,0.2);
}

/* 右70% */
.platform-right {
  width: 70%;
  padding: 8px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* サービス名 + desc */
.service-row {
  width: 95%;
  margin: 0 auto;
  position: relative;
  margin-bottom: 6px;
}
.platform-name {
  font-size: 0.95em;
  font-weight: 600;
  color: #333;
  display: inline-block;
}
/* descを右端に合わせる (例: 無料10,000冊以上) */
.platform-type {
  position: absolute;
  right: 0;
  top: 0;
  font-size: 0.8em;
  color: #666;
  background-color: #fff;
  border: 1px solid #ccc;
  padding: 2px 6px;
  border-radius: 4px;
}

/* ボタン */
.watch-button {
  width: 95%;
  margin: 0 auto;
}
.watch-btn {
  display: block;
  width: 100%;
  padding: 5px 14px;
  background: #ff3b3b;
  color: #fff !important;
  text-decoration: none;
  border-radius: 10px;
  font-size: 0.8em;
  font-weight: bold;
  position: relative;
  margin-top: 4px;
  text-align: center;
}
.watch-btn:hover {
  background: #e52e2e;
}


.watch-btn::after {
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  content: "\f105"; /* 右矢印 fa-angle-right */
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.9em;
}


/* スマホ対応: 1列にする */
@media screen and (max-width: 767px) {
  .reading-platform-box {
    padding: 12px;
  }
  
  .platform-grid {
    grid-template-columns: 1fr;
  }
  .platform-item {
    flex-direction: row;
  }
  .platform-left {
    width: 30%;
  }
  .platform-right {
    width: 70%;
  }
  .service-row, .watch-button {
    width: 90%;
  }
}


