/* =============================================================
   CSS RESET & BASELINE NORMALIZATION
   ============================================================= */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.75;
  background: #F8F4E3;
  color: #372f2b;
  font-family: 'Yu Gothic', 'Noto Sans JP', Arial, sans-serif;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
ul, ol {
  list-style: none;
}
a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
button, input, textarea, select {
  font-family: inherit;
  border: none;
  background: none;
  outline: none;
}
/* =============================================================
   TYPOGRAPHY (Vintage Retro Aesthetic)
   ============================================================= */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Noto Sans JP', 'Yu Mincho', 'Yu Gothic', Arial, sans-serif;
  color: #2a5298;
  margin-bottom: 16px;
  font-weight: 700;
  letter-spacing: 0.01em;
}
h1 {
  font-size: 2.5rem;
  letter-spacing: 0.07em;
  text-shadow: 0 2px 0 #f8b40015, 1px 2px 0 #ffffff77;
  font-family: 'Noto Sans JP', 'Yu Mincho', serif;
}
h2 {
  font-size: 2rem;
  border-left: 8px solid #f8b400;
  padding-left: 12px;
  margin-bottom: 24px;
}
h3 {
  font-size: 1.25rem;
  color: #442336;
}
h4, h5, h6 {
  font-size: 1.1rem;
}
p, li, dd {
  font-family: 'Yu Gothic', 'Noto Sans JP', Arial, sans-serif;
  font-size: 1rem;
  margin-bottom: 12px;
}
strong {
  color: #2a5298;
  font-weight: bold;
}
/* Retro-inspired Font for quoted/testimonial content */
.testimonial-card p,
.rating-summary, blockquote {
  font-family: 'Noto Sans JP', '游明朝', 'Georgia', serif;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}
/* =============================================================
   COLOR PALETTE (Vintage Retro)
   ============================================================= */
:root {
  --primary: #2a5298;
  --secondary: #f8b400;
  --accent: #fff;
  --bg-pale: #f8f4e3;
  --retro-red: #d96e3b;
  --retro-blue: #74a5de;
  --retro-light: #ffeec7;
  --retro-green: #b3b876;
  --retro-brown: #b1a27e;
  --retro-text: #372f2b;
}
/* =============================================================
   CONTAINER & LAYOUTS (Flexbox Only)
   ============================================================= */
.container {
  max-width: 1040px;
  width: 94%;
  margin: 0 auto;
  padding: 0 10px;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
/* Flexbox Card and Feature Patterns */
.card-container,.instructor-list,.feature-grid,.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  align-items: stretch;
}
.card, .instructor-card, .feature-item {
  margin-bottom: 20px;
  position: relative;
  background: var(--accent);
  box-shadow: 0 3px 16px #2a529814;
  border-radius: 16px;
  border: 2px dashed #b1a27e33;
  padding: 24px 20px;
  min-width: 220px;
  flex: 1 1 280px;
  transition: box-shadow 0.3s, transform 0.18s;
}
.card:hover,
.instructor-card:hover,
.feature-item:hover {
  box-shadow: 0 8px 32px #b1a27e36, 0 0 0 4px #f8b40022;
  transform: translateY(-3px) scale(1.02);
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 24px;
  background: #ffeec7;
  border-radius: 13px;
  box-shadow: 0 2px 12px #b1a27e33;
  margin-bottom: 20px;
  border-left: 8px solid #2a5298;
  color: #372f2b;
}
.testimonial-card p {
  margin: 0;
  font-size: 1.08rem;
}
.testimonial-card span {
  display: block;
  color: #b18b36;
  font-size: 0.99em;
  margin-top: 6px;
}
.rating-summary {
  font-size: 1.1rem;
  color: #2a5298;
  margin-top: 24px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #fffaf6;
  border: 2px solid #f8b40033;
  padding: 22px 16px 18px 16px;
  border-radius: 14px;
  box-shadow: 0 2px 8px #b1a27e22;
  min-width: 190px;
}
/* Pattern Borders/Backgrounds for Vintage "Card" Retro Feel */
.card, .instructor-card {
  background: repeating-linear-gradient(-45deg, #fffaf5 0 16px, #fff4de 16px 32px);
  border: 2px solid #b1a27e55;
}
.feature-item img, .testimonial-card img {
  max-width: 48px;
  filter: drop-shadow(0 2px 8px #b1a27e33);
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}
/* Section Patterns */
.hero {
  background: linear-gradient(120deg,#ffeec7 75%,#f8b4001c 100%) top left no-repeat;
  border-bottom: 3px double #b1a27e66;
  padding: 56px 0 32px 0;
}
.hero h1 {
  color: #d96e3b;
  text-shadow: 0 3px 0 #f8b40044,0 2px 8px #fff5dc77;
  font-size: 2.1rem;
  /* Responsive up for larger screens below */
}
.about {
  background: #fffaf6 url('../assets/vintage_pattern.svg') repeat-x top/80px;
  border-top: 3px solid #f8b40066;
  border-bottom: 3px solid #f8b40044;
}
.services {
  background: #f8ecce;
  border-radius: 18px;
  box-shadow: 0 2px 12px #b1a27e19;
}
.features {
  background: #f7f1ea;
}
.cta {
  background: #2a5298;
  color: #fff;
  border-top: 5px double #f8b400;
  border-radius: 0 0 24px 24px;
  text-align: center;
}
.cta h2 {
  color: #fff;
  border-color: #fff;
}
.cta a.primary-btn {
  background: #f8b400;
  color: #2a5298;
  box-shadow: 0 2px 10px #2a529888;
}
/* FAQ Style */
.faq-list dt {
  font-weight: bold;
  color: #2a5298;
  margin-top: 20px;
  margin-bottom: 8px;
}
.faq-list dd {
  padding-left: 16px;
  color: #3d2c10;
  margin-bottom: 8px;
}
/* Feature Icon List in Trial */
.feature-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: flex-start;
  align-items: center;
  margin: 18px 0;
}
.feature-icons li {
  background: #fff4de;
  border: 2px solid #b1a27e22;
  border-radius: 50%;
  padding: 14px;
  min-width: 54px;
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
}
/* =============================================================
   HEADER & NAVIGATION
   ============================================================= */
header {
  background: #fffaf6;
  border-bottom: 5px solid #f8b40044;
  width: 100%;
  z-index: 101;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 14px;
  padding-bottom: 14px;
}
.main-nav {
  display: flex;
  gap: 22px;
  align-items: center;
}
.main-nav a {
  font-family: 'Noto Sans JP', 'Yu Gothic', Arial, sans-serif;
  font-size: 1.04rem;
  font-weight: 600;
  color: #2a5298;
  letter-spacing: 0.04em;
  padding: 5px 0 3px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.17s, border-bottom 0.18s;
  position: relative;
}
.main-nav a:hover, .main-nav a:focus {
  color: #d96e3b;
  border-bottom: 2px solid #f8b400;
}
.primary-btn {
  background: #2a5298;
  color: #fff;
  border-radius: 256px 84px 210px 144px/120px 170px 122px 95px;
  padding: 15px 34px;
  box-shadow: 0 6px 20px #2a529833;
  font-family: 'Noto Sans JP', 'Yu Gothic', Arial, sans-serif;
  font-size: 1.07rem;
  letter-spacing: 0.04em;
  font-weight: bold;
  margin-left: 16px;
  outline: none;
  border: none;
  transition: background 0.2s, color 0.18s, box-shadow 0.20s, transform 0.13s;
  display: inline-block;
  cursor: pointer;
  position: relative;
  z-index: 1;
}
.primary-btn:hover, .primary-btn:focus {
  background: #f8b400;
  color: #2a5298;
  box-shadow: 0 2px 32px #d96e3b44,0 1px 8px #fff4de99;
  transform: translateY(-2px) scale(1.03);
}
/* Mobile Burger Icon */
.mobile-menu-toggle {
  background: #f8b400;
  color: #fff;
  border-radius: 12px;
  font-size: 2.0rem;
  padding: 8px 15px;
  border: 2px solid #2a5298;
  box-shadow: 0 1px 6px #2a529814;
  display: none;
  align-items: center;
  cursor: pointer;
  margin-left: 24px;
  transition: background 0.15s, color 0.15s;
  z-index: 108;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: #2a5298;
  color: #f8b400;
}
/* =============================================================
   MOBILE MENU OVERLAY
   ============================================================= */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100vw;
  height: 100vh;
  z-index: 2000;
  background: #f7f1eaee;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-end;
  padding: 0;
  overflow-y: auto;
  transform: translateX(105%);
  transition: transform 0.36s cubic-bezier(.5,.8,0,1);
}
.mobile-menu.open {
  display: flex;
  transform: translateX(0);
}
.mobile-menu-close {
  background: #2a5298;
  color: #fff;
  border: none;
  font-size: 2.2rem;
  border-radius: 50%;
  margin: 23px 26px 18px 0;
  width: 52px;
  height: 52px;
  align-items: center;
  justify-content: center;
  display: flex;
  cursor: pointer;
  box-shadow: 0 1px 7px #2a529833;
  transition: background 0.15s,color 0.15s,transform 0.11s;
  z-index: 2052;
}
.mobile-menu-close:hover,.mobile-menu-close:focus {
  background: #f8b400;
  color: #2a5298;
  transform: rotate(-10deg) scale(1.05);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 90vw;
  max-width: 420px;
  background: #fffaf6;
  margin-right: 0;
  border-left: 6px double #d96e3b77;
  min-height: 100vh;
  box-shadow: -6px 0 40px #b1a27e44;
  padding: 38px 32px 40px 28px;
  z-index: 2010;
}
.mobile-nav a {
  font-size: 1.24rem;
  font-family: 'Noto Sans JP', 'Yu Gothic', Arial, sans-serif;
  color: #2a5298;
  font-weight: 700;
  padding: 16px 0 7px 0;
  border-bottom: 2px solid #f8b40022;
  transition: color 0.18s, border-bottom 0.18s, background 0.15s;
  border-radius: 7px;
  display: block;
  text-align: left;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: #fff;
  background: #2a5298;
  border-bottom: 2px solid #f8b400;
}
/* Hide nav on mobile */
@media (max-width: 900px) {
  .main-nav {
    display: none!important;
  }
  .mobile-menu-toggle {
    display: flex;
  }
  .primary-btn {
    margin-left: auto;
  }
}
@media (max-width: 620px) {
  .mobile-nav {
    padding: 30px 15px 32px 10px;
    max-width: 99vw;
  }
}
/* =============================================================
   FOOTER
   ============================================================= */
footer {
  background: #fffaf6;
  border-top: 8px double #f8b40044;
  padding: 40px 0 12px 0;
  margin-top: 70px;
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 22px;
  align-items: flex-start;
}
.footer-logo {
  margin-bottom: 12px;
}
.footer-nav {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}
.footer-nav a {
  color: #2a5298;
  font-size: 1.02rem;
  border-bottom: 1px dotted #b1a27e88;
  transition: color 0.15s, border-bottom 0.15s;
  padding-right: 6px;
}
.footer-nav a:hover,.footer-nav a:focus {
  color: #d96e3b;
  border-bottom: 1px solid #f8b400;
}
.footer-contact {
  color: #442336;
  font-size: 0.98rem;
  line-height: 1.62;
}
footer small {
  margin-top: 14px;
  font-size: 0.98rem;
  color: #7c6f5e;
}
/* =============================================================
   COOKIES CONSENT BANNER & MODAL
   ============================================================= */
.cookie-banner {
  position: fixed;
  left: 0;right: 0;bottom: 0;
  z-index: 3001;
  background: #2a5298;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 10px 18px 10px;
  font-size: 1.05rem;
  box-shadow: 0 -2px 38px #2a5298cc;
  gap: 32px;
  transition: transform 0.38s cubic-bezier(.44,.08,.22,1);
  font-family: 'Noto Sans JP', 'Yu Gothic', Arial, sans-serif;
}
.cookie-banner.hide {
  transform: translateY(160%);
}
.cookie-banner__desc {
  max-width: 440px;
  line-height: 1.7;
  font-size: 1.01rem;
}
.cookie-btns {
  display: flex;
  align-items: center;
  gap: 14px;
}
.cookie-btn {
  border: none;
  background: #f8b400;
  color: #2a5298;
  border-radius: 22px;
  font-size: 1rem;
  font-weight: 700;
  padding: 9px 21px;
  margin: 0 4px;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, box-shadow 0.20s;
  min-width: 90px;
}
.cookie-btn:hover, .cookie-btn:focus {
  background: #d96e3b;
  color: #fff;
}
.cookie-btn.secondary {
  background: #b3b876;
  color: #2a5298;
}
.cookie-btn.secondary:hover, .cookie-btn.secondary:focus {
  background: #2a5298;
  color: #fff;
}
.cookie-modal-backdrop {
  position: fixed;
  top:0;left:0;right:0;bottom:0;
  background: #372f2baa;
  z-index: 3030;
  display: none;
  justify-content: center;
  align-items: center;
}
.cookie-modal-backdrop.open {
  display: flex;
}
.cookie-modal {
  background: #fffaf6;
  padding: 35px 32px 31px 32px;
  border-radius: 21px;
  box-shadow: 0 2px 44px #b1a27e88;
  min-width: 318px;
  max-width: 94vw;
  color: #372f2b;
  font-family: 'Noto Sans JP', 'Yu Gothic', Arial, sans-serif;
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: relative;
}
.cookie-modal h2 {
  margin-bottom: 8px;
  font-size: 1.21rem;
  color: #2a5298;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 12px;
  font-size: 1rem;
}
.cookie-category label {
  font-weight: 700;
  color: #2a5298;
  cursor: pointer;
}
.cookie-toggle {
  width: 38px;
  height: 22px;
  background: #b3b876;
  border-radius: 13px;
  position: relative;
  margin-left: 8px;
  display: inline-block;
  cursor: pointer;
  transition: background 0.19s;
}
.cookie-toggle input[type=checkbox] {
  display: none;
}
.cookie-toggle .slider {
  position: absolute;
  left: 3px;
  top: 3px;
  width: 16px;
  height: 16px;
  background: #fff;
  border-radius: 50%;
  transition: left 0.22s;
  box-shadow: 0 1px 8px #f8b40033;
}
.cookie-toggle input:checked + .slider {
  left: 18px;
  background: #2a5298;
}
.cookie-modal-close {
  position: absolute;
  top: 18px; right: 22px;
  background: #2a5298;
  border: none;
  color: #fff;
  font-size: 1.37rem;
  border-radius: 50%;
  width: 38px; height: 38px;
  display: flex;align-items: center;justify-content: center;
  cursor: pointer;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  background: #f8b400;
  color: #2a5298;
}
/* =============================================================
   FORMS & CONTACT-WIDGETS
   ============================================================= */
input,textarea,select {
  font-size: 1.09rem;
  border-radius: 7px;
  border: 1px solid #b1a27e88;
  background: #fffaf6;
  padding: 8px 13px;
  margin-bottom: 18px;
  box-shadow: 0 1px 4px #b1a27e19;
  width: 100%;
  transition: box-shadow .15s, border-color .16s;
}
input:focus,textarea:focus,select:focus {
  border-color: #f8b400;
  box-shadow: 0 2px 11px #d96e3b36;
}
label {
  color: #2a5298;
  font-weight: 600;
  font-size: 1.01rem;
  margin-bottom: 5px;
  display: block;
}
/* =============================================================
   TABLES & DLs (RETRO Accent)
   ============================================================= */
dt {
  color: #d96e3b;
  font-weight: bold;
  margin-bottom: 3px;
}
dd {
  margin-left: 17px;
  color: #372f2b;
}
table {
  border-collapse: collapse;
  margin-bottom: 24px;
  width: 100%;
}
th, td {
  border: 1.5px solid #b1a27e66;
  padding: 12px 10px;
}
th {
  background: #ffeec7;
  color: #2a5298;
}
tr:nth-child(even) {
  background: #fffaf6;
}
/* =============================================================
   OTHER ELEMENTS
   ============================================================= */
ul li, ol li {
  margin-bottom: 6px;
}
ul li strong {
  color: #d96e3b;
}
blockquote {
  background: #fff4de;
  border-left: 7px solid #d96e3b;
  padding: 16px 20px;
  border-radius: 10px;
  margin: 22px 2px;
  font-style: italic;
}
/* Card layout for instructors page */
.instructor-list {
  gap: 24px;
  flex-wrap: wrap;
}
.instructor-card {
  min-width: 220px;
  flex: 1 1 270px;
  background: #f8f4e3;
}
/* Responsive alignment for all main content wrappers */
@media (max-width: 900px) {
  .container {
    max-width: 94vw;
    padding: 0 6px;
  }
  .section {
    padding: 24px 7px;
    margin-bottom: 42px;
  }
  .feature-grid,.card-container,.content-grid,.instructor-list {
    gap: 14px 12px;
  }
}
@media (max-width: 768px) {
  .content-wrapper, .card-container, .feature-grid, .content-grid, .instructor-list {
    flex-direction: column!important;
    gap: 21px;
    align-items: stretch;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
  }
  .section {
    padding: 13px 3vw;
    margin-bottom: 28px;
  }
  .card, .instructor-card, .feature-item {
    padding: 16px 10px 13px 10px;
    min-width: unset;
    flex: 1 1 100%;
  }
}
@media (max-width: 540px) {
  .hero {
    padding: 34px 0 21px 0;
  }
  .hero h1 {
    font-size: 1.34rem;
    letter-spacing: 0.02em;
  }
  h2 {font-size: 1.24rem;paddingleft:6px;}
  .cta {
    border-radius: 0 0 14px 14px;
    padding: 10px 0 17px;
  }
  .footer-contact,
  footer small {
    font-size: 0.90rem;
  }
}
/* CARD SPACING FOR FLEX LAYOUTS */
.card:not(:last-child),.instructor-card:not(:last-child),.feature-item:not(:last-child),
.testimonial-card:not(:last-child) {
  margin-bottom: 20px!important;
}
/* Content gap enforcement for layouts */
.card-container, .feature-grid, .instructor-list, .content-grid,
.features, .testimonials, .about, .cta, .services, .contact {
  gap: 20px;
}
/* ================================================
   ANIMATIONS & MICRO-INTERACTIONS
   ================================================ */
.primary-btn,.main-nav a,.mobile-nav a, .cookie-btn {
  transition: background 0.18s, color 0.19s, border 0.16s, box-shadow 0.14s,transform 0.12s;
}
.testimonial-card   { transition: box-shadow 0.25s, border 0.21s; }
.testimonial-card:hover { box-shadow: 0 8px 30px #f8b40033; border-left-color: #d96e3b; }
.feature-item:hover { box-shadow: 0 8px 30px #eff08b66; border-color: #2a5298; }
.card:hover { transform: translateY(-2px) scale(1.02); border-color: #d96e3b77; }
.instructor-card:hover { border-color: #f8b400; }
.cookie-banner, .cookie-btn { transition: all 0.24s cubic-bezier(.86,.03,.38,1.06); }
/* ================================================
   RETRO STYLISTIC FLAIR (optional deco marks)
   ================================================ */
.section, .about, .services, .features {
  position: relative;
  overflow-x: hidden;
}
.section::before {
  content: '';
  display: block;
  position: absolute;
  left: 0; top: 0;
  width: 100%; height: 7px;
  background: repeating-linear-gradient(90deg,#b1a27e77 0 3px,transparent 3px 17px);
  opacity: 0.12;
  z-index: 0;
}
.section::after {
  content: '';
  display: block;
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 4px;
  background: linear-gradient(90deg,#ffeec7 64%,#f8b40044 100%);
  opacity: 0.19;
  z-index: 0;
}
/* Decorative lines for h2 titles */
h2 {
  position: relative;
}
h2::after {
  content: '';
  display: block;
  height: 3px;
  border-radius: 4px;
  background: #2a5298;
  width: 36px;
  margin-top: 5px;
}
@media (max-width: 520px) {
  h2 { font-size: 1.09rem; }
  h3 { font-size: 0.99rem; }
  .section {
    padding: 8px 2vw;
    margin-bottom: 19px;
  }
}
/* =============================================================
   PRINT-FRIENDLY (NO BG IMAGES)
   ============================================================= */
@media print {
  body,header,footer,main,section,div { background: none!important; color:#111!important; }
  a { color: #222 !important; text-decoration: underline; }
}
