/*
Theme Name: original
Author URI: http://gallant-llc.com/
Description: post style. 
Author: gallant-kaori
Version: 1.0
*/

/* =========================
   投稿ページ全体
========================= */

#article {
}

.post_inner {
  background: #fff;
  padding: 24px;
  border-radius: 6px;
}

/* PC時は余白アップ */
@media (min-width: 992px) {
  .post_inner {
    padding: 40px;
  }
}

/* =========================
   記事タイトル
========================= */

.blog_title {
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 24px;
  color: #222;
}

@media (min-width: 992px) {
  .blog_title {
    font-size: 2rem;
  }
}

/* =========================
   記事本文
========================= */

.post_inner p {
  font-size: 1rem;
  line-height: 1.9;
  margin-bottom: 1.5em;
  color: #333;
}

@media (min-width: 992px) {
  .post_inner p {
    font-size: 1.05rem;
  }
}

/* =========================
   見出し
========================= */

.post_inner h2 {
  font-size: 1.3rem;
  font-weight: 700;
  margin: 2.5em 0 1em;
  padding-left: 12px;
  border-left: 4px solid #555;
}

.post_inner h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 2em 0 1em;
  color: #444;
}

@media (min-width: 992px) {
  .post_inner h2 {
    font-size: 1.4rem;
  }
  .post_inner h3 {
    font-size: 1.15rem;
  }
}

/* =========================
   リスト
========================= */

.post_inner ul,
.post_inner ol {
  padding-left: 1.2em;
  margin: 1.5em 0;
}

.post_inner li {
  margin-bottom: 0.6em;
  line-height: 1.8;
}

/* =========================
   画像
========================= */

.post_inner img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 1.8em auto;
  border-radius: 6px;
}

/* =========================
   前後記事リンク
========================= */

.single_link_w {
  display: table;
  width: 100%;
  height: 70px;
  background: #fff;
  border-radius: 6px;
}

.single_link_w a {
  display: table-cell;
  vertical-align: middle;
  width: 100%;
  padding: 10px;
  text-align: center;
  border: 2px solid #D7F1F9;
  background-color: #6ec0da;
  color: #fff;
  transition: all .4s ease;
  text-decoration: none;
}

.single_link_w a:hover {
  color: #6ec0da;
  background-color: #fafafa;
  border-color: #6ec0da;
}

.single_link i {
  margin: 0 5px;
}

/* =========================
   サイドバー
========================= */

#sidebar {
  position: sticky;
  top: 20px;
}

.sidebar_inner {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* ウィジェット共通 */
.widget {
  background: #fff;
  border-radius: 6px;
  padding: 20px;
  border: 1px solid #eee;
}

/* ウィジェットタイトル */
.widget-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid #6ec0da;
  color: #333;
}

/* サイドバー内テキスト */
.widget p,
.widget li {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #444;
}

/* サイドバーリンク */
.widget a {
  color: #333;
  text-decoration: none;
  transition: color .2s ease;
}

.widget a:hover {
  color: #6ec0da;
}

/* リスト型ウィジェット */
.widget ul {
  padding-left: 0;
  list-style: none;
}

.widget ul li {
  padding: 6px 0;
  border-bottom: 1px dashed #eee;
}

.widget ul li:last-child {
  border-bottom: none;
}
#side h2{
	font-size: 1.4em;
}
/* =========================
   スマホ最適化
========================= */

@media (max-width: 767px) {

  .post_inner {
    padding: 20px 16px;
  }

  .blog_title {
    font-size: 1.4rem;
  }

  .post_inner p {
    font-size: 1rem;
    line-height: 2;
  }

  .single_link_w {
    height: auto;
  }

  #sidebar {
    position: static;
    margin-top: 32px;
  }

  .widget {
    padding: 16px;
  }
}
/*study記事**/
/* =========================
   study 吹き出し
========================= */

.study-talk {
  display: flex;
  gap: 12px;
  margin: 24px 0;
  align-items: flex-start;
}

.study-talk .icon {
  width: 56px;
  flex-shrink: 0;
}

.study-talk .icon img {
  width: 100%;
  height: auto;
  border-radius: 50%;
}

.study-talk .balloon {
  position: relative;
  background: #f7f9fc;
  padding: 14px 16px;
  border-radius: 10px;
  line-height: 1.8;
  font-size: 0.95rem;
  color: #333;
  max-width: 100%;
}

/* 吹き出しの三角 */
.study-talk .balloon::before {
  content: "";
  position: absolute;
  top: 18px;
  left: -8px;
  border-width: 8px;
  border-style: solid;
  border-color: transparent #f7f9fc transparent transparent;
}

/* 先生 */
.study-talk.teacher .balloon {
  background: #eef6ff;
}

.study-talk.teacher .balloon::before {
  border-color: transparent #eef6ff transparent transparent;
}

/* 生徒 */
.study-talk.student .balloon {
  background: #fff6ec;
}

.study-talk.student .balloon::before {
  border-color: transparent #fff6ec transparent transparent;
}

/* スマホ */
@media (max-width: 767px) {
  .study-talk {
    gap: 8px;
  }

  .study-talk .icon {
    width: 44px;
  }

  .study-talk .balloon {
    font-size: 0.9rem;
  }
}
/* =========================
   study チェックポイント
========================= */

.study-check {
  background: #f4f8fb;
  border-left: 5px solid #6ec0da;
  padding: 16px 20px;
  margin: 32px 0;
  border-radius: 6px;
}

.study-check h4 {
  margin: 0 0 10px;
  font-size: 1.05rem;
  font-weight: 700;
  color: #2b6f84;
}

.study-check ul {
  margin: 0;
  padding-left: 1.2em;
}

.study-check li {
  line-height: 1.8;
  margin-bottom: 6px;
  font-size: 0.95rem;
}
.study-next {
  background: #fff;
  border: 1px solid #eee;
  padding: 20px;
  margin: 40px 0 0;
  border-radius: 6px;
  font-size: 0.95rem;
}

.study-next a {
  color: #2b6f84;
  font-weight: 600;
}
