/*
Theme Name: UPEO Education
Theme URI: https://upeo.education
Author: UPEO Education Inc.
Description: UPEO Education Corporate Site
Version: 1.0.0
Requires at least: 5.0
Tested up to: 6.4
Requires PHP: 7.4
License: Private
Text Domain: upeo-education
*/



:root {
  --navy:       #2d4a7a;
  --navy-dark:  #1e3358;
  --navy-pale:  #eef2f8;
  --coral:      #888a90;
  --coral-dark: #6b6d73;
  --coral-pale: #f2f2f3;
  --text:       #1a1a1a;
  --text-sub:   #555;
  --border:     #e0e0e0;
  --bg-gray:    #f7f7f7;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Noto Sans JP', sans-serif;
  color: var(--text);
  background: #fff;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ===========================
   HEADER
   =========================== */
#site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: #fff;
  border-bottom: 1px solid var(--border);
  height: 64px;
}
.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ロゴ：アイコン＋横長ロゴ画像 */
.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 40px;
  flex-shrink: 0;
}
.site-logo img {
  height: 36px;
  width: auto;
  display: block;
}

/* Cone準拠：ナビは縦線区切り */
.header-nav {
  display: flex;
  align-items: stretch;
  height: 64px;
  border-left: 1px solid var(--border);
}
.header-nav a {
  font-size: 13px;
  color: #444;
  padding: 0 20px;
  display: flex;
  align-items: center;
  border-right: 1px solid var(--border);
  transition: color 0.15s, background 0.15s;
  white-space: nowrap;
}
.header-nav a.current { font-weight: 700; color: var(--navy); }
.header-nav a:hover { color: var(--navy); background: var(--navy-pale); }
.header-nav .nav-cta {
  background: var(--coral);
  color: #fff !important;
  font-weight: 700;
  padding: 0 22px !important;
  transition: background 0.15s !important;
}
.header-nav .nav-cta:hover { background: var(--coral-dark) !important; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
}
.hamburger span { display: block; width: 20px; height: 1.5px; background: var(--text); }

.sp-nav {
  display: none;
  position: fixed;
  top: 64px; left: 0; right: 0; bottom: 0;
  background: #fff;
  z-index: 999;
  flex-direction: column;
  overflow-y: auto;
}
.sp-nav.open { display: flex; }
.sp-nav a {
  font-size: 15px; font-weight: 500;
  padding: 20px 32px;
  border-bottom: 1px solid #f0f0f0;
  color: var(--text);
}
.sp-nav .sp-cta {
  margin: 24px 32px;
  background: var(--coral);
  color: #fff;
  text-align: center;
  border-radius: 4px;
  padding: 16px;
  font-weight: 700;
  border-bottom: none;
}

/* ===========================
   MAIN
   =========================== */
main { margin-top: 64px; }

/* ===========================
   HERO（Cone準拠：左テキスト＋右ニュースカード横並び）
   =========================== */
.hero-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 72px 32px 80px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  overflow: hidden;
}

.hero-label {
  font-size: 12px;
  color: #999;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}

.hero-title {
  font-size: clamp(28px, 3.5vw, 46px);
  font-weight: 900;
  line-height: 1.4;
  letter-spacing: -0.02em;
  color: var(--navy);
  margin-bottom: 16px;
  white-space: nowrap; /* 勝手に折り返させない */
}
@media (max-width: 600px) {
  .hero-title { white-space: normal; font-size: 26px; }
}

.hero-sub {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
}

.hero-desc {
  font-size: 13px;
  color: var(--text-sub);
  line-height: 1.9;
  margin-bottom: 28px;
}

.hero-btns {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.btn-primary {
  background: var(--navy);
  color: #fff;
  padding: 12px 22px;
  border-radius: 3px;
  font-size: 13px;
  font-weight: 700;
  transition: background 0.15s;
}
.btn-primary:hover { background: var(--navy-dark); }
.btn-secondary {
  background: #fff;
  color: var(--text);
  padding: 12px 22px;
  border-radius: 3px;
  font-size: 13px;
  font-weight: 700;
  border: 1.5px solid #ccc;
  transition: border-color 0.15s;
}
.btn-secondary:hover { border-color: var(--navy); color: var(--navy); }

/* 右：ニュースカード横並び */
.hero-news-scroll { overflow: hidden; }
.hero-news-inner {
  display: flex;
  gap: 12px;
}
.hero-news-card {
  flex-shrink: 0;
  width: 200px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
}
.hero-news-card:hover {
  box-shadow: 0 4px 16px rgba(45,74,122,0.12);
  transform: translateY(-2px);
}
.hero-news-thumb {
  width: 100%;
  height: 110px;
  background: var(--navy-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
}
.hero-news-body { padding: 10px 12px 12px; }
.hero-news-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
}
.hero-news-cat {
  font-size: 10px;
  color: #fff;
  background: var(--coral);
  padding: 2px 6px;
  border-radius: 2px;
}
.hero-news-date { font-size: 10px; color: #999; }
.hero-news-title {
  font-size: 12px;
  color: var(--text);
  line-height: 1.55;
  font-weight: 500;
}

/* ===========================
   セクション共通見出し（Cone：左青線＋テキスト）
   =========================== */
.sec-heading {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 48px;
  border-left: 3px solid var(--coral);
  padding-left: 14px;
}
.sec-heading-main {
  font-size: clamp(18px, 2.5vw, 24px);
  font-weight: 900;
  color: var(--text);
  letter-spacing: -0.01em;
}
.sec-heading-sub { font-size: 13px; color: #888; }

/* ===========================
   RULES（Cone「14 Rules」準拠）
   左：縦サイドバー、右：アコーディオン
   =========================== */
.rules-section {
  background: var(--bg-gray);
  padding: 80px 0;
}
.rules-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px;
}

.rules-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
}

.rules-sidebar { border-right: 1px solid var(--border); }
.rule-sidebar-item {
  padding: 13px 16px;
  font-size: 12px;
  color: #888;
  cursor: pointer;
  border-bottom: 1px solid #f5f5f5;
  display: flex;
  gap: 8px;
  align-items: baseline;
  transition: all 0.15s;
  line-height: 1.4;
}
.rule-sidebar-item:last-child { border-bottom: none; }
.rule-sidebar-item .r-num { font-size: 10px; color: #ccc; min-width: 22px; flex-shrink: 0; }
.rule-sidebar-item:hover { background: #fafafa; color: var(--text); }
.rule-sidebar-item.active {
  background: var(--navy-pale);
  color: var(--navy);
  font-weight: 700;
}
.rule-sidebar-item.active .r-num { color: var(--navy); opacity: 0.6; }

.rule-acc-item { border-bottom: 1px solid #e8e8e8; }
.rule-acc-item:last-child { border-bottom: none; }
.rule-acc-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 24px;
  cursor: pointer;
  transition: background 0.15s;
}
.rule-acc-head:hover { background: #fafafa; }
.rule-acc-toggle {
  font-size: 12px;
  color: #bbb;
  transition: transform 0.25s, color 0.2s;
  flex-shrink: 0;
}
.rule-acc-item.open .rule-acc-toggle {
  transform: rotate(180deg);
  color: var(--coral);
}
.rule-acc-num { font-size: 12px; color: #ccc; min-width: 26px; }
.rule-acc-title { font-size: 14px; font-weight: 700; color: var(--text); }

.rule-acc-body {
  display: none;
  padding: 0 24px 20px 64px;
}
.rule-acc-item.open .rule-acc-body { display: block; }
.rule-acc-body p { font-size: 13px; color: var(--text-sub); line-height: 1.9; }

/* ===========================
   FAQ（Cone「7 FAQ」準拠）
   左：縦ナビ、右：全展開縦並び
   =========================== */
.faq-section {
  padding: 80px 0;
}
.faq-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px;
}

.faq-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 0;
  align-items: start;
}

.faq-sidebar {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 6px 0 0 6px;
  position: sticky;
  top: 80px;
  overflow: hidden;
}
.faq-sidebar-item {
  padding: 14px 16px;
  font-size: 12px;
  color: #888;
  cursor: pointer;
  border-bottom: 1px solid #f5f5f5;
  display: flex;
  gap: 8px;
  align-items: baseline;
  transition: all 0.15s;
}
.faq-sidebar-item:last-child { border-bottom: none; }
.faq-sidebar-item .f-num { font-size: 10px; color: #ccc; min-width: 22px; flex-shrink: 0; }
.faq-sidebar-item:hover { background: #fafafa; color: var(--text); }
.faq-sidebar-item.active {
  background: var(--navy-pale);
  color: var(--navy);
  font-weight: 700;
}
.faq-sidebar-item.active .f-num { color: var(--navy); opacity: 0.6; }

.faq-main {
  background: #fff;
  border: 1px solid var(--border);
  border-left: none;
  border-radius: 0 6px 6px 0;
}
.faq-content-item {
  padding: 36px;
  border-bottom: 1px solid #e8e8e8;
}
.faq-content-item:last-child { border-bottom: none; }
.faq-q {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
  display: flex;
  gap: 12px;
  align-items: baseline;
}
.faq-q .q-num { font-size: 17px; color: #ccc; min-width: 30px; }

.faq-a { padding-left: 42px; }
.faq-a p { font-size: 13px; color: var(--text-sub); line-height: 1.9; margin-bottom: 12px; }
.faq-a p:last-child { margin-bottom: 0; }

.faq-stat-box {
  background: var(--bg-gray);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 24px;
  margin: 16px 0;
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}
.faq-stat-item .s-num {
  font-size: 36px;
  font-weight: 900;
  color: var(--navy);
  line-height: 1;
  letter-spacing: -0.03em;
}
.faq-stat-item .s-num span { font-size: 18px; font-weight: 700; }
.faq-stat-item .s-label { font-size: 11px; color: #888; margin-top: 4px; }

.faq-a-link {
  display: inline-block;
  margin-top: 12px;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  background: var(--navy);
  padding: 10px 20px;
  border-radius: 3px;
  transition: background 0.15s;
}
.faq-a-link:hover { background: var(--navy-dark); }

.faq-vision-box {
  background: var(--navy-pale);
  border-left: 3px solid var(--coral);
  border-radius: 0 6px 6px 0;
  padding: 24px 28px;
  margin: 16px 0;
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.8;
}

/* ===========================
   FOOTER CTA（Cone：コーラル背景＋3カード）
   =========================== */
.footer-cta-wrap {
  background: #4a5568;
  padding: 48px 0 0;
}
.footer-cta-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px;
}
.footer-cta-top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  padding-bottom: 32px;
}
.footer-cta-text h2 {
  font-size: clamp(17px, 2.3vw, 22px);
  font-weight: 900;
  color: #fff;
  line-height: 1.6;
}
.footer-cta-photo {
  width: 280px;
  height: 130px;
  background: rgba(255,255,255,0.60);
  border-radius: 8px 8px 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: rgba(255,255,255,0.60);
  flex-shrink: 0;
}

.footer-cta-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.footer-cta-card {
  background: #fff;
  padding: 24px;
  border-right: 1px solid var(--border);
  display: block;
  transition: background 0.15s;
}
.footer-cta-card:last-child { border-right: none; }
.footer-cta-card:hover { background: #f8f8f8; }

.footer-cta-card-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}
.card-icon {
  width: 22px; height: 22px;
  background: var(--coral-pale);
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  flex-shrink: 0;
}
.card-arrow {
  width: 20px; height: 20px;
  background: var(--coral);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: #fff;
  margin-left: auto;
  flex-shrink: 0;
}
.footer-cta-card p { font-size: 12px; color: #888; line-height: 1.8; }

/* ===========================
   FOOTER（Cone：ネイビー背景）
   =========================== */
#site-footer {
  background: var(--navy-dark);
  padding: 48px 32px 32px;
}
.footer-inner { max-width: 1100px; margin: 0 auto; }

.footer-top-row {
  display: flex;
  gap: 48px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255,255,255,0.60);
  margin-bottom: 20px;
  align-items: flex-start;
}

.footer-logo-block { min-width: 200px; }
.footer-logo-img {
  height: 32px;
  width: auto;
  display: block;
  margin-bottom: 14px;
  /* ロゴ画像を白く反転 */
  filter: brightness(0) invert(1);
}
.footer-address { font-size: 11px; color: rgba(255,255,255,0.60); line-height: 1.9; }

.footer-nav-block { flex: 1; }
.footer-nav-row {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 4px;
}
.footer-nav-row a {
  font-size: 12px;
  color: rgba(255,255,255,0.60);
  padding: 4px 14px;
  border-right: 1px solid rgba(255,255,255,0.60);
  white-space: nowrap;
  transition: color 0.15s;
}
.footer-nav-row a:first-child { padding-left: 0; }
.footer-nav-row a:hover { color: #fff; }
.footer-copy { font-size: 11px; color: rgba(255,255,255,0.60); }

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 900px) {
.hero-wrap {
    grid-template-columns: 1fr;
    padding: 48px 20px 56px;
    gap: 32px;
  }
  .hero-news-inner { overflow-x: auto; padding-bottom: 8px; }

  .rules-layout, .faq-layout {
    grid-template-columns: 1fr;
  }
  .rules-sidebar, .faq-sidebar {
    position: static !important;
    border-radius: 6px 6px 0 0 !important;
    border-right: 1px solid var(--border) !important;
    border-bottom: none !important;
  }
  .faq-main, .rules-main {
    border-left: 1px solid var(--border) !important;
    border-radius: 0 0 6px 6px !important;
  }
  .sec-heading { margin-bottom: 24px; }
  .footer-cta-inner { padding: 0 20px; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; padding: 40px 20px; }
  .rules-inner, .faq-inner { padding: 0 20px; }
}
  .rules-sidebar, .faq-sidebar {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 6px 0 0 6px;
  position: sticky;
  top: 80px;
  overflow: hidden;
}
  .rule-sidebar-item, .faq-sidebar-item {
    border-bottom: none;
    border-right: 1px solid #f0f0f0;
    padding: 10px 14px;
  }
  .rule-acc-body { padding-left: 24px; }
  .faq-content-item { padding: 24px 20px; }
  .faq-a { padding-left: 0; }

  .footer-cta-top { flex-direction: column; }
  .footer-cta-photo { width: 100%; border-radius: 8px; }
  .footer-cta-cards { grid-template-columns: 1fr; }
  .footer-cta-card { border-right: none; border-bottom: 1px solid var(--border); }
  .footer-cta-card:last-child { border-bottom: none; }

  .footer-top-row { flex-direction: column; gap: 24px; }
  .rules-inner, .faq-inner { padding: 0 20px; }
  #site-footer { padding: 40px 20px 28px; }
}

.draft-badge {
  position: fixed;
  bottom: 16px; right: 16px;
  background: rgba(0,0,0,0.55);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 100px;
  letter-spacing: 0.08em;
  z-index: 9999;
  pointer-events: none;
}

#bg-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  z-index: 0;
  pointer-events: none;
}
#site-header { z-index: 1000; }
main { position: relative; z-index: 1; }
#site-footer { position: relative; z-index: 1; }
.footer-cta-wrap { position: relative; z-index: 1; }
.sp-nav { z-index: 999; }
.draft-badge { z-index: 9999; }
.hero-wrap     { background: rgba(255,255,255,0.60);  }
.rules-section { background: rgba(248,248,248,0.62);  }
.faq-section   { background: rgba(255,255,255,0.60);  }



/* ── 会社概要ページ固有 ── */
.about-hero {
  padding: 100px 32px 64px;
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.about-hero-label {
  font-size: 11px;
  letter-spacing: 0.12em;
  color: #999;
  margin-bottom: 16px;
  font-family: 'DM Sans', sans-serif;
}
.about-hero-title {
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 900;
  color: var(--navy);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 0;
}
.about-hero-title span {
  display: block;
  font-size: clamp(14px, 1.5vw, 18px);
  font-weight: 400;
  color: #aaa;
  letter-spacing: 0.05em;
  margin-top: 10px;
  font-family: 'DM Sans', sans-serif;
}

.about-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px 100px;
  position: relative;
  z-index: 1;
}

/* テーブル */
.about-table-wrap {
  background: rgba(255,255,255,0.82);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.about-table {
  width: 100%;
  border-collapse: collapse;
}
.about-table tr {
  border-bottom: 1px solid var(--border);
}
.about-table tr:last-child {
  border-bottom: none;
}
.about-table th {
  width: 180px;
  padding: 22px 28px;
  font-size: 12px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.04em;
  text-align: left;
  vertical-align: top;
  background: rgba(238,242,248,0.6);
  white-space: nowrap;
}
.about-table td {
  padding: 22px 28px;
  font-size: 13px;
  color: var(--text);
  line-height: 1.9;
  vertical-align: top;
}
.about-table td .en {
  display: block;
  font-size: 11px;
  color: #aaa;
  font-family: 'DM Sans', sans-serif;
  margin-top: 2px;
}
.about-table td .ceo-note {
  display: block;
  font-size: 11px;
  color: #999;
  margin-top: 4px;
}
.about-table td a {
  color: var(--navy);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
}
.about-table td a:hover {
  border-bottom-color: var(--navy);
}
.contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--navy);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: 4px;
  text-decoration: none;
  transition: background .2s;
}
.contact-btn:hover { background: var(--navy-dark); }

/* セクション見出し（再利用） */
.about-sec-label {
  font-size: 11px;
  letter-spacing: 0.12em;
  color: #999;
  margin-bottom: 6px;
  font-family: 'DM Sans', sans-serif;
}
.about-sec-title {
  font-size: 22px;
  font-weight: 900;
  color: var(--navy);
  margin-bottom: 32px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--navy-pale);
}

@media (max-width: 900px) {
.about-hero { padding: 80px 20px 48px; }
  .about-section { padding: 0 20px 64px; }
  .about-table th {
    width: 100px;
    padding: 16px 16px;
    font-size: 11px;
  }
  .about-table td { padding: 16px 16px; }
}

/* ── フッター ── */
.footer-inner {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr;
  gap: 48px; padding: 56px 32px;
}
.footer-col-title {
  font-size: 11px; font-weight: 700; letter-spacing: 0.1em;
  color: rgba(255,255,255,.45); margin-bottom: 14px; text-transform: uppercase;
}
.footer-link {
  display: block; font-size: 13px; color: rgba(255,255,255,.65);
  text-decoration: none; margin-bottom: 10px; transition: color .2s;
}
.footer-link:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  text-align: center; padding: 20px 32px;
  font-size: 11px; color: rgba(255,255,255,.35);
}
#site-footer { background: var(--navy); position: relative; z-index: 1; }
@media (max-width: 900px) {
  .footer-inner { grid-template-columns: 1fr; gap: 32px; padding: 40px 20px; }
}


/* WordPress */
img { max-width: 100%; height: auto; }
.wp-block { margin: 0; }
