/*
Theme Name: Trainers Guild
Theme URI: https://trainers-guild.com
Author: Trainers Guild
Author URI: https://trainers-guild.com
Description: トレーナーズギルド公式テーマ。フィットネストレーナーが経営者として自立するための超実践型コミュニティの公式サイトテーマ。ブログ機能を含むマルチページ構成。
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: Private
Text Domain: trainers-guild
Tags: business, blog, community, fitness, custom-menu, featured-images, threaded-comments
*/

/* ==========================================================================
   TRAINERS GUILD — Master Stylesheet
   ========================================================================== */

/* ===== RESET & VARIABLES ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* === BRAND PALETTE — Orange & White === */
  --white:            #FFFFFF;
  --off-white:        #FAFAFA;
  --soft-white:       #F5F5F5;
  --cream:            #FFFFFF;        /* alias for legacy templates */
  --cream-mid:        #FAFAFA;        /* alias */
  --cream-dark:       #F5F5F5;        /* alias */
  --orange:           #F07030;
  --orange-light:     #FF9B5A;
  --orange-vlight:    #FFF0E5;
  --orange-dark:      #C85A18;
  --text-dark:        #1A1A1A;
  --text-mid:         #555555;
  --text-light:       #888888;
  --border:           #E5E5E5;
  --border-light:     #F0F0F0;
  --shadow:           rgba(0,0,0,0.06);
  --shadow-lg:        rgba(0,0,0,0.12);
  --nav-height:       72px;

  /* === COMPATIBILITY ALIASES (legacy names used in some templates) === */
  --black:            #1A1A1A;
  --dark:             #1A1A1A;
  --dark2:            #2A2A2A;
  --orange-pale:      var(--orange-vlight);
  --gray:             var(--text-mid);
  --light-gray:       var(--off-white);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Noto Sans JP', 'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
  background: var(--white);
  color: var(--text-dark);
  line-height: 1.8;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }
a  { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; }

/* ==========================================================================
   NAVIGATION
   ========================================================================== */
#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-height);
  padding: 0 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.4s, box-shadow 0.4s;
}
#nav.scrolled,
#nav.nav-white {
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 2px 28px var(--shadow);
}

.nav-logo {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.14em;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  height: 100%;
  padding: 8px 0;
}
.nav-logo span { color: var(--orange); }
.nav-logo img {
  height: 44px;
  width: auto;
  display: block;
  object-fit: contain;
}
@media (max-width: 768px) {
  .nav-logo img { height: 36px; }
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-links a {
  color: var(--text-mid);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  position: relative;
  transition: color 0.2s;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 2px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.25s;
}
.nav-links a:hover,
.nav-links a.active,
.nav-links a.current-menu-item { color: var(--orange); }
.nav-links a:hover::after,
.nav-links a.active::after,
.nav-links a.current-menu-item::after { transform: scaleX(1); }

.nav-cta {
  background: var(--orange) !important;
  color: var(--white) !important;
  padding: 10px 22px !important;
  border-radius: 50px !important;
  font-weight: 700 !important;
  font-size: 0.83rem !important;
  letter-spacing: 0.04em;
  transition: background 0.2s, transform 0.2s !important;
  box-shadow: 0 4px 16px rgba(240,112,48,0.3);
  white-space: nowrap;
}
.nav-cta::after { display: none !important; }
.nav-cta:hover {
  background: var(--orange-dark) !important;
  transform: translateY(-1px) !important;
}

/* hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 6px;
  z-index: 1010;
}
.hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--text-dark); border-radius: 2px;
  transition: 0.3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* mobile menu overlay */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(255,255,255,0.99);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  opacity: 0;
  transition: opacity 0.3s;
}
.mobile-menu.open { display: flex; opacity: 1; }
.mobile-menu a {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-dark);
  letter-spacing: 0.06em;
  transition: color 0.2s;
}
.mobile-menu a:hover { color: var(--orange); }
.mobile-menu .mobile-cta {
  margin-top: 8px;
  background: var(--orange);
  color: var(--white) !important;
  padding: 14px 40px;
  border-radius: 50px;
}

/* ==========================================================================
   PAGE HEADER (inner pages)
   ========================================================================== */
.page-header {
  padding-top: var(--nav-height);
  background: linear-gradient(135deg, var(--white) 0%, var(--off-white) 60%, var(--orange-vlight) 100%);
  overflow: hidden;
  position: relative;
}
.page-header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 72px 48px 80px;
  position: relative;
  z-index: 1;
}
.page-header-deco {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.page-header-deco-1 {
  width: 500px; height: 500px;
  right: -120px; top: -120px;
  background: radial-gradient(circle, rgba(240,112,48,0.09) 0%, transparent 70%);
}
.page-header-deco-2 {
  width: 300px; height: 300px;
  left: 20%; bottom: -80px;
  background: radial-gradient(circle, rgba(240,112,48,0.06) 0%, transparent 70%);
}
.page-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--text-light);
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.page-breadcrumb a { color: var(--text-light); transition: color 0.2s; }
.page-breadcrumb a:hover { color: var(--orange); }
.page-breadcrumb .breadcrumb-sep { color: var(--text-light); opacity: 0.6; }
.page-breadcrumb .breadcrumb-current { color: var(--orange); }
.page-header-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 12px;
}
.page-header-title {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 900;
  color: var(--text-dark);
  line-height: 1.25;
  margin-bottom: 16px;
}
.page-header-desc {
  font-size: 1rem;
  color: var(--text-mid);
  line-height: 2;
  max-width: 560px;
}

/* ==========================================================================
   SECTION BASE
   ========================================================================== */
section { padding: 88px 0; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 48px; }
.section-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 12px;
  display: block;
}
.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 900;
  line-height: 1.3;
  margin-bottom: 18px;
  color: var(--text-dark);
}
.section-desc {
  font-size: 0.97rem;
  color: var(--text-mid);
  line-height: 2;
  max-width: 600px;
}
.section-head-center { text-align: center; }
.section-head-center .section-desc { margin: 0 auto; }

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
  display: inline-block;
  padding: 14px 40px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.97rem;
  letter-spacing: 0.04em;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s, color 0.2s, border-color 0.2s;
  cursor: pointer;
  border: none;
  font-family: inherit;
  white-space: nowrap;
  text-align: center;
}
.btn-primary {
  background: var(--orange);
  color: var(--white);
  box-shadow: 0 6px 24px rgba(240,112,48,0.3);
}
.btn-primary:hover {
  background: var(--orange-dark);
  transform: translateY(-3px);
  box-shadow: 0 10px 32px rgba(240,112,48,0.4);
}
.btn-outline {
  background: transparent;
  color: var(--orange);
  border: 2px solid var(--orange);
}
.btn-outline:hover {
  background: var(--orange);
  color: var(--white);
}
.btn-white {
  background: var(--white);
  color: var(--text-dark);
}
.btn-white:hover {
  background: var(--cream);
  transform: translateY(-2px);
}
.btn-dark {
  background: var(--text-dark);
  color: var(--white);
  border: 2px solid transparent;
}
.btn-dark:hover {
  background: #3d2800;
  transform: translateY(-2px);
}
.btn-cta-outline {
  display: inline-block;
  border: 2px solid rgba(255,255,255,0.35);
  color: var(--white);
  padding: 14px 40px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.97rem;
  transition: 0.2s;
}
.btn-cta-outline:hover { border-color: var(--white); background: rgba(255,255,255,0.08); }
.btn-lg { padding: 18px 52px; font-size: 1.05rem; }
.btn-sm { padding: 10px 24px; font-size: 0.85rem; }

/* ==========================================================================
   ANIMATIONS
   ========================================================================== */
.fade-in {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }
.fade-in-left {
  opacity: 0;
  transform: translateX(-32px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}
.fade-in-left.visible { opacity: 1; transform: translateX(0); }
.fade-in-right {
  opacity: 0;
  transform: translateX(32px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}
.fade-in-right.visible { opacity: 1; transform: translateX(0); }
.fade-delay-1 { transition-delay: 0.1s; }
.fade-delay-2 { transition-delay: 0.2s; }
.fade-delay-3 { transition-delay: 0.3s; }
.fade-delay-4 { transition-delay: 0.4s; }
.fade-delay-5 { transition-delay: 0.5s; }

/* ==========================================================================
   TAGS / LABELS
   ========================================================================== */
.tag {
  display: inline-block;
  background: var(--orange-vlight);
  color: var(--orange-dark);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 50px;
  letter-spacing: 0.04em;
}

/* ==========================================================================
   FOOTER — White + Orange (no black)
   ========================================================================== */
#footer {
  background: var(--off-white);
  color: var(--text-mid);
  border-top: 1px solid var(--border-light);
}

/* Footer CTA banner: subtle orange-tinted off-white, NOT full orange */
.footer-cta {
  background:
    linear-gradient(135deg, #fffaf5 0%, #fff5ec 100%);
  padding: 96px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border-light);
}
.footer-cta::before {
  content: '';
  position: absolute;
  width: 520px; height: 520px;
  border-radius: 50%;
  top: -260px; right: -180px;
  background: radial-gradient(circle, rgba(240,112,48,0.10) 0%, transparent 70%);
  pointer-events: none;
}
.footer-cta::after {
  content: '';
  position: absolute;
  width: 380px; height: 380px;
  border-radius: 50%;
  bottom: -200px; left: -120px;
  background: radial-gradient(circle, rgba(240,112,48,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.footer-cta-inner { position: relative; z-index: 1; max-width: 720px; margin: 0 auto; padding: 0 40px; }
.footer-cta-label {
  color: var(--orange);
  margin-bottom: 18px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.32em;
}
.footer-cta-title {
  font-size: clamp(1.7rem, 3.2vw, 2.3rem);
  font-weight: 900;
  color: var(--text-dark);
  line-height: 1.45;
  margin-bottom: 18px;
  letter-spacing: 0.02em;
}
.footer-cta-title span { color: var(--orange); }
.footer-cta-desc {
  font-size: 0.94rem;
  color: var(--text-mid);
  line-height: 2;
  margin-bottom: 36px;
}
.footer-cta-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.footer-cta-btns .btn-white {
  background: var(--orange);
  color: var(--white);
  box-shadow: 0 8px 24px rgba(240,112,48,0.35);
}
.footer-cta-btns .btn-white:hover {
  background: var(--orange-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(240,112,48,0.45);
}
.footer-cta-btns .btn-cta-outline {
  border: 2px solid var(--orange);
  color: var(--orange);
  background: var(--white);
}
.footer-cta-btns .btn-cta-outline:hover {
  background: var(--orange-vlight);
  border-color: var(--orange);
  color: var(--orange-dark);
}

/* Footer main */
.footer-main {
  padding: 80px 0 0;
  background: var(--white);
}
.footer-grid {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 48px;
  display: grid;
  grid-template-columns: 2.4fr 1fr 1fr 1fr;
  gap: 56px;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--border-light);
}
.footer-brand-name {
  font-family: 'Inter', sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-dark);
  letter-spacing: 0.16em;
  margin-bottom: 18px;
}
.footer-brand-name span { color: var(--orange); }
.footer-brand-logo {
  display: inline-block;
  margin-bottom: 20px;
}
.footer-brand-logo img {
  height: 56px;
  width: auto;
  display: block;
}
.footer-brand-desc {
  font-size: 0.86rem;
  line-height: 2.05;
  color: var(--text-mid);
  max-width: 320px;
  margin-bottom: 24px;
}
.footer-brand-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--orange-vlight);
  color: var(--orange-dark);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 6px 14px;
  border-radius: 999px;
}
.footer-brand-tag::before {
  content: '';
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--orange);
}
.footer-col-title {
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 22px;
  position: relative;
  padding-bottom: 14px;
}
.footer-col-title::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 24px; height: 2px;
  background: var(--orange);
}
.footer-links { display: flex; flex-direction: column; gap: 14px; }
.footer-links a {
  font-size: 0.88rem;
  color: var(--text-mid);
  transition: color 0.2s, transform 0.2s, padding-left 0.2s;
  display: inline-block;
}
.footer-links a:hover {
  color: var(--orange);
  transform: translateX(4px);
}
.footer-bottom {
  max-width: 1180px;
  margin: 0 auto;
  padding: 28px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-light);
  background: var(--white);
}
.footer-sns {
  display: flex;
  gap: 10px;
}
.footer-sns a {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  color: var(--text-mid);
  font-weight: 800;
  letter-spacing: 0.08em;
  transition: 0.25s;
  background: var(--white);
}
.footer-sns a:hover {
  border-color: var(--orange);
  color: var(--orange);
  background: var(--orange-vlight);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(240,112,48,0.2);
}
.footer-bottom-right {
  font-weight: 700;
  color: var(--orange);
}

/* ==========================================================================
   CARD BASE
   ========================================================================== */
.card {
  background: var(--white);
  border-radius: 20px;
  border: 1.5px solid var(--border);
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px var(--shadow-lg);
}
.card-body { padding: 32px; }

/* ==========================================================================
   WORDPRESS CORE CLASSES
   ========================================================================== */
.alignleft { float: left; margin: 5px 24px 16px 0; }
.alignright { float: right; margin: 5px 0 16px 24px; }
.aligncenter { display: block; margin: 16px auto; }
.alignwide { max-width: calc(100% + 96px); margin-left: -48px; margin-right: -48px; }
.alignfull { width: 100vw; max-width: 100vw; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); }
.wp-caption { margin-bottom: 24px; max-width: 100%; }
.wp-caption-text { font-size: 0.82rem; color: var(--text-light); text-align: center; padding: 8px 0; }
.screen-reader-text {
  border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
  height: 1px; margin: -1px; overflow: hidden; padding: 0;
  position: absolute !important; width: 1px; word-wrap: normal !important;
}
.sticky { display: block; }
.bypostauthor { display: block; }
.gallery { margin-bottom: 24px; }

/* ==========================================================================
   404 / SEARCH PAGE
   ========================================================================== */
.error-404, .search-no-results {
  min-height: 70vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-height);
}
.error-404-inner {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  padding: 64px 24px;
}
.error-404-num {
  font-family: 'Inter', sans-serif;
  font-size: clamp(5rem, 14vw, 9rem);
  font-weight: 900;
  color: var(--orange);
  line-height: 1;
  margin-bottom: 16px;
}
.error-404-title { font-size: 1.6rem; font-weight: 900; margin-bottom: 16px; color: var(--text-dark); }
.error-404-text { color: var(--text-mid); margin-bottom: 32px; line-height: 2; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1000px) {
  .container { padding: 0 24px; }
  #nav { padding: 0 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; padding: 0 24px 40px; }
  .footer-bottom { padding: 20px 24px; }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  section { padding: 64px 0; }
  .page-header-inner { padding: 56px 24px 64px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; padding: 0 24px 40px; }
  .footer-cta-inner { padding: 0 24px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; padding: 20px 24px; }
}
@media (max-width: 480px) {
  .container { padding: 0 16px; }
}
