@charset "UTF-8";
/*
Theme Name: SWELL CHILD
Theme URI: https://swell-theme.com/
Description: SWELL の子テーマです。hoken-teacher テーマからの移行に伴うカスタマイズを格納します。
Author: IID, Inc.
Template: swell
Version: 1.0.0
*/

/* 子テーマ独自のスタイルはここに追記する */

/* 記事本文中のアフィリエイトテキストリンク（旧 hoken-teacher テーマから移植） */
.hokengate_text_link {
	font-size: 20px;
	font-weight: bold;
	text-decoration: underline;
}
a.hokengate_text_link:hover {
	text-decoration: underline;
}

/* 旧記事で見出しタグ内に埋め込まれていた画像を、functions.php のフィルタで
   見出し直後の figure.ht-heading-figure へ取り出している。alignleft のフロートを
   解除してブロック表示にし、次の見出しとの間隔を確保する。 */
.post_content .ht-heading-figure {
	margin: 0 0 2em;
}
.post_content .ht-heading-figure img {
	float: none;
	display: block;
	margin: 0 auto;
}

/* 旧記事は見出しの直前に幅広の alignleft 画像を置いており、フロート画像の直下に
   SWELL の帯見出しが回り込めず密着する（見出しの上マージンがフロート回避=clearance で
   消費されるため）。フロート要素自身に下マージンを与えて次要素との間隔を確保する
   （フロートは維持＝横方向の回り込みは変えない）。画像は wpautop で <p><a><img></a></p> と
   ネストされ、SWELL 既定の .post_content>* の margin-bottom:2em は直下要素にしか効かない
   ため、子孫結合子でネストした画像自身を対象にする。 */
.post_content .alignleft,
.post_content .alignright,
.post_content .aligncenter {
	margin-bottom: 2em;
}
