/*
Theme Name: Ordinova
Theme URI: https://ordinova.jp/
Author: Ordinova
Author URI: https://ordinova.jp/
Description: すべての子どもに、学ぶ機会を。Ordinova の公式サイト用カスタムテーマ。教育観・学習プログラム・学びのインフラビジョン・キーメッセージ集・代表プロフィール・お知らせ・お問い合わせを完全実装。
Version: 1.3.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ordinova
Tags: education, custom-colors, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, footer-widgets
*/

/* ===== ベース ===== */
:root {
  --primary: #0F2C5C;
  --primary-soft: #2E6FDB;
  --secondary: #1A3A7A;
  --accent: #00C2A8;
  --accent-soft: #00E0C7;
  --warning: #FF9F1C;
  --danger: #FF5252;
  --success: #2E7D32;
  --bg: #FAFBFC;
  --bg-soft: #F0F4F9;
  --border: #E1E5EB;
  --text: #1A2235;
  --text-soft: #5B6478;
  --shadow-sm: 0 2px 6px rgba(15,44,92,.08);
  --shadow-md: 0 6px 18px rgba(15,44,92,.12);
  --shadow-lg: 0 18px 40px rgba(15,44,92,.18);
  --font-en: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-jp: 'Noto Sans JP', 'Hiragino Sans', 'Yu Gothic', sans-serif;
  --container: 1140px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font-jp);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--primary-soft);
  text-decoration: none;
  transition: color 0.2s ease;
}
a:hover { color: var(--accent); }

img { max-width: 100%; height: auto; display: block; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== ヘッダー ===== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 100;
  border-bottom: 1px solid var(--border);
  transition: all .3s ease;
}
.site-header.scrolled {
  background: rgba(255,255,255,.98);
  box-shadow: var(--shadow-sm);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  padding-bottom: 12px;
}
.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.site-logo img {
  height: 36px;
  width: auto;
}
.nav-main {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-main a {
  color: var(--text);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: .03em;
  position: relative;
}
.nav-main a:hover { color: var(--accent); }
.nav-main a.btn-contact {
  background: linear-gradient(135deg, var(--primary), var(--primary-soft));
  color: #fff;
  padding: 10px 22px;
  border-radius: 24px;
  font-size: 13px;
  box-shadow: var(--shadow-sm);
}
.nav-main a.btn-contact:hover { color: #fff; transform: translateY(-1px); }

.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--primary);
  margin: 5px 0;
  transition: all .3s ease;
}

@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .nav-main {
    position: fixed;
    inset: 64px 0 0 0;
    background: #fff;
    flex-direction: column;
    padding: 32px 24px;
    transform: translateX(100%);
    transition: transform .3s ease;
  }
  .nav-main.open { transform: translateX(0); }
}

/* ===== ヒーロー ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(135deg, #081A3A 0%, #0F2C5C 60%, #1A3A7A 100%);
  color: #fff;
  overflow: hidden;
  padding: 100px 24px;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 25% 20%, rgba(46,111,219,.4) 0%, transparent 50%),
    radial-gradient(circle at 75% 75%, rgba(0,194,168,.3) 0%, transparent 50%);
  pointer-events: none;
  animation: heroBlobs 18s ease-in-out infinite;
}
@keyframes heroBlobs {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}
.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 800px;
}
.hero-logo {
  width: 220px;
  margin: 0 auto 32px;
  filter: drop-shadow(0 0 30px rgba(255,255,255,.3));
}
.hero h1 {
  font-size: clamp(28px, 5vw, 56px);
  line-height: 1.4;
  font-weight: 800;
  margin: 0 0 24px;
  background: linear-gradient(90deg, #fff, #7FD7FF, #fff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  background-size: 200% auto;
  animation: heroShimmer 6s linear infinite;
}
@keyframes heroShimmer {
  to { background-position: 200% center; }
}
.hero-sub {
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.9;
  color: rgba(255,255,255,.85);
  margin-bottom: 40px;
}
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 36px;
  background: linear-gradient(135deg, var(--accent), var(--accent-soft));
  color: #fff;
  font-weight: 700;
  border-radius: 30px;
  box-shadow: 0 12px 30px rgba(0,194,168,.4);
  transition: transform .3s ease;
}
.hero-cta:hover { transform: translateY(-3px); color: #fff; }
.hero-scroll {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,.6);
  font-size: 12px;
  letter-spacing: .3em;
  animation: bounce 2s ease-in-out infinite;
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(10px); }
}

/* ===== セクション共通 ===== */
.section {
  padding: 100px 0;
  position: relative;
}
.section-soft { background: var(--bg-soft); }
.section-dark {
  background: linear-gradient(135deg, #081A3A 0%, #0F2C5C 100%);
  color: #fff;
}
.section-dark h2,
.section-dark h3 { color: #fff; }
.section-tag {
  display: inline-block;
  font-family: var(--font-en);
  font-size: 12px;
  letter-spacing: .4em;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 14px;
  text-transform: uppercase;
}
.section-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  line-height: 1.3;
  margin: 0 0 20px;
  color: var(--primary);
}
.section-dark .section-title { color: #fff; }
.section-lead {
  font-size: 16px;
  line-height: 1.9;
  color: var(--text-soft);
  max-width: 720px;
  margin-bottom: 50px;
}
.section-dark .section-lead { color: rgba(255,255,255,.8); }
.center { text-align: center; }
.center .section-lead { margin-left: auto; margin-right: auto; }

/* ===== ミッション ===== */
.mission-block {
  background: #fff;
  border-radius: 20px;
  padding: 60px 50px;
  box-shadow: var(--shadow-md);
  text-align: center;
}
.mission-jp {
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 800;
  color: var(--primary);
  margin: 0 0 12px;
  letter-spacing: .02em;
}
.mission-en {
  font-family: var(--font-en);
  font-size: 14px;
  letter-spacing: .3em;
  color: var(--accent);
  font-weight: 700;
}

/* ===== カードグリッド ===== */
.grid {
  display: grid;
  gap: 24px;
}
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 768px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
}
.card {
  background: #fff;
  border-radius: 16px;
  padding: 32px;
  border: 1px solid var(--border);
  transition: transform .3s ease, box-shadow .3s ease;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.card-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary), var(--primary-soft));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 22px;
  margin-bottom: 20px;
}
.card h3 {
  font-size: 18px;
  margin: 0 0 12px;
  color: var(--primary);
}
.card p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-soft);
  margin: 0;
}

/* ===== ハイライトボックス ===== */
.philosophy-block {
  background: linear-gradient(135deg, #fff, #F0F9F7);
  border-radius: 20px;
  padding: 50px;
  border-left: 5px solid var(--accent);
}
.philosophy-quote {
  font-size: clamp(20px, 2.4vw, 28px);
  line-height: 1.7;
  font-weight: 700;
  color: var(--primary);
  margin: 0 0 24px;
}
.philosophy-author {
  font-size: 14px;
  color: var(--text-soft);
  letter-spacing: .15em;
}

/* ===== タイムライン ===== */
.timeline {
  position: relative;
  padding-left: 32px;
  border-left: 2px solid var(--border);
}
.timeline-item {
  position: relative;
  padding: 0 0 32px 24px;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: -38px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(0,194,168,.2);
}
.timeline-year {
  font-family: var(--font-en);
  font-size: 14px;
  font-weight: 700;
  color: var(--primary-soft);
  margin-bottom: 4px;
}
.timeline-event {
  font-size: 15px;
  color: var(--text);
  line-height: 1.7;
}

/* ===== お知らせリスト ===== */
.news-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.news-item {
  display: flex;
  gap: 24px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  transition: background .2s ease;
}
.news-item:hover { background: var(--bg-soft); padding-left: 8px; padding-right: 8px; border-radius: 8px; }
.news-date {
  font-family: var(--font-en);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-soft);
  min-width: 100px;
}
.news-category {
  display: inline-block;
  padding: 3px 10px;
  background: var(--bg-soft);
  color: var(--primary);
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  min-width: 70px;
  text-align: center;
}
.news-title {
  font-weight: 600;
  color: var(--text);
}
.news-item:hover .news-title { color: var(--primary-soft); }

/* ===== フッター ===== */
.site-footer {
  background: #0a1a35;
  color: rgba(255,255,255,.7);
  padding: 70px 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 50px;
}
@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
}
.footer-logo img { width: 140px; margin-bottom: 16px; filter: brightness(1.5); }
.footer-tagline { font-size: 13px; line-height: 1.8; color: rgba(255,255,255,.5); }
.footer-col h4 {
  font-size: 13px;
  letter-spacing: .2em;
  color: var(--accent);
  margin: 0 0 18px;
  font-weight: 700;
}
.footer-col a {
  display: block;
  color: rgba(255,255,255,.7);
  font-size: 13px;
  margin-bottom: 10px;
}
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 24px;
  text-align: center;
  font-size: 12px;
  color: rgba(255,255,255,.4);
  letter-spacing: .1em;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .05em;
  cursor: pointer;
  border: 0;
  transition: all .3s ease;
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-soft));
  color: #fff;
}
.btn-primary:hover { color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}
.btn-outline:hover { background: var(--primary); color: #fff; }

/* ===== Page content ===== */
.entry-content {
  max-width: 760px;
  margin: 0 auto;
  padding: 40px 0;
  font-size: 16px;
  line-height: 1.9;
}
.entry-content h1, .entry-content h2, .entry-content h3, .entry-content h4 {
  color: var(--primary);
  margin-top: 1.5em;
}
.entry-content p { margin-bottom: 1.5em; }
.entry-content img { border-radius: 12px; margin: 1.5em 0; }
.entry-content blockquote {
  border-left: 4px solid var(--accent);
  background: var(--bg-soft);
  padding: 20px 24px;
  margin: 2em 0;
  font-style: normal;
  color: var(--text);
}

/* ===== Page header ===== */
.page-header {
  padding: 140px 0 80px;
  background: linear-gradient(135deg, #081A3A 0%, #0F2C5C 100%);
  color: #fff;
  text-align: center;
}
.page-header h1 {
  font-size: clamp(28px, 4vw, 42px);
  margin: 0 0 12px;
}
.page-header .page-tag {
  display: inline-block;
  font-family: var(--font-en);
  font-size: 11px;
  letter-spacing: .4em;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 16px;
}

/* ===== Contact form ===== */
.contact-form {
  max-width: 640px;
  margin: 0 auto;
  background: #fff;
  border-radius: 20px;
  padding: 40px;
  box-shadow: var(--shadow-md);
}
.form-row { margin-bottom: 20px; }
.form-row label { display: block; font-weight: 600; margin-bottom: 8px; font-size: 14px; }
.form-row input,
.form-row textarea,
.form-row select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-family: inherit;
  font-size: 15px;
  transition: border-color .2s ease;
}
.form-row input:focus,
.form-row textarea:focus { outline: none; border-color: var(--accent); }
.form-row textarea { min-height: 140px; resize: vertical; }

/* ===== 404 ===== */
.error-404 {
  text-align: center;
  padding: 140px 24px 80px;
}
.error-404 h1 {
  font-family: var(--font-en);
  font-size: 120px;
  color: var(--primary);
  margin: 0;
  line-height: 1;
}
.erro