@charset "UTF-8";
/*
    Template: swell
    Theme Name: SWELL CHILD
    Theme URI: https://swell-theme.com/
    Description: SWELLの子テーマ（heroengblog.com 用。Cocoon 互換の処理入り）
    Version: 1.0.0-hero.4
    Author: LOOS WEB STUDIO
    Author URI: https://loos-web-studio.com/

    License: GNU General Public License
    License URI: http://www.gnu.org/licenses/gpl.html
*/


/* =========================================================
   1. Cocoon の「追加CSS」から移したもの（2026-11-23 時点の本番）
   Cocoon にしかない部分（.site-name-text、.author-box）は外した。
   ========================================================= */

/* タイトルつき囲み枠（how-to-do-toeic-workbook、set-goals） */
.point-box {
  position: relative;
  border: 5px solid #8BC34A;
  border-radius: 4px;
  margin: 1.8em 1em;
  padding: 5px 15px;
}
.point-title {
  position: absolute;
  padding: 0 0.5em;
  left: 20px;
  top: -20px;
  color: #555555;
  font-weight: bold;
  font-size: 1.2em;
  background-color: #ffffff;
}

.my_link_btn {
  display: inline-flex;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  transition: box-shadow 0.5s;
  border-radius: 5px;
  background: #f33;
  font-weight: bold;
  box-shadow: 0px 3px 6px #855;
}
.my_link_btn a {
  color: white;
  text-decoration: none;
  padding: 15px 18px;
}
.my_link_btn:hover {
  box-shadow: 0px 9px 12px #855;
}

/* 点線の囲み枠（ipad-english-study-guide、english-vocabulary-books、english-word-books-2025） */
.box4-blue {
  position: relative;
  width: 100%;
  max-width: none;
  margin: 2em 0;
  padding: 1.7em 2em;
  border: 2px dotted #0e7ac4;
  border-radius: 4px;
  text-align: left;
}
.box4-blue .box-title {
  position: absolute;
  top: -10px;
  left: 30px;
  background: #fff;
  color: #0e7ac4;
  padding: 0 10px;
  line-height: 1;
  font-size: 20px;
  font-weight: bold;
}
.box4-blue p {
  margin: 0;
  padding: 0;
}

.cta-wrapper {
  text-align: center;
  padding: 10px 0;
}
.cta-wrapper p {
  margin: 0;
}
.cta-title {
  font-weight: bold;
  margin-bottom: 2px;
  line-height: 1.2;
}
.cta-button {
  display: inline-block;
  background-color: #8dbbd9;
  color: #ffffff;
  padding: 18px 64px;
  border-radius: 999px;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  margin: 0;
}
.cta-note {
  margin-top: 2px;
  font-size: 14px;
  line-height: 1.2;
  color: #cc33cc;
}

/* AIプロンプト用ボックス（chatgpt-english-conversation-prompt、how-to-utilize-ai-to-learn-english） */
.prompt-box{border:2px solid #1E2761;border-radius:10px;overflow:hidden;margin:2em 0;background:#fff}
.prompt-box__head{display:flex;justify-content:space-between;align-items:center;
  background:#1E2761;color:#fff;padding:8px 14px;font-size:14px;font-weight:700}
.prompt-box__btn{background:#F96167;color:#fff;border:none;border-radius:6px;
  padding:6px 16px;font-size:13px;font-weight:700;cursor:pointer;transition:.2s;white-space:nowrap}
.prompt-box__btn:hover{opacity:.85}
.prompt-box__btn.done{background:#3BA55D}
.prompt-box pre{margin:0;padding:16px;background:#F7F9FC;color:#2A2A35;
  font-size:14px;line-height:1.8;white-space:pre-wrap;word-break:break-word;
  font-family:inherit;overflow-x:auto;border:none}
@media screen and (max-width:480px){
  .prompt-box pre{font-size:13px;padding:13px}
  .prompt-box__head{font-size:13px}
}


/* =========================================================
   2. SWELL に替えて出た崩れの手当て（ライブプレビュー 2026-11-23）
   ========================================================= */

/* 表の見出し部分（thead）で、白などの背景色を自分で付けたセルは、SWELL の白い文字をやめる。
   例：online-english-no-reservation の料金表「プレミアムプラン」の行が見えなくなっていた。
   セルに文字色を付けている場合は、そちらが優先される。 */
.post_content thead th[style*="background"],
.post_content thead td[style*="background"] {
  color: inherit;
}

/* 横スクロールの画像（nativecamp-review など）。
   SWELL の遅延読み込みで、まだ読み込まれていない画像が正方形の仮画像になり、枠の下に大きな余白ができていた。
   画像はどれも 1280×720 なので、16:9 に固定する。 */
.hero-image-gallery__item img {
  aspect-ratio: 16 / 9;
  object-fit: contain;
}

/* ボタンの上下の小さな文字（Cocoon のマイクロコピー）を、ボタンに合わせて中央にそろえる。
   SWELL のボタンは中央寄せなので、左寄せのままだとずれて見えていた（3回目のプレビュー）。 */
.post_content .micro-text.aligncenter,
.post_content .micro-text:has(+ .swell-block-button),
.post_content .swell-block-button + .micro-text {
  text-align: center;
}
.post_content .micro-text:has(+ .swell-block-button) {
  margin-bottom: .4em;
}
.post_content .swell-block-button + .micro-text {
  margin-top: -.8em;
}
