/* ==============================
   ME-Master ページ専用CSS
============================== */
.me-hero {
  position: relative;
  height: 440px;
  color: #fff;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  background: url("../images/me_master/me_master1.png") center/cover no-repeat;
  overflow: hidden;
}

.me-hero .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(0, 20, 60, 0.3), rgba(0, 10, 25, 0.4));
  z-index: 1;
  pointer-events: none;   /* ★ タップを透過させる */
}

.me-hero .container { position: relative; z-index: 2; }
.me-hero h1 {
  font-size: 2.8rem;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
  text-shadow: 0 6px 12px rgba(0,0,0,0.6);
  opacity: 0;
  animation: fadeInHero 1s ease forwards;
}
.me-hero p {
  font-size: 1.1rem;
  color: #eef2ff;
  opacity: 0;
  animation: fadeInHero 1.4s ease forwards;
}

@keyframes fadeInHero {
  to { opacity: 1; transform: translateY(0); }
}

/* ===== 概要 ===== */
.me-overview {
  text-align: center;
  padding: 80px 20px;
  background: linear-gradient(180deg, #f0f8f0 0%, #ffffff 100%);
}
.me-overview h2 { font-size: 1.9rem; color: #003366; }

.section-divider-green {
  height: 2px;
  background: linear-gradient(to right, transparent, #2d8659, #5fb88f, #2d8659, transparent);
  margin: 20px auto 30px;
  max-width: 600px;
  opacity: 0.8;
}
.me-overview h2 span {
  display: block;
  font-size: 0.9rem;
  color: #6a7db0;
  margin-top: 6px;
}
.me-overview p { color: #333; line-height: 1.9; margin-top: 20px; }

/* ==============================
   ５つの特長（緑メタリック版）
============================== */
.me-feature-green {
  background: linear-gradient(180deg, #f8fff8 0%, #ffffff 100%);
  padding: 100px 20px;
  text-align: center;
}
.me-feature-green h2 {
  font-size: 2rem;
  color: #ffffff;
  font-weight: 700;
  margin-bottom: 60px;
  display: inline-block;
  background: linear-gradient(135deg, #007040, #00aa70);
  padding: 20px 40px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 100, 50, 0.3);
}

/* --- 枠とリスト全体 --- */
.feature-block-green {
  text-align: left;
  max-width: 880px;
  margin: 0 auto;
  border: 2px solid #007040;
  border-radius: 12px;
  padding: 32px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 2px 8px rgba(0, 100, 50, 0.08);
}
.feature-list-green {
  list-style: none;
  counter-reset: num;
  padding: 0;
  margin: 0;
}
.feature-list-green li {
  counter-increment: num;
  position: relative;
  padding-left: 3.5em;
  margin-bottom: 20px;
  padding-bottom: 20px;
  font-size: 1rem;
  line-height: 1.9;
  color: #333;
  border-bottom: 1px solid #dde9df;
}
.feature-list-green li:last-child {
  border-bottom: none; margin-bottom: 0; padding-bottom: 0;
}
.feature-list-green li::before {
  content: counter(num);
  position: absolute; left: 0; top: 0.05em;
  width: 2em; height: 2em; border-radius: 50%;
  background: linear-gradient(135deg, #00aa70, #007040);
  color: #fff; font-weight: 700; text-align: center; line-height: 2em;
  font-size: 1rem; box-shadow: 0 3px 8px rgba(0,0,0,0.15);
}

/* 見出し強調と本文のメリハリ */
.feature-list-green strong {
  color: #005c3a;
  font-weight: 700;
  font-size: 1.26rem;
  display: inline-block;
  margin-bottom: 6px;
  letter-spacing: 0.02em;
  line-height: 1.08;
}

/* ハイライト（グリーンペン効果） */
.highlight-green {
  background: linear-gradient(transparent 60%, #b2f0c0 60%, #b2f0c0 85%, transparent 85%);
  padding: 2px 4px;
  border-radius: 2px;
  font-weight: 600;
}

/* 緑の英語タグボタン */
.feature-tag-green {
  display: inline-block;
  background: linear-gradient(135deg, #00aa70, #007040);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  box-shadow: 0 2px 6px rgba(0, 112, 64, 0.3);
  margin-left: 8px;
  vertical-align: baseline;
  transition: all 0.3s ease;
}

.feature-tag-green:hover {
  transform: scale(1.05);
  box-shadow: 0 3px 8px rgba(0, 112, 64, 0.4);
}

/* ===== 標準機能 ===== */


/* ==============================
   標準的な機能（ME-Master版 with 背景ロゴ）
============================== */
.memaster-standard {
  position: relative;
  background: linear-gradient(135deg, rgba(240, 255, 245, 0.97), rgba(255, 255, 255, 0.98));
  overflow: hidden;
  padding: 100px 20px 80px;
  text-align: center;
}

/* 背景装飾：SVG線 */
.memaster-standard::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../images/bg_standard_lines.svg") center/cover no-repeat;
  opacity: 0.18;
  z-index: 0;
}

/* 左上の光 */
.memaster-standard::after {
  content: "";
  position: absolute;
  top: -220px;
  left: -220px;
  width: 640px;
  height: 640px;
  border-radius: 50%;
  background: radial-gradient(
    circle at 35% 35%,
    rgba(255, 255, 255, 0.9),
    rgba(210, 255, 230, 0.7) 40%,
    rgba(160, 255, 200, 0.2) 70%,
    rgba(150, 255, 180, 0) 100%
  );
  filter: blur(14px);
  opacity: 0.85;
  z-index: 0;
}

/* === 追加：背景ロゴ === */
.memaster-standard .background-logo {
  position: absolute;
  top: -100px;
  left: -100px;
  width: 600px;
  height: 600px;
  background: url("../images/me.png") center/contain no-repeat;
  opacity: 0.12;
  z-index: 0;
  filter: blur(0.3px);
  pointer-events: none;
}

/* 右下の淡い小円 */
.memaster-standard .lower-glow {
  position: absolute;
  bottom: 80px;
  right: -120px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(
    circle at 40% 40%,
    rgba(200, 255, 220, 0.8),
    rgba(180, 255, 210, 0.4) 60%,
    rgba(160, 255, 200, 0) 100%
  );
  filter: blur(14px);
  opacity: 0.4;
  z-index: 0;
}

/* 前面要素 */
.memaster-standard .container,
.memaster-standard h2 {
  font-size: 2rem;
  color: #003366;
  margin-bottom: 50px;
  position: relative;
  display: inline-block;
  text-align: center;
  z-index: 1;
}

.memaster-standard h2::after {
  content: "";
  position: absolute;
  bottom: -12px;
  left: 50%;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #c0d2ff, #e0cfff);
  transform: translateX(-50%);
  border-radius: 2px;
}

.memaster-standard h2 span {
  display: block; 
  font-size: 0.9rem; 
  color: #6a7db0; 
  margin-top: 6px;
  text-decoration: none;
}

.memaster-standard .container,
.memaster-standard ul {
  position: relative;
  z-index: 1;
}

/* 以降（h2, ul, li など）は前回と同じ */


/* --- 段組みリスト --- */
.standard-columns ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px 40px;
  max-width: 1100px;
  margin-inline: auto;
  text-align: left;
}

.standard-columns li {
  line-height: 1.9;
  font-size: 0.95rem;
  color: #333;
  letter-spacing: 0.02em;
  border-bottom: 1px dashed #cde8d8;
  padding: 16px;
  border-radius: 8px;
  background-color: #f6fff9;
}

/* PC: 2行ごとに色を切り替え */
.standard-columns li:nth-child(4n+1),
.standard-columns li:nth-child(4n+2) {
  background-color: #e7f9ef;
}

.standard-columns li:nth-child(4n+3),
.standard-columns li:nth-child(4n) {
  background-color: #ffffff;
}

.standard-columns strong {
  color: #006644;
  font-weight: 700;
  font-size: 1.1rem;
  display: inline-block;
  margin-bottom: 4px;
  position: relative;
  padding-left: 20px;
}

.standard-columns strong::before {
  content: "■";
  color: #00aa66;
  font-size: 0.9rem;
  position: absolute;
  left: 0;
  top: 2px;
}

/* --- スマホ対応 --- */
@media (max-width: 768px) {
  .memaster-standard {
    padding: 60px 20px;
  }
  .memaster-standard h2 {
    font-size: 1.6rem;
  }
  .standard-columns ul {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .standard-columns li {
    font-size: 0.9rem;
  }

  /* 背景交互色を1行おきに */
  .standard-columns li:nth-child(4n+1),
  .standard-columns li:nth-child(4n+2),
  .standard-columns li:nth-child(4n+3),
  .standard-columns li:nth-child(4n) {
    background-color: initial;
  }
  .standard-columns li:nth-child(odd) {
    background-color: #e7f9ef;
  }
  .standard-columns li:nth-child(even) {
    background-color: #ffffff;
  }
}
/* ===== 標準的な機能 アイコン付きレイアウト ===== */
.function-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.function-icon {
  width: 80px;
  height: 80px;
  flex-shrink: 0;
  opacity: 0.85;
  filter: drop-shadow(0 2px 4px rgba(0, 80, 40, 0.15));
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.function-item:hover .function-icon {
  transform: scale(1.08);
  opacity: 1;
}

.function-text {
  flex: 1;
}

@media (max-width: 768px) {
  .function-item {
    flex-direction: row;
    align-items: flex-start;
  }
  .function-icon {
    width: 60px;
    height: 60px;
  }
}

/* ===== CTA ===== */
.cta-section {
  text-align: center;
  background: linear-gradient(90deg, #4c6ef5, #9a5ef5);
  color: #fff;
  padding: 100px 20px 40px;
  margin-bottom: 0; /* フッターと密着 */
}
.cta-section h2 {
  font-size: 1.8rem; font-weight: 600; letter-spacing: 0.04em;
}
.cta-btn {
  display: inline-block; margin-top: 30px; padding: 14px 36px;
  background: #fff; color: #003366; border-radius: 40px; font-weight: 600; text-decoration: none;
  transition: all 0.3s ease;
}
.cta-btn:hover { background: #dce5f8; transform: translateY(-3px); }

/* ===== レスポンシブ ===== */
@media (max-width: 768px) {
  .me-hero { height: 320px; }
  .me-hero h1 { font-size: 2rem; }
  .me-overview h2 { font-size: 1.5rem; }
  .feature-block-green { padding: 24px; }
  .feature-list-green li { padding-left: 3em; font-size: 0.95rem; }
  .feature-list-green li::before {
    width: 1.8em; height: 1.8em; line-height: 1.8em; font-size: 0.9rem;
  }
 
  .cta-section { padding: 60px 20px; }
    /* ★ ここを追加：概要文の <br> をスマホでは消す */
  .me-overview p br {
    display: none;
  }
    .me-overview p {
    text-align: left;
  }

}

/* HD-CUBEのcustom-emphに合わせたグリーン版強調スタイル */
.custom-emph-green,
.custom-emph-green strong {
  display: inline-block;
  font-size: 1.2rem !important;
  font-weight: 900 !important;
  color: #00a065; /* 明るいグリーン */
  background: linear-gradient(transparent 60%, #b3f0d1 60%, #b3f0d1 85%, transparent 85%);
  padding: 2px 4px;
  border-radius: 4px;
  line-height: 1.2;
}

/* モバイルでのstrong文字サイズ＆マーカー調整 */
@media (max-width: 480px) {
  .feature-list-green strong {
    font-size: 1.06rem;
  }

  .custom-emph-green,
  .custom-emph-green strong {
    /* 行に沿ってハイライトさせるため inline にする */
    display: inline;
    font-size: 1rem !important;
    font-weight: 900 !important;
    color: #00a065;

    /* これまでのグラデーションはオフ */
    background: none;

    /* 文字の下側だけ色を敷く（複数行対応） */
    box-shadow: inset 0 -0.45em 0 #b3f0d1;

    /* 文字の周りの余白を少しだけ */
    padding: 0 0.1em;
    line-height: 1.6;
  }
}


/* ===== フッター余白（MEページは密着） ===== */
.me-page .site-footer { margin-top: 0 !important; }

/* スマホ向け CTA 見出し調整 */
@media (max-width: 600px) {
  .cta-section h2 {
    font-size: 1.3rem;
  }
}
/* PC用（必要ならそのまま/お好みで） */
.me-master-features-title {
  font-size: 1.6rem;
}

/* スマホのときだけ小さく（!important で確実に上書き） */
@media (max-width: 768px) {
  h2.me-master-features-title {
    font-size: 1.2rem !important;
    line-height: 1.4;
  }
}
