@charset "UTF-8";

/*!
Theme Name: fs-create Cocoon Child
Description: fs-create.net の Cocoon の子テーマ（CH-514）。新しいトップ・対応できること・事例のテンプレートと、記事の本文が頼るクラスの CSS。
Author: fstylegear09543
Template: cocoon-master
Version: 0.1.0
Text Domain: fs-create-cocoon-child
*/

/************************************
** 記事の本文が頼るクラス（dio の style.css から写した・CH-514 段 3）
** dio の .p-entry__body は Cocoon の .entry-content に読み替えた。
** 色・大きさは dio のまま（見た目を変えない）。
************************************/

/* 斜めのしま模様の囲み */
.box16 {
  margin: 0 0 2em 0;
  padding: 1.5em 1em;
  background: repeating-linear-gradient(-45deg, #f0f8ff, #f0f8ff 3px, #e9f4ff 3px, #e9f4ff 7px);
  line-height: 1.83;
}

.entry-content .box16 p {
  line-height: 1.83;
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 0;
}

/* メモの囲み */
.memo {
  margin-top: 2em;
  margin-bottom: 1.5em;
  padding: 1em;
  background: #fff9e5;
  color: #545454;
}

.memo_ttl {
  margin-bottom: 5px;
  color: #ffb36b;
  font-size: 1.2em;
  font-weight: bold;
}

/* 文字の下半分の色（赤・青） */
.mred {
  background: linear-gradient(transparent 60%, #ffd0d1 60%);
}

.mblue {
  background: linear-gradient(transparent 60%, #a8dafb 60%);
}

/* 見出しつきの囲み（見出しの文字は投稿ごとの CSS の :before の content で決める） */
.concept-box1,
.concept-box2 {
  position: relative;
  border: 1px solid #85db8f;
  border-radius: 4px;
  margin: 50px auto;
  padding: 20px 25px;
  box-sizing: border-box;
}

.concept-box1::before,
.concept-box2::before {
  position: absolute;
  font-weight: bold;
  background: #fff;
  color: #555;
  line-height: 0;
  letter-spacing: 0;
  font-size: 20px;
  top: -21px;
  padding: 20px 8px 20px 0;
}

/* 画像を中央に */
img.centered {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* リンクの一覧（サイト名と URL） */
.url {
  padding-left: 50px;
  word-break: break-all;
  line-height: 1.2 !important;
}

.entry-content .url a {
  color: #cccccc;
  font-size: 0.9em !important;
}

.site_name {
  margin-bottom: 0 !important;
  height: 40px;
  padding-left: 50px;
  padding-top: 5px;
}

/* PC だけ・スマホだけに出す */
.pc { display: inline; }
.sp { display: none; }

/* 吹き出し（dio の SCSS の書き方を、ふつうの CSS に直した） */
.voice {
  margin-bottom: 40px;
}

.voice-img-left {
  margin-left: 4px;
  margin-top: -1px;
  float: left;
  width: 70px;
  height: 70px;
}

.voice-img-right {
  margin-right: 4px;
  margin-top: -1px;
  float: right;
  width: 70px;
  height: 70px;
}

.voice figure img {
  width: 100%;
  height: 100%;
  border: 2px solid #eee;
  border-radius: 50%;
  margin: 0;
}

.voice-img-description {
  padding: 5px 0 0;
  font-size: small;
  font-weight: bold;
  text-align: center;
}

.voice-text-right,
.voice-text-left {
  color: #444;
  position: relative;
  margin-left: 100px;
  margin-right: 100px;
  padding: 1.2em;
  border: 3px solid #eee;
  background-color: #fff;
  border-radius: 5px;
}

.voice-text-right::before,
.voice-text-right::after,
.voice-text-left::before,
.voice-text-left::after {
  position: absolute;
  content: '';
  border: 10px solid transparent;
  top: 21px;
}

.voice-text-right::before { border-right-color: #eee; left: -23px; }
.voice-text-right::after { border-right-color: #fff; left: -19px; }
.voice-text-left::before { border-left-color: #eee; right: -23px; }
.voice-text-left::after { border-left-color: #fff; right: -19px; }

p.voice-text {
  margin: 0 0 8px;
}

p.voice-text:last-child {
  margin-bottom: 0;
}

.voice::after,
.voice::before {
  clear: both;
  content: "";
  display: block;
}

/* サイドのプロフィール（カスタム HTML のウィジェット） */
.my-profile {
  padding: 25px;
  border-radius: 2px;
  background: #fff;
  box-shadow: 0 0 2px rgb(0 0 0 / 18%);
  position: relative;
  color: #380f00;
  text-align: center;
}

.my-profile .myname {
  font-size: 1rem;
  width: 100%;
  text-align: center;
  margin-top: 10px;
}

.my-profile .myjob {
  font-size: 0.65rem;
  color: rgba(0, 0, 0, 0.35);
  width: 100%;
  text-align: center;
  font-weight: 300;
}

.my-profile .myintro {
  margin-top: 20px;
}

.my-profile .my-profile-thumb img {
  margin: auto;
}

/* WP Most Popular のウィジェット */
.wp-most-popular li {
  display: flex;
  padding: 11px;
  border: 1px solid #ddd;
  overflow: hidden;
  height: 120px;
  font-size: 13px;
}

/* 画像は縦横の比率を保って正方形に切り抜く（CH-514）。前はフレックスの中で幅だけ縮められ、
   500×450 が 48×120 のように押しつぶされていた（object-fit が fill のまま）。 */
.wp-most-popular li {
  align-items: center;
  height: auto;
  min-height: 104px;
}

.wp-most-popular li > a:first-child {
  flex: none;
  margin-right: 16px;
  line-height: 0;
}

.wp-most-popular li img {
  display: block;
  flex: none;
  width: 80px;
  height: 80px;
  max-width: none;
  object-fit: cover;
  border-radius: 6px;
}

.wp-most-popular .p-article02__content {
  min-width: 0;
}

/* 題名は 3 行まで（項目の高さを固定しないので、長い題名で上下が切れないように） */
.wp-most-popular .p-article02__title {
  margin: 0;
}

.wp-most-popular .p-article02__title a {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

/* 古いブロックの画像（div.wp-block-image > figure.aligncenter）は、WordPress の CSS で display:table になり、
   スマホで画像が縮まずに横にはみ出す。ふつうの箱にして、画像を幅に合わせて縮め、真ん中に置く。 */
.entry-content .wp-block-image .aligncenter {
  display: block;
  max-width: 100%;
}

.entry-content .wp-block-image .aligncenter > img {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.entry-content .wp-block-image img {
  max-width: 100%;
  height: auto;
}

/************************************
** レスポンシブ
************************************/
@media screen and (max-width: 991px) {
  .pc { display: none; }
  .sp { display: inline; }
}

@media screen and (max-width: 767px) {
  .entry-content .box16 p {
    font-size: 1em;
  }

  .url,
  .site_name {
    padding-left: 0;
  }
}

@media screen and (max-width: 480px) {
  .voice-text-right {
    margin-right: 0;
  }

  .voice-text-left {
    margin-left: 0;
  }
}
