/* =========================================
   Vintage Retro Style for ユースマネーガイド
   ========================================= */

/* ========== FONT IMPORTS ========== */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700&family=Roboto+Slab:wght@400;700&family=Noto+Sans+JP:wght@400;700&display=swap');

/* ========== CSS VARIABLES ========== */
:root {
  /* Brand Colors */
  --primary: #1A387A;
  --primary-dark: #11244d;
  --secondary: #FFFFFF;
  --secondary-bg: #E7F0F8;
  --accent: #F4B400;
  --accent-dark: #c49000;
  --retro-red: #D94F4F;
  --retro-green: #4FA37A;
  --retro-blue: #2952A3;
  --retro-orange: #F4B400;
  --retro-cream: #F9F6F1;
  --retro-brown: #8B6F47;
  --retro-shadow: rgba(50, 40, 20, 0.12);
  --text-main: #2B2B2B;
  --text-dark: #1A1A1A;
  --text-light: #fff;
  --border-radius: 16px;
  --border-radius-sm: 8px;
  --border-radius-lg: 32px;
  --font-display: 'Montserrat', 'Noto Sans JP', 'Roboto Slab', Yu Gothic, sans-serif;
  --font-body: 'Noto Sans JP', Yu Gothic, 'Roboto Slab', sans-serif;
  --pattern-url: url('data:image/svg+xml;utf8,<svg width="40" height="40" viewBox="0 0 40 40" fill="none" xmlns="http://www.w3.org/2000/svg"><rect width="40" height="40" fill="%23F9F6F1"/><circle cx="20" cy="20" r="2" fill="%23F4B400"/><circle cx="0" cy="0" r="2" fill="%23D94F4F"/><circle cx="40" cy="40" r="2" fill="%234FA37A"/></svg>');
  --transition: 0.25s cubic-bezier(.4,0,.2,1);
}

/* ========== RESET & BASE ========== */
html {
  box-sizing: border-box;
  font-size: 16px;
  background: var(--retro-cream);
  color: var(--text-main);
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--pattern-url), var(--retro-cream);
  min-height: 100vh;
  line-height: 1.7;
  letter-spacing: 0.01em;
  color: var(--text-main);
}
img {
  max-width: 100%;
  height: auto;
  border-radius: var(--border-radius-sm);
}
a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover, a:focus {
  color: var(--accent);
}

/* ========== TYPOGRAPHY ========== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--primary);
  margin-top: 0;
  margin-bottom: 0.6em;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-shadow: 1px 1px 0 var(--accent), 0 2px 8px var(--retro-shadow);
}
h1 {
  font-size: 2.2rem;
  margin-bottom: 0.5em;
}
h2 {
  font-size: 1.6rem;
  margin-bottom: 0.5em;
}
h3 {
  font-size: 1.2rem;
  margin-bottom: 0.4em;
}
p, ul, ol, dl {
  font-size: 1rem;
  margin-bottom: 1em;
  color: var(--text-main);
}
strong {
  color: var(--retro-red);
  font-weight: 700;
}

/* ========== LAYOUT CONTAINERS ========== */
.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--secondary-bg);
  border-radius: var(--border-radius-lg);
  box-shadow: 0 4px 24px var(--retro-shadow);
  position: relative;
}

/* ========== HEADER & NAVIGATION ========== */
header {
  background: var(--primary);
  color: var(--text-light);
  padding: 0;
  box-shadow: 0 2px 12px var(--retro-shadow);
  position: sticky;
  top: 0;
  z-index: 100;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 20px;
  min-height: 72px;
}
header img {
  height: 48px;
  margin-right: 16px;
  border-radius: 0;
}
.main-nav {
  display: flex;
  flex-direction: row;
  gap: 24px;
  align-items: center;
}
.main-nav a {
  color: var(--secondary);
  font-family: var(--font-display);
  font-size: 1rem;
  padding: 8px 0;
  border-bottom: 2px solid transparent;
  transition: border-color var(--transition), color var(--transition);
  position: relative;
}
.main-nav a:hover, .main-nav a:focus {
  color: var(--accent);
  border-bottom: 2px solid var(--accent);
}
.cta.primary {
  background: var(--accent);
  color: var(--primary);
  font-family: var(--font-display);
  font-weight: 700;
  padding: 10px 28px;
  border-radius: var(--border-radius);
  box-shadow: 0 2px 8px var(--retro-shadow);
  border: none;
  margin-left: 24px;
  font-size: 1.1rem;
  letter-spacing: 0.04em;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition);
  cursor: pointer;
  text-shadow: none;
}
.cta.primary:hover, .cta.primary:focus {
  background: var(--accent-dark);
  color: var(--secondary);
  box-shadow: 0 4px 16px var(--retro-shadow);
}
.cta.secondary {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
  font-family: var(--font-display);
  font-weight: 700;
  padding: 10px 28px;
  border-radius: var(--border-radius);
  margin-top: 16px;
  font-size: 1.1rem;
  letter-spacing: 0.04em;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
  cursor: pointer;
}
.cta.secondary:hover, .cta.secondary:focus {
  background: var(--primary);
  color: var(--secondary);
  border-color: var(--accent);
}

/* ========== MOBILE NAVIGATION ========== */
.mobile-menu-toggle {
  display: none;
  background: var(--accent);
  color: var(--primary);
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 2rem;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin-left: 16px;
  box-shadow: 0 2px 8px var(--retro-shadow);
  transition: background var(--transition), color var(--transition);
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: var(--accent-dark);
  color: var(--secondary);
}
.mobile-menu {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: var(--primary);
  color: var(--secondary);
  z-index: 9999;
  transform: translateX(-100%);
  transition: transform 0.4s cubic-bezier(.4,0,.2,1);
  opacity: 0;
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  background: transparent;
  color: var(--accent);
  border: none;
  font-size: 2.2rem;
  align-self: flex-end;
  margin: 24px 24px 0 0;
  cursor: pointer;
  transition: color var(--transition);
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: var(--accent-dark);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 28px;
  width: 100%;
  align-items: flex-start;
  margin-top: 40px;
  padding-left: 40px;
}
.mobile-nav a {
  color: var(--secondary);
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 8px 0;
  border-bottom: 2px solid transparent;
  transition: border-color var(--transition), color var(--transition);
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: var(--accent);
  border-bottom: 2px solid var(--accent);
}

/* ========== HERO SECTION ========== */
.hero-section {
  background: linear-gradient(120deg, var(--retro-cream) 70%, var(--accent) 100%);
  padding: 60px 0 40px 0;
  margin-bottom: 60px;
  border-radius: 0 0 var(--border-radius-lg) var(--border-radius-lg);
  box-shadow: 0 8px 32px var(--retro-shadow);
}
.hero-section .content-wrapper {
  align-items: flex-start;
  gap: 20px;
}
.hero-section h1 {
  font-size: 2.4rem;
  color: var(--primary);
  text-shadow: 2px 2px 0 var(--accent), 0 2px 16px var(--retro-shadow);
}
.hero-section p {
  font-size: 1.2rem;
  color: var(--retro-brown);
  margin-bottom: 24px;
}

/* ========== FEATURES & CARDS ========== */
.features-section, .courses-section, .about-section, .gallery-section, .blog-list-section, .faq-section, .contact-section, .map-section, .confirmation-section, .legal-section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--secondary-bg);
  border-radius: var(--border-radius-lg);
  box-shadow: 0 4px 24px var(--retro-shadow);
}
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 24px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: var(--retro-cream);
  border-radius: var(--border-radius);
  box-shadow: 0 2px 8px var(--retro-shadow);
  padding: 24px 20px;
  min-width: 220px;
  flex: 1 1 260px;
  margin-bottom: 20px;
  border: 2px solid var(--accent);
  position: relative;
  transition: box-shadow var(--transition), border-color var(--transition), transform var(--transition);
}
.feature-item:hover, .feature-item:focus-within {
  box-shadow: 0 6px 24px var(--retro-shadow);
  border-color: var(--primary);
  transform: translateY(-4px) scale(1.03);
}
.feature-item h3 {
  color: var(--retro-red);
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin-bottom: 0.3em;
  text-shadow: 1px 1px 0 var(--accent);
}
.feature-item p {
  color: var(--retro-brown);
  font-size: 1rem;
}

/* ========== TESTIMONIALS ========== */
.testimonials-section {
  background: var(--retro-cream);
  border: 2px dashed var(--accent);
  box-shadow: 0 4px 24px var(--retro-shadow);
}
.testimonials-section h2 {
  color: var(--retro-green);
  text-shadow: 1px 1px 0 var(--accent);
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: var(--secondary);
  border-radius: var(--border-radius);
  box-shadow: 0 2px 8px var(--retro-shadow);
  margin-bottom: 20px;
  border-left: 8px solid var(--retro-blue);
  position: relative;
  min-width: 0;
  transition: box-shadow var(--transition), border-color var(--transition);
}
.testimonial-card:hover, .testimonial-card:focus-within {
  box-shadow: 0 6px 24px var(--retro-shadow);
  border-left: 8px solid var(--accent);
}
.testimonial-card p {
  color: var(--text-dark);
  font-size: 1.1rem;
  font-family: var(--font-body);
  margin: 0;
}
.testimonial-card span {
  color: var(--retro-brown);
  font-size: 0.98rem;
  font-family: var(--font-display);
  font-weight: 700;
  margin-left: auto;
}

/* ========== CTA SECTION ========== */
.cta-section {
  background: linear-gradient(90deg, var(--accent) 60%, var(--retro-cream) 100%);
  border-radius: var(--border-radius-lg);
  box-shadow: 0 4px 24px var(--retro-shadow);
  margin-bottom: 60px;
  padding: 40px 20px;
}
.cta-section h2 {
  color: var(--primary);
  text-shadow: 1px 1px 0 var(--accent);
}

/* ========== FOOTER ========== */
footer {
  background: var(--primary-dark);
  color: var(--secondary);
  padding: 40px 0 20px 0;
  border-top: 8px solid var(--accent);
  font-size: 0.98rem;
}
footer .container {
  flex-direction: column;
  gap: 24px;
}
.footer-nav {
  display: flex;
  flex-direction: row;
  gap: 24px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.footer-nav a {
  color: var(--accent);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  transition: color var(--transition);
}
.footer-nav a:hover, .footer-nav a:focus {
  color: var(--secondary);
}
.footer-contact {
  color: var(--secondary);
  font-size: 0.98rem;
  margin-bottom: 8px;
}
footer small {
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.03em;
}

/* ========== ABOUT PAGE: TEXT-IMAGE SECTION ========== */
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
  margin-top: 24px;
}
.text-image-section img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 2px 8px var(--retro-shadow);
}
.text-image-section p {
  flex: 1 1 200px;
  color: var(--retro-brown);
  font-size: 1.05rem;
}

/* ========== FAQ PAGE ========== */
.faq-section dl {
  margin: 0;
  padding: 0;
}
.faq-section dt {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--retro-blue);
  margin-top: 20px;
  margin-bottom: 6px;
  font-size: 1.08rem;
}
.faq-section dd {
  margin-left: 0;
  margin-bottom: 12px;
  color: var(--retro-brown);
  font-size: 1rem;
}

/* ========== BLOG PAGE ========== */
.blog-list-section article {
  background: var(--retro-cream);
  border-radius: var(--border-radius);
  box-shadow: 0 2px 8px var(--retro-shadow);
  padding: 24px 20px;
  margin-bottom: 20px;
  border-left: 6px solid var(--retro-green);
  transition: box-shadow var(--transition), border-color var(--transition);
}
.blog-list-section article:hover, .blog-list-section article:focus-within {
  box-shadow: 0 6px 24px var(--retro-shadow);
  border-left: 6px solid var(--accent);
}
.blog-list-section h2 {
  color: var(--retro-red);
  font-size: 1.2rem;
  margin-bottom: 0.3em;
  text-shadow: 1px 1px 0 var(--accent);
}

/* ========== CONTACT PAGE ========== */
.contact-info {
  background: var(--retro-cream);
  border-radius: var(--border-radius);
  box-shadow: 0 2px 8px var(--retro-shadow);
  padding: 24px 20px;
  margin-bottom: 20px;
  border-left: 6px solid var(--retro-blue);
}
.contact-info p {
  margin-bottom: 8px;
  color: var(--retro-brown);
}

/* ========== GALLERY SECTION ========== */
.gallery-section ul {
  padding-left: 20px;
  margin-bottom: 0;
}
.gallery-section li {
  margin-bottom: 8px;
  color: var(--retro-brown);
  font-size: 1rem;
}

/* ========== LEGAL SECTIONS ========== */
.legal-section h2 {
  color: var(--retro-blue);
  font-size: 1.1rem;
  margin-top: 1.2em;
  margin-bottom: 0.4em;
}
.legal-section p {
  color: var(--retro-brown);
  font-size: 1rem;
}

/* ========== CONFIRMATION SECTION ========== */
.confirmation-section {
  background: var(--retro-green);
  color: var(--secondary);
  border-radius: var(--border-radius-lg);
  box-shadow: 0 4px 24px var(--retro-shadow);
  margin-bottom: 60px;
  padding: 40px 20px;
}
.confirmation-section h1, .confirmation-section p {
  color: var(--secondary);
  text-shadow: 1px 1px 0 var(--accent);
}

/* ========== FLEXBOX SPACING & ALIGNMENT ========== */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: var(--retro-cream);
  border-radius: var(--border-radius);
  box-shadow: 0 2px 8px var(--retro-shadow);
  padding: 24px 20px;
  min-width: 220px;
}
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* ========== COOKIE CONSENT BANNER ========== */
.cookie-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  background: var(--retro-cream);
  color: var(--text-main);
  box-shadow: 0 -2px 16px var(--retro-shadow);
  z-index: 99999;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 20px;
  font-size: 1rem;
  border-top: 4px solid var(--accent);
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.4s, transform 0.4s;
}
.cookie-banner.hide {
  opacity: 0;
  transform: translateY(100%);
  pointer-events: none;
}
.cookie-banner .cookie-actions {
  display: flex;
  flex-direction: row;
  gap: 16px;
}
.cookie-banner button {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  border-radius: var(--border-radius-sm);
  border: none;
  padding: 8px 20px;
  margin: 0;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition);
  box-shadow: 0 2px 8px var(--retro-shadow);
}
.cookie-banner .accept {
  background: var(--accent);
  color: var(--primary);
}
.cookie-banner .accept:hover, .cookie-banner .accept:focus {
  background: var(--accent-dark);
  color: var(--secondary);
}
.cookie-banner .reject {
  background: var(--retro-red);
  color: var(--secondary);
}
.cookie-banner .reject:hover, .cookie-banner .reject:focus {
  background: #b03a3a;
}
.cookie-banner .settings {
  background: var(--secondary);
  color: var(--primary);
  border: 2px solid var(--primary);
}
.cookie-banner .settings:hover, .cookie-banner .settings:focus {
  background: var(--primary);
  color: var(--secondary);
}

/* ========== COOKIE MODAL ========== */
.cookie-modal-overlay {
  position: fixed;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(42, 38, 32, 0.55);
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s;
}
.cookie-modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal {
  background: var(--secondary-bg);
  color: var(--text-main);
  border-radius: var(--border-radius-lg);
  box-shadow: 0 8px 32px var(--retro-shadow);
  padding: 40px 28px 32px 28px;
  min-width: 320px;
  max-width: 96vw;
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: relative;
  animation: cookieModalIn 0.5s cubic-bezier(.4,0,.2,1);
}
@keyframes cookieModalIn {
  from { transform: translateY(40px) scale(0.95); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}
.cookie-modal h2 {
  color: var(--primary);
  font-size: 1.3rem;
  margin-bottom: 0.5em;
}
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
}
.cookie-modal .cookie-category label {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--retro-blue);
  font-size: 1rem;
}
.cookie-modal .cookie-category input[type="checkbox"] {
  accent-color: var(--accent);
  width: 20px;
  height: 20px;
}
.cookie-modal .cookie-category .always-on {
  color: var(--retro-green);
  font-size: 0.98rem;
  font-weight: 700;
  margin-left: 8px;
}
.cookie-modal .cookie-actions {
  display: flex;
  flex-direction: row;
  gap: 16px;
  margin-top: 16px;
}
.cookie-modal .close-modal {
  position: absolute;
  top: 18px;
  right: 18px;
  background: transparent;
  border: none;
  color: var(--accent);
  font-size: 1.6rem;
  cursor: pointer;
  transition: color var(--transition);
}
.cookie-modal .close-modal:hover, .cookie-modal .close-modal:focus {
  color: var(--retro-red);
}

/* ========== RESPONSIVE DESIGN ========== */
@media (max-width: 1024px) {
  .container {
    max-width: 96vw;
  }
  .main-nav {
    gap: 16px;
  }
  .footer-nav {
    gap: 12px;
  }
}
@media (max-width: 900px) {
  .feature-grid {
    gap: 16px;
  }
  .feature-item {
    min-width: 180px;
    padding: 18px 12px;
  }
}
@media (max-width: 768px) {
  html {
    font-size: 15px;
  }
  header .container {
    flex-direction: row;
    padding: 0 10px;
    min-height: 56px;
  }
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
  .cta.primary {
    margin-left: 8px;
    padding: 8px 18px;
    font-size: 1rem;
  }
  .feature-grid {
    flex-direction: column;
    gap: 20px;
  }
  .feature-item {
    min-width: 0;
    width: 100%;
    padding: 16px 10px;
  }
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 16px 10px;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
  .footer-nav {
    flex-direction: column;
    gap: 8px;
  }
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 18px 10px;
    font-size: 0.98rem;
  }
  .cookie-banner .cookie-actions {
    flex-direction: column;
    gap: 10px;
  }
  .cookie-modal {
    padding: 24px 10px 18px 10px;
    min-width: 0;
    max-width: 98vw;
  }
}
@media (max-width: 480px) {
  html {
    font-size: 14px;
  }
  .hero-section {
    padding: 36px 0 24px 0;
  }
  .section, .features-section, .courses-section, .about-section, .gallery-section, .blog-list-section, .faq-section, .contact-section, .map-section, .confirmation-section, .legal-section {
    padding: 18px 4px;
    margin-bottom: 36px;
  }
  .cta-section {
    padding: 18px 4px;
    margin-bottom: 36px;
  }
  .footer-contact {
    font-size: 0.93rem;
  }
}

/* ========== MICRO-INTERACTIONS ========== */
button, .cta, .feature-item, .testimonial-card, .blog-list-section article, .card {
  transition: box-shadow var(--transition), border-color var(--transition), background var(--transition), color var(--transition), transform var(--transition);
}
button:active, .cta:active {
  transform: scale(0.97);
}

/* ========== ACCESSIBILITY ========== */
:focus {
  outline: 2px dashed var(--accent);
  outline-offset: 2px;
}

/* ========== UTILITY CLASSES ========== */
.hide {
  display: none !important;
}

/* ========== END OF CSS ========== */
