@charset "UTF-8";
/* ==========================================================================
   脳育コンパス リニューアル 2026
   新デザイン共通スタイル（変数・見出し・ボタン・ヘッダー・ナビ・フッター）
   ページ別：renewal-top.css（TOP）／renewal-pages.css（固定ページ）
   クラス接頭辞 r- で既存CSSと分離
   ========================================================================== */

:root {
  --r-pink: #d9467e;
  --r-pink-deep: #dc3666;
  --r-pink-light: #f3a9c0;
  --r-pink-bg: #fdeef2;
  --r-pink-bg2: #fff6f8;
  --r-text: #525151;
  --r-gray: #777;
  --r-green: #1fae4b;
  --r-border: #f3eef0;
  --r-inner: 1040px;
  --r-font-maru: "Zen Maru Gothic", "Noto Sans JP", sans-serif;
  --r-font-sans: "Noto Sans JP", sans-serif;
}

body {
  background: #fff;
}

.r-main {
  font-family: var(--r-font-sans);
  font-size: 16px;
  line-height: 1.8375; /* 29.4px */
  letter-spacing: 0.28px;
  color: var(--r-text);
  overflow-x: clip;
}

/* 既存style.cssの img{width:100%} を打ち消す（詳細度を上げないよう :where を使用） */
:where(.r-main, .r-header, .r-hero, .r-nav, .r-footer) img {
  width: auto;
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

.r-inner {
  width: 100%;
  max-width: calc(var(--r-inner) + 40px);
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.r-pink {
  color: var(--r-pink);
}

.r-sp-only {
  display: none;
}

/* 見出し ---------------------------------------------------------------- */
.r-ttl {
  font-family: var(--r-font-maru);
  font-weight: 700;
  font-size: 38px;
  line-height: 1.5;
  letter-spacing: 3.04px;
  color: var(--r-text);
  text-align: center;
  margin: 0;
}

.r-ttl--pink {
  color: var(--r-pink);
}

.r-ttl--left {
  text-align: left;
}

/* ボタン ---------------------------------------------------------------- */
.r-btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  min-width: 284px;
  padding: 18px 22px 18px 34px;
  box-sizing: border-box;
  background: #fff;
  border: 1px solid var(--r-pink);
  border-radius: 999px;
  font-family: var(--r-font-maru);
  font-weight: 700;
  font-size: 17px;
  line-height: 1.5;
  letter-spacing: 0.28px;
  color: var(--r-pink);
  text-decoration: none;
  transition: background-color 0.2s, color 0.2s;
}

.r-btn::after {
  content: "";
  flex-shrink: 0;
  width: 7px;
  height: 7px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
}

.r-btn:hover {
  background: var(--r-pink);
  color: #fff;
}

.r-btn-wrap {
  text-align: center;
}

/* 塗りボタン（セミナー予約・LINE） */
.r-cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 380px;
  max-width: 100%;
  height: 64px;
  padding: 0 48px 0 60px;
  box-sizing: border-box;
  border-radius: 999px;
  font-family: var(--r-font-maru);
  font-weight: 700;
  font-size: 16.6px;
  line-height: 1.4;
  color: #fff;
  text-decoration: none;
  filter: drop-shadow(0 7.672px 8.951px rgba(0, 0, 0, 0.12));
  transition: opacity 0.2s, transform 0.2s;
}

.r-cta:hover {
  opacity: 0.88;
  transform: translateY(-2px);
}

.r-cta img {
  position: absolute;
  left: 23px;
  top: 50%;
  width: 28px;
  height: 28px;
  transform: translateY(-50%);
}

.r-cta::after {
  content: "";
  position: absolute;
  right: 28px;
  top: 50%;
  width: 7px;
  height: 7px;
  border-top: 2px solid #fff;
  border-right: 2px solid #fff;
  transform: translateY(-50%) rotate(45deg);
}

.r-cta--seminar {
  background: linear-gradient(to right, #ec5d8c, #e43f74);
}

.r-cta--line {
  background: var(--r-green);
}

.r-cta-group {
  display: flex;
  justify-content: center;
  gap: 18px;
}

/* ==========================================================================
   ヘッダー
   ========================================================================== */
.r-header {
  position: relative;
  z-index: 50;
  background: #fff;
  font-family: var(--r-font-sans);
  color: var(--r-text);
}

.r-header__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  padding: 0 40px;
}

.r-header__logo {
  display: block;
  width: 250px;
  line-height: 0;
}

.r-header__logo img {
  width: 100%;
  height: auto;
}

.r-header__line {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 258px;
  height: 50px;
  padding-left: 16px;
  box-sizing: border-box;
  border-radius: 999px;
  background: var(--r-green);
  font-family: var(--r-font-maru);
  font-weight: 700;
  font-size: 14.5px;
  color: #fff;
  text-decoration: none;
  filter: drop-shadow(0 7.672px 8.951px rgba(0, 0, 0, 0.12));
  transition: opacity 0.2s;
}

.r-header__line:hover {
  opacity: 0.88;
}

.r-header__line img {
  position: absolute;
  left: 20px;
  top: 50%;
  width: 24px;
  height: 24px;
  transform: translateY(-50%);
}

.r-header__line::after {
  content: "";
  position: absolute;
  right: 20px;
  top: 50%;
  width: 7px;
  height: 7px;
  border-top: 2px solid #fff;
  border-right: 2px solid #fff;
  transform: translateY(-50%) rotate(45deg);
}

/* ハンバーガー（SPのみ） */
.r-menu-toggle {
  display: none;
}

.r-menu-btn {
  display: none;
}

/* グローバルナビ */
.r-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: #fff;
  border-top: 1px solid var(--r-border);
  border-bottom: 1px solid var(--r-border);
}

.admin-bar .r-nav {
  top: 32px;
}

.r-nav__list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 56px;
  height: 56px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.r-nav__list a {
  display: block;
  font-family: var(--r-font-sans);
  font-size: 14.5px;
  line-height: 26px;
  letter-spacing: 0.75px;
  color: var(--r-text);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s;
}

.r-nav__list a:hover,
.r-nav__list .is-current a {
  color: var(--r-pink);
}

.r-nav__list li {
  position: relative;
  display: flex;
  align-items: center;
  height: 100%;
}

/* ホバーでクマのアイコンを表示（旧メニューと同じ動き） */
.r-nav__kuma {
  position: absolute;
  top: 0;
  left: 50%;
  display: block;
  line-height: 0;
  opacity: 0;
  transform: translateX(-50%);
  transition: opacity 0.5s;
  pointer-events: none;
}

.r-nav .r-nav__kuma img {
  width: 33px;
  height: auto;
  max-width: none;
}

.r-nav__list a:hover .r-nav__kuma {
  opacity: 1;
}

.r-nav__sp-cta {
  display: none;
}

/* ==========================================================================
   フッター
   ========================================================================== */
.r-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding: 60px 20px 40px;
  font-family: var(--r-font-sans);
  color: var(--r-text);
  letter-spacing: 0.28px;
}

.r-footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 37px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.r-footer__links a {
  font-size: 16px;
  line-height: 29.6px;
  color: var(--r-text);
  text-decoration: none;
}

.r-footer__links a:hover {
  color: var(--r-pink);
}

.r-footer__sns {
  display: block;
  width: 34px;
  height: 34px;
  line-height: 0;
}

.r-footer__sns img {
  width: 34px;
  height: 34px;
}

.r-footer__copy {
  font-size: 13px;
  line-height: 29.6px;
}

.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}

/* ==========================================================================
   レスポンシブ（共通パーツ）
   ========================================================================== */
@media (max-width: 1200px) {
  .r-nav__list {
    gap: 32px;
  }
}

/* タブレット・スマホ：ハンバーガーメニュー（1024px以下） */
@media (max-width: 1024px) {
  .r-header__top {
    padding-right: 76px;
  }

  .r-menu-btn {
    position: fixed;
    top: 16px;
    right: 10px;
    z-index: 60;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
    cursor: pointer;
  }

  .admin-bar .r-menu-btn {
    top: 54px;
  }

  .r-menu-btn span {
    display: block;
    width: 20px;
    height: 2px;
    border-radius: 2px;
    background: var(--r-pink);
    transition: transform 0.25s, opacity 0.25s;
  }

  .r-menu-toggle:checked ~ .r-menu-btn span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .r-menu-toggle:checked ~ .r-menu-btn span:nth-child(2) {
    opacity: 0;
  }

  .r-menu-toggle:checked ~ .r-menu-btn span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .r-nav {
    position: fixed;
    inset: 0;
    z-index: 55;
    overflow-y: auto;
    padding: 80px 24px 40px;
    border: none;
    background: rgba(255, 255, 255, 0.98);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s, visibility 0.25s;
  }

  .admin-bar .r-nav {
    top: 46px;
  }

  .r-menu-toggle:checked ~ .r-nav {
    opacity: 1;
    visibility: visible;
  }

  .r-nav__list {
    flex-direction: column;
    gap: 0;
    height: auto;
  }

  .r-nav__kuma {
    display: none;
  }

  .r-nav__list li {
    display: block;
    height: auto;
    width: 100%;
    max-width: 360px;
    border-bottom: 1px dashed var(--r-pink-light);
  }

  .r-nav__list a {
    padding: 16px 8px;
    font-size: 16px;
    text-align: center;
  }

  .r-nav__sp-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    margin-top: 32px;
  }
}

@media (max-width: 768px) {
  .r-sp-only {
    display: inline;
  }

  .r-pc-only {
    display: none;
  }

  .r-main {
    font-size: 15px;
    line-height: 1.8;
  }

  .r-ttl {
    font-size: 26px;
    letter-spacing: 1.5px;
  }
	.r-ttl--left {
    text-align: center;
}

  .r-btn {
    min-width: 0;
    width: 100%;
    max-width: 340px;
    gap: 16px;
    padding: 16px 22px 16px 28px;
    font-size: 15px;
  }

  .r-cta {
    width: 100%;
    max-width: 360px;
    height: 58px;
    padding: 0 40px 0 56px;
    font-size: 15px;
  }

  .r-cta-group {
    flex-direction: column;
    align-items: center;
    gap: 14px;
  }

  .r-header__top {
    height: 60px;
    padding: 0 64px 0 14px;
  }

  .r-header__logo {
    width: 170px;
  }

  /* スマホではLINEボタンを非表示（ハンバーガーメニュー内にあるため） */
  .r-header__line {
    display: none;
  }

  .r-menu-btn {
    top: 8px;
  }

  .r-footer__links {
    gap: 4px 24px;
  }

  .r-footer__links a {
    font-size: 14px;
  }

  .r-footer__copy {
    font-size: 11px;
  }
}

/* ==========================================================================
   脳の5つの力（円パーツ：TOP・About共通）
   ========================================================================== */
.r-powers__list {
  display: flex;
  justify-content: center;
  gap: 27px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.r-power {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  width: 187px;
  height: 187px;
  padding-top: 8px;
  box-sizing: border-box;
  border-radius: 50%;
  font-family: var(--r-font-maru);
  text-align: center;
  letter-spacing: 0.29px;
}

.r-power__num {
  font-weight: 700;
  font-size: 30px;
  line-height: 31px;
}

.r-power__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin: 13px 0 4px;
}

.r-power__icon img {
  max-width: 52px;
  max-height: 52px;
}

.r-power__name {
  font-weight: 700;
  font-size: 16px;
  line-height: 23px;
}

.r-power__area {
  font-size: 13px;
  line-height: 17px;
  color: var(--r-text);
}

.r-power--1 { background: #fde8ec; color: #d9467e; }
.r-power--2 { background: #fff0e3; color: #f08a24; }
.r-power--3 { background: #e6f6ec; color: #2da561; }
.r-power--4 { background: #e5f3fd; color: #1d93d8; }
.r-power--5 { background: #eeecfa; color: #6f5fbf; }

/* ==========================================================================
   固定ページ共通パーツ
   ========================================================================== */
.r-page-inner {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* 蛍光ペン風マーカー */
.r-marker {
  color: var(--r-pink);
  background: linear-gradient(transparent 62%, #ffdcec 62%);
}

/* 白抜きの塗りボタン（講座内容を見る など） */
.r-cta--outline {
  padding: 0 48px;
  background: #fff;
  border: 2px solid var(--r-pink);
  color: var(--r-pink);
  filter: none;
}

.r-cta--outline::after {
  border-color: var(--r-pink);
}

/* フッター直上のCTA帯 */
.r-footer-cta {
  padding: 96px 20px 72px;
  border-radius: 48px 48px 0 0;
  background: linear-gradient(to bottom, #fbe4ec, #fff);
}

.r-footer-cta .r-cta-group {
  gap: 30px;
}

.r-footer-cta .r-cta {
  isolation: isolate;
  width: 380px;
  padding: 0 40px 0 56px;
  border: 2px solid transparent;
  white-space: nowrap;
  transition: color 0.4s ease, border-color 0.4s ease, background-color 0.4s ease, transform 0.4s ease;
}

/* ホバーで「線の色」と「背景色」を入れ替え（ふわっと） */
.r-footer-cta .r-cta:hover {
  opacity: 1;
}

.r-footer-cta .r-cta::before {
  content: "";
  position: absolute;
  inset: -2px;
  z-index: -1;
  border-radius: inherit;
  background: inherit;
  transition: opacity 0.4s ease;
}

.r-footer-cta .r-cta::after {
  transition: border-color 0.4s ease;
}

.r-footer-cta .r-cta img {
  transition: opacity 0.4s ease;
}

.r-footer-cta .r-cta img.is-hover {
  opacity: 0;
}

.r-footer-cta .r-cta:hover img {
  opacity: 0;
}

.r-footer-cta .r-cta:hover img.is-hover {
  opacity: 1;
}

/* セミナー予約：ピンク塗り → 白地＋ピンク線 */
.r-footer-cta .r-cta--seminar {
  background: #fff;
}

.r-footer-cta .r-cta--seminar::before {
  background: linear-gradient(to right, #ec5d8c, #e43f74);
}

.r-footer-cta .r-cta--seminar:hover {
  border-color: var(--r-pink);
  color: var(--r-pink);
}

/* 公式LINE：緑塗り → 白地＋緑線 */
.r-footer-cta .r-cta--line {
  background: #fff;
}

.r-footer-cta .r-cta--line::before {
  background: var(--r-green);
}

.r-footer-cta .r-cta--line:hover {
  border-color: var(--r-green);
  color: var(--r-green);
}

.r-footer-cta .r-cta--seminar:hover::before,
.r-footer-cta .r-cta--line:hover::before {
  opacity: 0;
}

.r-footer-cta .r-cta--seminar:hover::after {
  border-color: var(--r-pink);
}

.r-footer-cta .r-cta--line:hover::after {
  border-color: var(--r-green);
}

/* 講座内容を見る：白地＋ピンク線 → ピンク塗り */
.r-footer-cta .r-cta--outline {
  padding: 0 48px;
  border-color: var(--r-pink);
}

.r-footer-cta .r-cta--outline::before {
  background: linear-gradient(to right, #ec5d8c, #e43f74);
  opacity: 0;
}

.r-footer-cta .r-cta--outline:hover {
  color: #fff;
}

.r-footer-cta .r-cta--outline:hover::before {
  opacity: 1;
}

.r-footer-cta .r-cta--outline:hover::after {
  border-color: #fff;
}

@media (max-width: 1200px) {
  .r-powers__list {
    flex-wrap: wrap;
  }
}

@media (max-width: 768px) {
  .r-powers__list {
    gap: 12px;
  }

  .r-power {
    width: 150px;
    height: 150px;
    padding-top: 10px;
  }

  .r-power__num {
    font-size: 22px;
    line-height: 24px;
  }

  .r-power__icon {
    width: 36px;
    height: 36px;
    margin: 6px 0 2px;
  }

  .r-power__icon img {
    max-width: 36px;
    max-height: 36px;
  }

  .r-power__name {
    font-size: 13px;
    line-height: 18px;
  }

  .r-power__area {
    font-size: 11px;
  }

  .r-footer-cta {
    padding: 56px 16px 40px;
    border-radius: 32px 32px 0 0;
  }

  .r-footer-cta .r-cta-group {
    gap: 14px;
  }
}

/* フッター上CTA：長い文言のボタンがあるとき（例：インストラクター制度について問い合わせる） */
.r-footer-cta .r-cta-group--wide .r-cta {
  width: 460px;
}

@media (max-width: 768px) {
  .r-footer-cta .r-cta-group--wide .r-cta {
    width: 100%;
    height: auto;
    min-height: 58px;
    padding-top: 12px;
    padding-bottom: 12px;
    font-size: 15px;
    text-align: center;
    white-space: normal;
  }
}

/* ==========================================================================
   旧デザインのページ（固定ページ・お知らせ一覧／詳細など .page-wrapper 全体）
   背景色を新ページ（About・講座内容）のピンク #fdeef3 に統一
   ========================================================================== */
.page-wrapper {
  background-color: #fdeef3;
}

/* 認定講師紹介：区切り線（旧CSSで width: 500px 固定）が画面幅をはみ出し、
   スマホ・タブレットでページが横に広がってハンバーガーメニューが画面外に出ていたため修正 */
.instructor-border {
  max-width: 100%;
}

.page-wrapper {
  overflow-x: clip;
}
