@charset "UTF-8";
/*
    Template: swell
    Theme Name: SWELL CHILD
    Theme URI: https://swell-theme.com/
    Description: SWELLの子テーマ
    Version: 1.0.0
    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
*/


/* ============================================
   Contact Form 7
   ============================================ */
.wpcf7-form label {
  display: block;
  margin-bottom: 0.5em;
  font-weight: 600;
  color: #333;
}
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="date"],
.wpcf7-form select,
.wpcf7-form textarea {
  width: 100%;
  padding: 0.75em;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1em;
  box-sizing: border-box;
}
.wpcf7-form input[type="text"]:focus,
.wpcf7-form input[type="email"]:focus,
.wpcf7-form input[type="date"]:focus,
.wpcf7-form select:focus,
.wpcf7-form textarea:focus {
  border-color: #3498db;
  outline: none;
}
.wpcf7-form input[type="submit"] {
  display: block;
  background: #3498db;
  color: #fff;
  padding: 1em 2em;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1em;
  font-weight: 600;
  transition: opacity 0.3s;
  margin: 1em auto 0;
}
.wpcf7-form input[type="submit"]:hover { opacity: 0.8; }
.wpcf7-form .note {
  font-size: 0.85em;
  color: #666;
  margin-top: 0.25em;
  display: block;
}
.wpcf7-response-output {
  margin: 1.5em 0;
  padding: 1em;
  border-radius: 4px;
  border: none;
}
.wpcf7-mail-sent-ok { background: #d4edda; color: #155724; }
.wpcf7-validation-errors { background: #f8d7da; color: #721c24; }

@media screen and (max-width: 768px) {
  .wpcf7-form label { font-size: 0.9em; }
  .wpcf7-form input[type="text"],
  .wpcf7-form input[type="email"],
  .wpcf7-form input[type="date"],
  .wpcf7-form select,
  .wpcf7-form textarea { font-size: 16px; padding: 0.65em; }
  .wpcf7-form input[type="submit"] { width: 100%; padding: 1em; }
  .wpcf7-form .note { font-size: 0.8em; }
}


/* ============================================
   ヘッダーメニュー ボタン化（全ページ共通）
   ============================================ */
.btn-primary > a,
.btn-secondary > a {
  display: inline-block;
  padding: 0.6em 1.4em;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.9rem;
  line-height: 1;
  transition: all 0.2s;
  text-decoration: none !important;
}
.btn-primary > a {
  background: #1a1a2e;
  color: #fff !important;
  border: 2px solid #1a1a2e;
}
.btn-primary > a:hover {
  opacity: 0.85;
  transform: translateY(-1px);
}
.btn-secondary > a {
  background: transparent;
  color: #1a1a2e !important;
  border: 2px solid #1a1a2e;
}
.btn-secondary > a:hover {
  background: #1a1a2e;
  color: #fff !important;
}

/* トップページのみ：ヘッダーボタンを白に（スコープ強化） */
.home #header .c-gnav .btn-primary > a,
.home #header .c-gnav .btn-secondary > a,
.home #header .c-gnav .menu-register > a,
.home #header .c-gnav .menu-login > a,
.home #header .c-gnav .menu-mypage > a,
.home #header .c-gnav .menu-logout > a,
.home #header .btn-primary > a,
.home #header .btn-secondary > a,
.home #header .menu-register > a,
.home #header .menu-login > a,
.home #header .menu-mypage > a,
.home #header .menu-logout > a {
  color: #fff !important;
  border-color: rgba(255,255,255,0.7) !important;
  background: rgba(255,255,255,0.12) !important;
}
/* spanテキストも白に */
.home #header .c-gnav .btn-primary > a .ttl,
.home #header .c-gnav .btn-secondary > a .ttl,
.home #header .c-gnav .menu-register > a .ttl,
.home #header .c-gnav .menu-login > a .ttl,
.home #header .c-gnav .menu-mypage > a .ttl,
.home #header .c-gnav .menu-logout > a .ttl,
.home #header .btn-primary > a span,
.home #header .btn-secondary > a span,
.home #header .menu-register > a span,
.home #header .menu-login > a span,
.home #header .menu-mypage > a span,
.home #header .menu-logout > a span {
  color: #fff !important;
}
/* ホバー */
.home #header .c-gnav .btn-primary > a:hover,
.home #header .c-gnav .btn-secondary > a:hover,
.home #header .c-gnav .menu-register > a:hover,
.home #header .c-gnav .menu-login > a:hover,
.home #header .c-gnav .menu-mypage > a:hover,
.home #header .c-gnav .menu-logout > a:hover {
  background: rgba(255,255,255,0.25) !important;
  color: #fff !important;
}

@media screen and (max-width: 959px) {
  .btn-primary > a,
  .btn-secondary > a {
    display: block;
    text-align: center;
    padding: 12px 1.5em;
  }
}


/* ============================================
   会員保護メッセージ（全ページ共通）
   ============================================ */
.member-only-message {
  max-width: 600px;
  margin: 3em auto;
  padding: 2em;
  background: #f8f9fa;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  text-align: center;
}
.member-only-message h3 {
  color: #333;
  margin-bottom: 1em;
  font-size: 1.5em;
}
.member-only-message p {
  color: #666;
  line-height: 1.8;
  margin-bottom: 1.5em;
}
.member-buttons {
  display: flex;
  gap: 1em;
  justify-content: center;
  margin: 2em 0;
}
.member-buttons .btn {
  display: inline-block;
  padding: 0.8em 2em;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s;
}
.member-buttons .btn-primary {
  background: var(--color_main, #3498db);
  color: #fff;
}
.member-buttons .btn-primary:hover { opacity: 0.85; }
.member-buttons .btn-secondary {
  background: #fff;
  color: var(--color_main, #3498db);
  border: 2px solid var(--color_main, #3498db);
}
.member-buttons .btn-secondary:hover {
  background: var(--color_main, #3498db);
  color: #fff;
}
.member-only-message .small-text {
  font-size: 0.9em;
  color: #999;
  margin-top: 1.5em;
}
@media screen and (max-width: 768px) {
  .member-only-message { padding: 1.5em; }
  .member-buttons { flex-direction: column; gap: 0.8em; }
  .member-buttons .btn { width: 100%; }
}


/* ============================================
   ログイン状態別メニュー表示切り替え（全ページ共通）
   ============================================ */
.menu-item.menu-mypage,
.menu-item.menu-logout {
  display: none !important;
}
.swpm-logged-in .menu-item.menu-register,
.swpm-logged-in .menu-item.menu-login {
  display: none !important;
}
.swpm-logged-in .menu-item.menu-mypage,
.swpm-logged-in .menu-item.menu-logout {
  display: block !important;
}


/* ============================================
   トップページ専用スタイル
   テーマカラー:
   - ネイビー:      #1a1a2e ～ #0f3460
   - アクセント水色: #63b3ed
   - ブルー:        #2563eb
   - レッド:        #7f1d1d ～ #b91c1c
   ============================================ */

.top-wrap * { box-sizing: border-box; }
.top-wrap a { text-decoration: none; }

/* サイトタイトルのテキストを非表示 */
.p-headerLogo__text,
.p-headerLogo__catch,
.p-headerLogo .site-name,
.l-header .c-site-title,
.l-header .p-logo__text {
  display: none !important;
}

/* トップページのみ：ヘッダーをヒーローに重ねる */
.home #header.l-header {
  position: absolute !important;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: transparent !important;
  background-color: transparent !important;
  box-shadow: none !important;
  border-bottom: none !important;
  --color_header_bg: transparent;
}
.home #header .l-header__inner {
  background: transparent !important;
  --color_header_bg: transparent;
}
.home #header .l-header__inner a,
.home #header .p-headerNav__item a {
  color: #fff !important;
  --color_header_text: #fff;
}
.home #header .p-headerBtn__link,
.home #header .c-btn,
.home #header .c-headerBtn {
  color: #fff !important;
  border-color: rgba(255,255,255,0.6) !important;
  background: rgba(255,255,255,0.15) !important;
}
.home #header .p-headerBtn__link:hover,
.home #header .c-btn:hover {
  background: rgba(255,255,255,0.3) !important;
}


/* ============================================
   ヒーローエリア
   ============================================ */
.top-hero-outer {
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  width: 100vw;
}
.top-hero {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  color: #fff;
  text-align: center;
  padding: 160px 20px 80px;
}
.top-hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 900;
  letter-spacing: 0.05em;
  margin: 0 0 16px !important;
  color: #fff !important;
  border: none !important;
  padding: 0 !important;
  background: none !important;
}
.top-hero h1 span { color: #63b3ed; }
.top-hero > p {
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  color: rgba(255,255,255,0.75);
  max-width: 560px;
  margin: 0 auto 32px;
  line-height: 1.8;
}
.top-hero-badges {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.top-hero-badge {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  padding: 6px 18px;
  border-radius: 100px;
  font-size: 0.85rem;
}


/* ============================================
   無料教材エリア
   ============================================ */
.top-free-section {
  max-width: 1100px;
  margin: 64px auto 0;
  padding: 0 40px;
}

/* FREEラベル */
.top-wrap .top-section-label {
  display: block;
  background: #e8f4fd;
  color: #2563eb;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 100px;
  margin: 0 0 4px !important; /* 余白を最小化 */
  letter-spacing: 0.08em;
  text-transform: uppercase;
  width: fit-content;
  line-height: 1.4;
}

/* 見出し：左縦線スタイル */
.top-wrap .top-section-title,
.home .top-wrap h2.top-section-title {
  font-size: 1.2rem !important;
  font-weight: 800 !important;
  color: #1a1a2e !important;
  background: none !important;
  margin: 0 0 20px !important; /* margin-topを完全にゼロ */
  padding: 6px 0 6px 14px !important;
  border: none !important;
  border-left: 4px solid #2563eb !important;
  box-shadow: none !important;
  display: block;
}
/* SWELLのpost_contentがh2にmarginを付けるのを打ち消す */
.home .post_content .top-wrap h2.top-section-title,
.home .l-mainContent .top-wrap h2.top-section-title {
  margin-top: 0 !important;
}
.top-wrap .top-section-title::before,
.top-wrap .top-section-title::after,
.home .top-wrap h2.top-section-title::before,
.home .top-wrap h2.top-section-title::after {
  display: none !important;
  content: none !important;
}
.top-wrap .top-section-title span {
  color: #2563eb !important;
}

/* カテゴリボタン */
.top-cat-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  margin-bottom: 48px;
}
.top-cat-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1.5px solid #dbeafe;
  border-radius: 14px;
  padding: 22px 10px;
  text-align: center;
  color: #1e3a5f;
  font-weight: 700;
  font-size: 0.88rem;
  transition: all 0.2s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  gap: 10px;
  line-height: 1.3;
}
.top-cat-btn:hover {
  background: #2563eb;
  border-color: #2563eb;
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(37,99,235,0.18);
}
.top-cat-btn:hover .cat-icon { color: #fff !important; }
.top-cat-btn:focus {
  outline: 3px solid #2563eb;
  outline-offset: 2px;
}
.top-cat-btn:active {
  transform: translateY(0);
  box-shadow: none;
}
.top-cat-btn .cat-icon {
  font-size: 1.3rem;
  color: #2563eb;
  display: block;
  transition: color 0.2s;
}


/* ============================================
   有料エリア
   ============================================ */
.top-paid-outer {
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  width: 100vw;
  margin-top: 64px;
}
.top-paid {
  background: linear-gradient(135deg, #7f1d1d 0%, #991b1b 50%, #b91c1c 100%);
  padding: 64px 20px;
  text-align: center;
}
.top-paid-inner {
  max-width: 640px;
  margin: 0 auto;
}
.top-paid-badge {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  color: #fef2f2;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 100px;
  margin-bottom: 16px;
  letter-spacing: 0.08em;
}
.top-paid-inner h2 {
  font-size: clamp(1.4rem, 3.5vw, 1.9rem) !important;
  font-weight: 900 !important;
  color: #fff !important;
  border: none !important;
  border-left: none !important;
  background: none !important;
  box-shadow: none !important;
  margin: 0 0 12px !important;
  padding: 0 !important;
}
.top-paid-inner h2::before,
.top-paid-inner h2::after {
  display: none !important;
  content: none !important;
}
.top-paid-inner > p {
  color: rgba(255,255,255,0.8);
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 28px;
}
.top-paid-features {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.top-paid-feature {
  color: #fff;
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  gap: 6px;
}
.top-paid-feature::before {
  content: "✓";
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  flex-shrink: 0;
}
.top-paid-btn {
  display: inline-block;
  background: #fff;
  color: #b91c1c !important;
  font-weight: 800;
  font-size: 1rem;
  padding: 15px 44px;
  border-radius: 100px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  transition: all 0.2s;
  text-decoration: none !important;
}
.top-paid-btn:hover {
  background: #fef2f2;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.25);
}
.top-paid-btn:focus {
  outline: 3px solid #fff;
  outline-offset: 3px;
}
.top-paid-btn:active {
  transform: translateY(0);
  box-shadow: none;
}
.top-paid-sub {
  margin-top: 14px;
  color: rgba(255,255,255,0.6);
  font-size: 0.82rem;
}


/* ============================================
   レスポンシブ対応
   ============================================ */
@media (max-width: 1024px) {
  .top-free-section { padding: 0 32px; }
}

@media (max-width: 900px) {
  .top-cat-grid { grid-template-columns: repeat(4, 1fr); }
  .top-free-section { padding: 0 24px; }
}

@media (max-width: 768px) {
  .top-hero { padding: 120px 20px 56px; }
  .top-free-section { padding: 0 20px; margin-top: 48px; }
  .top-cat-grid { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .top-paid { padding: 52px 20px; }
  .top-paid-outer { margin-top: 48px; }
  .top-paid-features { flex-direction: column; align-items: center; gap: 10px; }
  .top-paid-btn { display: block; padding: 15px 24px; }
}

@media (max-width: 480px) {
  .top-hero { padding: 100px 16px 48px; }
  .top-free-section { padding: 0 14px; margin-top: 40px; }
  .top-cat-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 36px; }
  .top-cat-btn { padding: 16px 8px; font-size: 0.83rem; }
  .top-cat-btn .cat-icon { font-size: 1.2rem; }
  .top-paid { padding: 44px 16px; }
  .top-paid-outer { margin-top: 40px; }
}