/* =========================================================
   移植コンテンツ共通スタイル（ホームルーム／研究室／すすめかた教室／虫博士）
   アーカイブと同じエディトリアル調。
   配色: 紺 #1d2087 / オレンジ #ea5504 / 青 #0088db / 文字 #231815
   ========================================================= */

.cnt {
  max-width: 1080px;
  margin: 40px auto 80px;
  padding: 56px 48px 72px;
  background: #fff;
  color: #231815;
}
@media screen and (max-width: 743px) {
  .cnt {
    margin: 16px 12px 56px;
    padding: 32px 20px 48px;
  }
}

/* ---------- パンくず ---------- */
.cnt-bc {
  font-size: 1.15rem;
  color: #9b9b9b;
  margin-bottom: 28px;
}
.cnt-bc a {
  color: #0088db;
  text-decoration: none;
}
.cnt-bc a:hover { text-decoration: underline; }
.cnt-bc span::before {
  content: "›";
  margin: 0 8px;
  color: #c9c9c9;
}

/* ---------- ページヘッダー ---------- */
.cnt-head {
  margin-bottom: 44px;
}
.cnt-head .eyebrow {
  display: block;
  font-size: 1.1rem;
  font-weight: bold;
  letter-spacing: 0.35em;
  color: #ea5504;
  margin-bottom: 10px;
}
.cnt-head h2 {
  font-size: 2.6rem;
  font-weight: bold;
  line-height: 1.3;
  letter-spacing: 0.06em;
}
.cnt-head .lead {
  margin-top: 12px;
  font-size: 1.35rem;
  color: #767676;
  line-height: 2;
}

/* ---------- セクション見出し（番号＋オレンジバー） ---------- */
.cnt-sec {
  margin-top: 56px;
}
.cnt-sec__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 14px;
  padding: 0 0 12px 14px;
  border-bottom: 1px solid #e3e3e3;
  border-left: 4px solid #ea5504;
  margin-bottom: 24px;
}
.cnt-sec__num {
  font-size: 1.4rem;
  font-weight: bold;
  color: #ea5504;
  letter-spacing: 0.08em;
}
.cnt-sec__ttl {
  font-size: 1.9rem;
  font-weight: bold;
  letter-spacing: 0.08em;
  line-height: 1.3;
}
.cnt-sec__note {
  font-size: 1.15rem;
  color: #9b9b9b;
  margin-left: auto;
}
@media screen and (max-width: 743px) {
  .cnt-sec { margin-top: 44px; }
  .cnt-sec__note { margin-left: 0; width: 100%; }
}

/* ---------- 本文 ---------- */
.cnt p.body,
.cnt-sec > p,
.step__body p {
  font-size: 1.35rem;
  line-height: 2;
  margin-bottom: 1em;
}
.cnt strong { color: #1d2087; }

/* ---------- 博士・先生のコメント（吹き出し） ---------- */
.hakase {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  background: #f2f7fb;
  border: 1px solid #d3edf9;
  border-radius: 8px;
  padding: 18px 20px;
  margin: 8px 0 28px;
}
.hakase img {
  flex-shrink: 0;
  width: 80px;
  height: auto;
}
.hakase p {
  font-size: 1.3rem;
  line-height: 1.9;
}
.hakase .who {
  display: block;
  font-size: 1.1rem;
  font-weight: bold;
  color: #1d2087;
  letter-spacing: 0.12em;
  margin-bottom: 4px;
}
@media screen and (max-width: 743px) {
  .hakase { flex-direction: row; padding: 14px; }
  .hakase img { width: 60px; }
}

/* ---------- ステップ（すすめ方・育て方） ---------- */
.step {
  display: flex;
  gap: 18px;
  padding: 22px 0;
  border-bottom: 1px dashed #e3e3e3;
}
.step:last-of-type { border-bottom: none; }
.step__num {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #1d2087;
  color: #fff;
  font-size: 1.6rem;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
}
.step__body { min-width: 0; }
.step__body h4 {
  font-size: 1.5rem;
  font-weight: bold;
  color: #1d2087;
  margin-bottom: 8px;
  line-height: 1.5;
}
.step__body p {
  font-size: 1.3rem;
  line-height: 1.9;
}
@media screen and (max-width: 743px) {
  .step { gap: 12px; }
  .step__num { width: 32px; height: 32px; font-size: 1.3rem; }
}

/* ---------- 図版 ---------- */
.fig {
  margin: 14px 0;
  text-align: center;
}
.fig img {
  max-width: 100%;
  height: auto;
}
.fig figcaption {
  font-size: 1.1rem;
  color: #9b9b9b;
  margin-top: 6px;
}
.fig-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: flex-start;
  margin: 14px 0;
}
.fig-row .fig { margin: 0; }
.fig--bubble img { max-width: 505px; width: 100%; }

/* ---------- 基本情報テーブル ---------- */
.info-table {
  width: 100%;
  border-collapse: collapse;
  margin: 8px 0 20px;
  font-size: 1.3rem;
}
.info-table th,
.info-table td {
  border: 1px solid #e3e3e3;
  padding: 10px 14px;
  text-align: left;
  line-height: 1.6;
}
.info-table th {
  width: 9em;
  background: #f2f7fb;
  color: #1d2087;
  font-weight: bold;
  white-space: nowrap;
}
@media screen and (max-width: 743px) {
  .info-table th { width: 7em; }
}

/* ---------- コラム・注意ボックス ---------- */
.col-box {
  background: #f7f7f7;
  padding: 20px 22px;
  margin: 24px 0 8px;
}
.col-box h4 {
  font-size: 1.35rem;
  font-weight: bold;
  color: #1d2087;
  margin-bottom: 8px;
}
.col-box h4::before {
  content: "＋";
  color: #ea5504;
  margin-right: 6px;
}
.col-box p {
  font-size: 1.25rem;
  line-height: 1.9;
}
.warn-box {
  border: 2px solid #ea5504;
  border-radius: 8px;
  padding: 18px 20px;
  margin: 20px 0;
}
.warn-box h4 {
  font-size: 1.35rem;
  font-weight: bold;
  color: #ea5504;
  margin-bottom: 8px;
}
.warn-box p {
  font-size: 1.25rem;
  line-height: 1.9;
}

/* ---------- リスト ---------- */
.note-list {
  margin: 8px 0 16px;
}
.note-list li {
  font-size: 1.3rem;
  line-height: 1.9;
  padding-left: 1.2em;
  text-indent: -1.2em;
  margin-bottom: 8px;
}
.note-list li::before {
  content: "●";
  color: #ea5504;
  font-size: 0.85em;
  margin-right: 0.5em;
}
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 16px;
}
.tag-list li {
  font-size: 1.25rem;
  border: 1px solid #d3edf9;
  background: #f2f7fb;
  color: #1d2087;
  border-radius: 999px;
  padding: 4px 14px;
}

/* ---------- カードメニュー（ハブページの導線） ---------- */
.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 20px;
}
.menu-card {
  display: block;
  border: 1px solid #e3e3e3;
  padding: 20px;
  text-decoration: none;
  color: #231815;
  transition: border-color .2s, transform .2s;
}
.menu-card:hover {
  border-color: #ea5504;
  transform: translateY(-2px);
}
.menu-card .tag {
  display: block;
  font-size: 1.05rem;
  font-weight: bold;
  letter-spacing: 0.12em;
  color: #ea5504;
  margin-bottom: 6px;
}
.menu-card h4 {
  font-size: 1.5rem;
  font-weight: bold;
  color: #1d2087;
  line-height: 1.5;
  margin-bottom: 6px;
}
.menu-card p {
  font-size: 1.2rem;
  color: #767676;
  line-height: 1.7;
}
.menu-card .thumb {
  text-align: center;
  margin-bottom: 10px;
}
.menu-card .thumb img {
  max-height: 110px;
  width: auto;
  max-width: 100%;
}
@media screen and (max-width: 743px) {
  .menu-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .menu-card { padding: 14px; }
}

/* ---------- キャラクター紹介 ---------- */
.chara-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px 24px;
}
.chara-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  border-top: 1px solid #e3e3e3;
  padding-top: 20px;
}
.chara-card img {
  flex-shrink: 0;
  width: 110px;
  height: auto;
}
.chara-card h4 {
  font-size: 1.5rem;
  font-weight: bold;
  color: #1d2087;
  margin-bottom: 6px;
}
.chara-card h4 span {
  font-size: 1.05rem;
  color: #ea5504;
  letter-spacing: 0.12em;
  margin-right: 8px;
}
.chara-card p {
  font-size: 1.25rem;
  line-height: 1.8;
}
@media screen and (max-width: 743px) {
  .chara-grid { grid-template-columns: 1fr; }
}

/* ---------- 虫はかせQ&A ---------- */
.qa-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0 6px;
}
.qa-tools select,
.qa-tools input {
  font-size: 1.3rem;
  padding: 8px 12px;
  border: 1px solid #c9c9c9;
  border-radius: 6px;
  background: #fff;
  color: #231815;
}
.qa-tools input { flex: 1; min-width: 200px; }
.qa-count {
  font-size: 1.2rem;
  color: #767676;
  margin-bottom: 16px;
}
.qa-item {
  border-bottom: 1px solid #e3e3e3;
}
.qa-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
  padding: 14px 4px;
}
.qa-item summary::-webkit-details-marker { display: none; }
.qa-item summary:hover { background: #f7fbfe; }
.qa-q, .qa-a {
  flex-shrink: 0;
  font-weight: bold;
  font-size: 1.4rem;
  width: 26px; height: 26px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.qa-q { background: #1d2087; color: #fff; }
.qa-a { background: #ea5504; color: #fff; }
.qa-question {
  flex: 1;
  min-width: 200px;
  font-size: 1.3rem;
  font-weight: bold;
  line-height: 1.7;
}
.qa-meta {
  font-size: 1.05rem;
  color: #9b9b9b;
  margin-left: auto;
}
.qa-answer {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: #fff6f1;
  padding: 14px;
  margin: 0 4px 14px;
}
.qa-answer p {
  font-size: 1.3rem;
  line-height: 1.9;
}
.qa-more {
  display: block;
  margin: 24px auto 0;
  font-size: 1.3rem;
  font-weight: bold;
  color: #fff;
  background: #0088db;
  border: none;
  border-radius: 10px;
  padding: 12px 32px;
  cursor: pointer;
}
.qa-more:hover { opacity: 0.8; }

/* ---------- ずかん ---------- */
.zukan-back {
  font-size: 1.25rem;
  margin-bottom: 20px;
}
.zukan-back a { color: #0088db; text-decoration: none; }
.zukan-back a:hover { text-decoration: underline; }
.zukan-grid .thumb img { max-height: 120px; }

/* ---------- お問い合わせフォーム ---------- */
.form-note {
  background: #f2f7fb;
  border: 1px solid #d3edf9;
  border-radius: 8px;
  padding: 16px 18px;
  font-size: 1.25rem;
  line-height: 1.9;
  margin-bottom: 28px;
}
.form-note a { color: #0088db; }
.contact-form dl {
  border-top: 1px solid #e3e3e3;
}
.contact-form .form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  padding: 20px 4px;
  border-bottom: 1px solid #e3e3e3;
}
.contact-form dt {
  width: 12em;
  flex-shrink: 0;
  font-size: 1.35rem;
  font-weight: bold;
  color: #231815;
  padding-top: 8px;
}
.contact-form dt .req {
  display: inline-block;
  margin-left: 8px;
  font-size: 1.05rem;
  color: #fff;
  background: #ea5504;
  border-radius: 4px;
  padding: 2px 8px;
  vertical-align: middle;
}
.contact-form dt .opt {
  display: inline-block;
  margin-left: 8px;
  font-size: 1.05rem;
  color: #767676;
  background: #ededed;
  border-radius: 4px;
  padding: 2px 8px;
  vertical-align: middle;
}
.contact-form dd {
  flex: 1;
  min-width: 260px;
}
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form select,
.contact-form textarea {
  width: 100%;
  font-size: 1.35rem;
  padding: 10px 12px;
  border: 1px solid #c9c9c9;
  border-radius: 6px;
  background: #fff;
  color: #231815;
  font-family: inherit;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: 2px solid #0088db;
  border-color: #0088db;
}
.contact-form select { width: auto; min-width: 10em; }
.contact-form textarea { line-height: 1.7; resize: vertical; }
.contact-form .radio-group {
  display: flex;
  gap: 24px;
  padding-top: 8px;
}
.contact-form .radio-group label {
  font-size: 1.35rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}
.contact-form .field-hint {
  font-size: 1.1rem;
  color: #9b9b9b;
  margin-top: 6px;
}
.contact-form .field-error {
  font-size: 1.15rem;
  color: #ea5504;
  font-weight: bold;
  margin-top: 6px;
  display: none; /* JS/サーバー側でエラー時に表示 */
}
.contact-submit {
  text-align: center;
  margin-top: 36px;
}
.contact-submit button {
  font-size: 1.6rem;
  font-weight: bold;
  color: #fff;
  background: #0088db;
  border: none;
  border-radius: 10px;
  padding: 14px 64px;
  cursor: pointer;
  transition: opacity .2s;
}
.contact-submit button:hover { opacity: 0.85; }
.contact-privacy {
  font-size: 1.2rem;
  color: #767676;
  text-align: center;
  line-height: 1.9;
  margin-top: 20px;
}
.contact-privacy a { color: #0088db; }
@media screen and (max-width: 743px) {
  .contact-form .form-row { flex-direction: column; gap: 4px; }
  .contact-form dt { width: auto; padding-top: 0; }
  .contact-submit button { width: 100%; padding: 14px 0; }
}

/* サンクス（送信完了） */
.thanks-box {
  text-align: center;
  padding: 40px 20px;
}
.thanks-box .thanks-ttl {
  font-size: 2rem;
  font-weight: bold;
  color: #1d2087;
  margin-bottom: 16px;
}
.thanks-box p {
  font-size: 1.35rem;
  line-height: 2;
  color: #4b4b4b;
}

/* ---------- ページ下部の導線 ---------- */
.cnt-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 48px;
}
.cnt-links a {
  font-size: 1.3rem;
  font-weight: bold;
  text-decoration: none;
  border-radius: 10px;
  padding: 10px 26px;
  transition: opacity .2s;
}
.cnt-links a:hover { opacity: 0.75; }
.cnt-links a.primary {
  background: #0088db;
  border: 1px solid #0088db;
  color: #fff;
}
.cnt-links a.ghost {
  border: 1px solid #0000ff;
  color: #0000ff;
}
