/* =========================================================
   01. Base Reset ＆ Global Settings
========================================================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Noto Sans JP", sans-serif;
  color: #333;
  background: #fff;
  line-height: 1.75;
  font-size: 16px;
  font-weight: 400;
}

/* 画像を崩れにくくする */
img {
  max-width: 100%;
  height: auto;
  display: block;
}


/* =========================================================
   02. Global Layout（inner）
========================================================= */

.inner {
  width: min(100%, 900px);
  margin: 0 auto;
  padding: 3em 1.5em;
}


/* =========================================================
   03. Global Title（h2.sec-title）
   ※ 全セクション完全統一
========================================================= */

.sec-title {
  font-family: "Noto Serif JP", serif;
  font-weight: 700;
  font-size: 2.2rem;
  color: #333;
  text-align: center;
  display: inline-block;
  margin-bottom: 1.2em;
  letter-spacing: 0.03em;
  position: relative;
}

.sec-title::after {
  content: "";
  display: block;
  width: 60px;          /* ← 全セクション統一幅 */
  height: 3px;
  background: #ff77b4;  /* ← ピンクに統一 */
  margin: 0.5em auto 0;
  border-radius: 2px;
}

h2.sec-title {
  width: 100%;
}


/* =========================================================
   04. Section 共通デザイン
========================================================= */

.section {
  padding: 2.5em 0;
  margin-bottom: 0.8em;
  background: transparent;
  position: relative;
}

/* 背景の交互色（必要に応じて使う） */
.section:nth-of-type(odd) {
  background: #FFF8FB;
}
.section:nth-of-type(even) {
  background: #fff;
}

/* セクション共通リード文（Section1のleadも統合） */
.section-lead {
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.85;
  text-align: center;
  color: #555;
  letter-spacing: 0.01em;

  max-width: 800px;
  margin: 0 auto 1.5em;
  padding: 0 1.2em;
}

/* セクション締め */
.section-end {
  text-align: center;
  font-size: 1.05rem;
  margin-top: 3em;
  font-weight: 600;
  color: #555;
}


/* =========================================================
   05. Responsive（スマホ統一ルール）
========================================================= */

@media (max-width: 768px) {
  /* ===== inner の上下余白を詰める ===== */
  .inner {
    padding: 2em 1.2em;   /* ← 3em → 2em に圧縮！ */
  }

  /* ===== タイトルサイズ統一 ===== */
  .sec-title {
    font-size: 1.6rem;
    margin-bottom: 0.6em; /* ← 見出しの下の余白も詰める */
  }

  .sec-title::after {
    width: 40px;
    height: 3px;
  }

  /* ===== セクション余白統一 ===== */
  .section {
    padding: 1.4em 0;     /* ← 1.8em → 1.4em に調整 */
    margin-bottom: 0.3em; /* ← 下も少し詰める */
  }

  /* ===== リード文統一 ===== */
  .section-lead {
    max-width: 100%;      /* ← 横幅めいっぱい使える */
    padding: 0 1em;       /* ← 読みやすい余白に縮小 */
    margin: 0 auto 1.2em;

    font-size: 1.05rem;
    line-height: 1.7;
  }

  /* ===== 基本文字サイズ ===== */
  body {
    font-size: 15px;   /* スマホ共通スケール */
    line-height: 1.7;
  }
}


/* =========================================================
   Header 
========================================================= */
.header img { 
  width: 100%; 
  display: block; 
  height: auto; }


/* =========================================================
   Sub Banner（三冠画像）
========================================================= */
.sub-banner {
  width: 100%;
  background: #fff; /* ←周囲も含め全部白にする */
  padding: 2em 0; /* 上下余白 */
  text-align: center;
  margin: 0; /* セクションとの隙間をコントロールしやすくする */
}

.sub-banner img {
  width: 100%;
  max-width: 900px;
  height: auto;
  display: block;
  margin: 0 auto;
}


/* =========================================================
   Section 1：About（ママのミカタ学校とは？）
========================================================= */

/* タイトル（全体統一済 → セクションでの個別指定は削除） */
/* 追加調整したい場合はここで上書き可能 */

/* YouTube 埋め込み */
.youtube-wrap {
  margin: 0 auto 2em;
  width: 100%;
  max-width: 700px;
  aspect-ratio: 16/9;
}

.youtube-wrap iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ---- スマホ ---- */
@media (max-width: 768px) {
  .youtube-wrap {
    padding: 0 1.2em;
    margin-bottom: 1.5em;
  }
}


/* 3つのポイント */
.point-list {
  list-style: none;
  padding: 0;
  margin: 2.5em auto 0;
  max-width: 700px;

  display: flex;
  flex-direction: column;
  gap: 1.4em;
}

.point-list li {
  background: #ffffff;
  border-radius: 14px;
  padding: 1.2em 1.5em;

  font-size: 1.05rem;
  font-weight: 600;
  color: #333;

  box-shadow: 0 6px 18px rgba(0,0,0,0.04);
  display: flex;
  align-items: center;
  gap: 1em;

  border: 1px solid #f5f5f5;
  border-left: 6px solid #ff9ac8;
}

/* チェックアイコン */
.point-list li::before {
  content: "";
  display: inline-block;
  width: 22px;
  height: 22px;
  flex-shrink: 0;

  border: 2px solid #ff9ac8;
  border-radius: 50%;

  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 24 24' stroke='%23ff9ac8' fill='none' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-size: 14px;
  background-repeat: no-repeat;
  background-position: center;
}

/* ---- スマホ ---- */
@media (max-width: 768px) {
  .point-list {
    padding: 0 1em;
  }

  .point-list li {
    border-radius: 12px;
  }
}



/* =========================================================
   Section 2：学べる在宅ワーク
========================================================= */

.work-lead {
  font-size: 1.3rem;
  line-height: 1.6;
  font-weight: 700;
  text-align: center;
  margin: 0.2em auto 1.8em;
  letter-spacing: 0.01em;
}

/* カード */
.section-work .work-item {
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 14px;
  margin-bottom: 2.5em;

  overflow: hidden;
  display: flex;
  flex-direction: row;
  align-items: stretch;

  box-shadow: 0 4px 14px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.section-work .work-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 22px rgba(0,0,0,0.08);
}

/* 画像 */
.work-img {
  width: 40%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.work-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* テキスト */
.work-text {
  width: 60%;
  padding: 1.8em 2em;
}

.section-work h3 {
  font-size: 1.35rem;
  margin-bottom: 0.4em;
  font-weight: 700;
}

.section-work .subtitle {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1em;
  color: #777;
}

/* ---- スマホ ---- */
@media (max-width: 768px) {
  .section-work .work-item {
    flex-direction: column;
  }

  .work-img, .work-text {
    width: 100%;
  }

  .work-text {
    padding: 1.5em 1.3em;
  }
}


/* =========================================================
   Section 2：＋αで身につく実践スキル（ミニカード）
========================================================= */

.subskill-block {
  margin-top: 3em;
  padding-top: 2em;
  border-top: 1px solid #f3e3ee;
}

.subskill-title {
  font-size: 1.3rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 0.6em;
}

.subskill-lead {
  text-align: center;
  font-size: 0.95rem;
  line-height: 1.8;
  color: #666;
  margin-bottom: 1.8em;
}

.subskill-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2em;
}

.subskill-card {
  flex: 1 1 calc(33.333% - 1.2em);
  min-width: 220px;
  background: #fff;
  border-radius: 12px;
  padding: 1.3em 1.4em;

  border: 1px solid #f5d3e4;
  box-shadow: 0 3px 10px rgba(0,0,0,0.03);
}

.subskill-card h4 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.4em;
  display: flex;
  gap: 0.4em;
}

/* 星マーク */
.subskill-card h4::before {
  content: "★";
  font-size: 1.1rem;
  color: #ff77b4;
}

.subskill-card p {
  font-size: 0.9rem;
  line-height: 1.7;
  color: #555;
}

/* ---- スマホ ---- */
@media (max-width: 768px) {
  .subskill-cards {
    flex-direction: column;
  }
}


/* =========================================================
   Section 3：学びのステップ
========================================================= */

.section-start .catch {
  font-size: 1.3rem;
  line-height: 1.6;
  font-weight: 700;
  text-align: center;
  margin-bottom: 1.5em;
}

/* 手順（FLOW） */
.step-flow {
  display: flex;
  justify-content: space-between;
  align-items: center;

  gap: 1.5em;
  margin-top: 2.5em;
}

/* カード */
.step-card {
  flex: 1;
  background: #ffffff;

  border: 1px solid #f1dce5;
  border-radius: 18px;
  padding: 2em 1.5em 1.8em;

  padding-top: 2.6em; /* 番号バッジ分 */
  text-align: left;

  box-shadow: 0 8px 20px rgba(255, 182, 212, 0.12);
  transition: 0.3s ease;

  position: relative; 
}

.step-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 26px rgba(255, 182, 212, 0.2);
}

/* 番号丸 */
.step-badge {
  position: absolute;
  top: -12px;
  left: -12px;

  width: 32px;
  height: 32px;
  background: #ff77b4;
  color: #fff;

  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 1rem;
  font-weight: 700;
  box-shadow: 0 4px 10px rgba(255,119,180,0.3);
}

/* カード内画像 */
.step-card img {
  width: 90px;
  margin: 0 auto 1em;
}

/* ---- スマホ ---- */
@media (max-width: 768px) {

  .section-start .catch {
    font-size: 1.1rem;
    max-width: 90%;
    margin: 0 auto 1.5em;
  }

  .step-flow {
    flex-direction: column;
  }

  .step-card {
    padding: 1.8em 1.3em;
  }

  .step-card img {
    width: 80px;
  }

  .step-card h4 {
    font-size: 1.2rem;   /* ← 好みに合わせて調整OK */
    margin-bottom: 0.6em;
  }

  .arrow {
    display: none;
  }
}


/* =========================================================
   Section 4：サポート体制
========================================================= */

.section-support .support-lead {
  text-align: center;
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 2.5em;
}

.section-support .pink {
  color: #ef8bbb;
  font-weight: bold;
}

/* カードリスト */
.support-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2em;
}

@media (max-width: 768px) {
  .support-list {
    grid-template-columns: 1fr;
  }
}

/* カード */
.support-card {
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 10px;
  padding: 1.5em 1.8em;

  box-shadow: 0 3px 10px rgb(0 0 0 / 6%);
  transition: 0.3s ease;
}

.support-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgb(0 0 0 / 10%);
}

/* 画像 */
.support-img {
  width: 100%;
  height: 180px;
  background: #f9f9f9;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 1em;
  border: 1px solid #eee;
}

.support-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* テキスト */
.support-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.8em;
}

.support-card p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #555;
}

/* 締め文 */
.support-end {
  text-align: center;
  font-size: 1.05rem;
  margin-top: 3em;
  font-weight: 600;
  color: #555;
}


/* =========================================================
   Section 5：選ばれる理由（タイムライン）
========================================================= */

.section-reason .pink {
  color: #ef8bbb;
  font-weight: bold;
}

/* 共通 */
.timeline {
  position: relative;
  margin: 1.5em auto;
  max-width: 680px;
  padding-left: 50px; /* h3 左の余白を増やす */
}

.timeline::before {
  content: "";
  position: absolute;
  left: 18px; /* 丸の中心と縦線を揃える */
  top: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(#ff77b4, #ffdcec);
  border-radius: 3px;
}

.timeline-item {
  position: relative;
  padding: 0 0 2.2em 0;
}

/* 丸（絶対にズレない配置） */
.timeline-node {
  width: 18px;
  height: 18px;
  background: #ff77b4;
  border-radius: 50%;
  position: absolute;
  left: 0; /* h3文字の左端に揃う */
  
  top: 6px; /* ← ★ h3 の中心と完全に一致する高さ（px基準） */

  box-shadow: 0 0 0 6px #ffe4f1;
}

/* h3（line-height固定でズレ防止） */
.timeline-content h3 {
  font-family: "Noto Serif JP", serif;
  font-size: 1.22rem;
  font-weight: 600;
  letter-spacing: 0.03em;

  line-height: 1.4;     /* ★ 行の高さ固定 */
  margin-left: 32px;     /* 左余白（丸と文字の間） */
  margin-bottom: 0.4em;
}

/* 説明文 */
.timeline-content p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #666;
}

/*スマホ版*/
@media (max-width: 768px) {

  .timeline {
    padding-left: 38px;
  }

  .timeline-node {
    width: 15px;
    height: 15px;
    left: 0;

    top: 4px; /* ← ★ スマホのh3サイズに合わせた中心位置 */
    
    box-shadow: 0 0 0 5px #ffe4f1;
  }

  .timeline-content h3 {
    font-size: 1.15rem;
    line-height: 1.35; /* ★ 行高さ固定 */
    margin-left: 28px; /* スマホもh3左余白を増やす */
    margin-bottom: 0.38em;
  }
}


/* =========================================================
   Section 6：実践者の声
========================================================= */

.section-voice .inner {
  max-width: 950px;
  padding-bottom: 1em;
}

/* アイテム */
.voice-item {
  display: flex;
  align-items: center;
  gap: 2.5em;

  margin-bottom: 2em;
  padding-bottom: 1.5em;
  border-bottom: 1px solid #ffd5e8;
}

.voice-item:last-child {
  border-bottom: none;
  margin-bottom: 1.5em;
  padding-bottom: 0;
}

/* 交互 */
.voice-item.reverse {
  flex-direction: row-reverse;
}

/* 写真 */
.voice-photo img {
  width: 230px;
  height: 230px;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: 0 6px 14px rgba(0,0,0,0.08);
}

/* テキスト */
.voice-text {
  flex: 1;
}

.voice-tag {
  display: inline-block;
  background: #ffe6f1;
  color: #ff77b4;
  font-size: 0.85rem;
  padding: 0.3em 0.9em;
  border-radius: 1em;
  margin-bottom: 0.4em;
}

.voice-text h3 {
  font-size: 1.4rem;
  font-family: "Noto Serif JP", serif;
  font-weight: 700;
  margin: 0.2em 0 0.5em;
}

.voice-text p {
  font-size: 0.98rem;
  line-height: 1.8;
  color: #555;
}

.voice-text .note {
  font-size: 0.85rem;
  color: #999;
}

/* ---- スマホ ---- */
@media (max-width: 768px) {

  .voice-item,
  .voice-item.reverse {
    flex-direction: column;
    text-align: left;
  }

  .voice-item {
    margin-bottom: 1.4em;
    padding-bottom: 1em;
  }

  .voice-photo img {
    width: 200px;
    height: 200px;
    margin: 0 auto;
  }
}


/* =========================================================
   Section 7：代表講師あいさつ
========================================================= */

.section-greeting .inner {
  max-width: 950px;
}

/* レイアウト */
.greeting-wrap {
  display: flex;
  align-items: flex-start;
  gap: 2.8em;
  max-width: 900px;
  margin: 0 auto;
}

/* 写真エリア（PC） */
.greeting-photo {
  flex-shrink: 0;
}

/* 写真 */
.greeting-photo img {
  width: 240px;
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.08);
  padding: 0.35em;
  background: #fff;
  display: block;       /* ← 基本の中央揃えの前準備 */
}

/* バッジ */
.greeting-tag {
  display: inline-block;
  background: #fff4d6;
  color: #a8872c;
  font-size: 0.9rem;
  padding: 0.45em 1.1em;
  border-radius: 1.2em;
  font-weight: 600;
  margin-bottom: 0.7em;
}

/* 名前 */
.greeting-name {
  font-family: "Noto Serif JP", serif;
  font-size: 1.4rem;
  font-weight: 700;
}

/* タイトル */
.greeting-title {
  font-size: 1.65rem;
  font-family: "Noto Serif JP", serif;
  font-weight: 700;
  margin-bottom: 0.8em;
}

/* 本文 */
.greeting-text p {
  font-size: 1rem;
  line-height: 1.9;
  margin-bottom: 1.2em;
  color: #555;
  text-align: justify;
}

/* ---- スマホ ---- */
@media (max-width: 768px) {

  .greeting-wrap {
    flex-direction: column;
    text-align: center;
    gap: 1.6em;
  }

  /* ★ 親ごと中央揃え（今回の本命） */
  .greeting-photo {
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .greeting-photo img {
    width: 230px;
    margin: 0 auto;
  }

  .greeting-title {
    font-size: 1.45rem;
  }

  .greeting-text p {
    text-align: left;
  }
}


/* =========================================================
   Section 8：FAQ
========================================================= */

.section-faq .faq-list {
  max-width: 850px;
  margin: 2.5em auto 0;
}

/* アイテム */
.faq-item {
  margin-bottom: 2.8em;
}

/* Q */
.faq-q {
  display: flex;
  align-items: center;
  font-weight: 700;
  font-size: 1.15rem;
  margin-bottom: 0.8em;
}

.faq-q-icon {
  display: inline-flex;
  width: 38px;
  height: 38px;
  font-size: 1.1rem;
  color: #fff;

  margin-right: 0.6em;
  border-radius: 50%;
  justify-content: center;
  align-items: center;

  background: radial-gradient(circle at 30% 30%, #ff8fcb, #ff4fa3);
  box-shadow:
    0 3px 7px rgba(255,95,150,0.35),
    inset 0 2px 3px rgba(255,255,255,0.6),
    inset 0 -2px 4px rgba(0,0,0,0.08);
}

/* A */
.faq-a {
  background: #fff9fc;
  border-radius: 14px;
  padding: 1.5em 1.8em;
  border: 1px solid #ffe7f1;
  box-shadow: 0 6px 15px rgba(255,165,205,0.15);
}

.faq-a p {
  margin: 0;
  font-size: 0.96rem;
  line-height: 1.75;
  color: #555;
}

/* ---- スマホ ---- */
@media (max-width: 768px) {
  .faq-q {
    font-size: 1.05rem;
    line-height: 1.4;   /* ← これが最重要！高さ確保 */
    align-items: center;
  }

  .faq-q-icon {
    width: 34px;
    height: 34px;
    font-size: 1rem;
    flex-shrink: 0;     /* ← 潰れ防止（追加推奨） */
  }

  .faq-a {
    padding: 1.3em 1.4em;
  }
}


/* =========================================================
   Section 9：メッセージ（レター）
========================================================= */

.section-message .inner {
  max-width: 880px;
}

/* 写真（最上部の大きい画像） */
.message-photo {
  margin-bottom: 2.5em;
}

.message-photo img {
  display: block;
  margin-left: auto;
  margin-right: auto;
  width: 85%;
  max-width: 720px;
  border-radius: 14px;
  box-shadow: 0 8px 22px rgba(0,0,0,0.10);
}

/* レターボックス */
.message-letter {
  background: #fffdf9;
  border: 1px solid #f1e1d6;
  border-radius: 18px;
  padding: 2.4em 2.6em;
  margin-bottom: 3em;

  box-shadow: 0 8px 24px rgba(0,0,0,0.05);
  background-image: linear-gradient(
    to bottom,
    rgba(255,255,255,0.7),
    rgba(255,250,246,0.7)
  );
}

.message-letter h3 {
  font-family: "Noto Serif JP", serif;
  font-size: 1.45rem;
  color: #c26d89;
  margin-bottom: 0.7em;
  border-left: 4px solid #ffb6d5;
  padding-left: 0.6em;
}

.message-letter p {
  font-size: 1rem;
  line-height: 1.95;
  margin-bottom: 1.8em;
  color: #555;
}

/* CTAボタン */
.cta-button.large {
  display: block;
  width: 100%;
  max-width: 540px;
  margin: 2em auto 1.2em;
  padding: 1.2em 1em;

  font-size: 1.45rem;
  font-weight: 700;
  text-align: center;
  color: #fff;
  text-decoration: none !important;

  border-radius: 28px;
  background: linear-gradient(90deg, #34e3a2, #2dd6a0);
  box-shadow: 0 10px 24px rgba(52,227,162,0.25);
  transition: 0.25s ease;
}

.cta-button.large:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(52,227,162,0.35);
}

/* 注意書き */
.cta-note {
  text-align: center;
  color: #888;
  font-size: 0.9rem;
  margin-top: -0.4em;
  margin-bottom: 2em;
}

/* フロー画像（image_22.png のエリア） */
.flow-image {
  text-align: center;
  margin-top: 1.8em;
}

.flow-image img {
  display: block;              /* ← 中央揃えに必須 */
  margin-left: auto;           /* ← 中央揃え */
  margin-right: auto;          /* ← 中央揃え */
  width: 75%;
  max-width: 520px;
}

/* ---- スマホ ---- */
@media (max-width: 768px) {

  .message-letter {
    padding: 1.8em 1.4em;
  }

  .message-photo img {
    width: 100%;
  }

  .flow-image img {
    width: 100%;               /* ← スマホでは幅いっぱいに */
    max-width: none;
  }
}


/* =========================================================
   Footer
========================================================= */

.footer {
  background: #f7bfd9;
  padding: 1.8em 0 1.6em;
  margin-top: 3em;
}

.footer-inner {
  text-align: center;
  color: #fff;
  font-size: 0.9rem;
}

.footer-links {
  margin-bottom: 0.6em;
}

.footer-links a {
  color: #ffffff;
  text-decoration: none;
  font-size: 0.95rem;
}

.footer-links a:hover {
  text-decoration: underline;
}

.footer-links .divider {
  margin: 0 0.6em;
  color: #ffeef7;
}

.footer-copy {
  font-size: 0.85rem;
  color: #ffffff;
  opacity: 0.9;
}