/* =============================================================
   CSS RESET & BASE TYPOGRAPHY (MOBILE-FIRST, FLEXBOX-ONLY)
============================================================= */
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;
}
html {
  font-size: 16px;
  scroll-behavior: smooth;
  font-family: 'Noto Sans JP', 'Yu Gothic', 'メイリオ', Meiryo, sans-serif;
}
body {
  background: #fff;
  color: #263048;
  font-family: 'Yu Gothic', 'Noto Sans JP', sans-serif;
  min-height: 100vh;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
article, aside, details, figcaption, figure, footer, header, hgroup, main, menu, nav, section { display: block; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; transition: color 0.2s; }
img { max-width: 100%; display: block; }

/* =============================================================
    BRAND COLORS
============================================================= */
:root {
  --primary: #263048;
  --secondary: #DCC7A6;
  --accent: #EDEDED;
  --creative1: #FFD547;
  --creative2: #8DC8E8;
  --creative3: #F9506A;
  --creative4: #7ED46E;
  --creative5: #7457D7;
  --black: #181A1F;
  --white: #fff;
}

/* =============================================================
    BASE LAYOUT UTILS
============================================================= */
.container {
  max-width: 1080px;
  width: 100%;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 0px; /* Used only as mobile containers are column */
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--accent);
  border-radius: 20px;
  box-shadow: 0 2px 16px 0 rgba(38, 48, 72, 0.10);
}

/* =============================================================
    TYPOGRAPHY (Creative Artistic)
============================================================= */
h1 {
  font-family: 'Noto Sans JP', 'Yu Gothic', sans-serif;
  font-weight: 700;
  font-size: 2.25rem;
  color: var(--primary);
  line-height: 1.3;
  letter-spacing: 0.04em;
  margin-bottom: 16px;
  text-shadow: 1px 2px 6px rgba(205,195,155, 0.08);
}
h2 {
  font-family: 'Noto Sans JP', 'Yu Gothic', sans-serif;
  font-weight: 700;
  font-size: 1.55rem;
  line-height: 1.4;
  color: var(--creative3);
  margin-bottom: 20px;
  position: relative;
}
h2:after {
  content: "";
  display: inline-block;
  vertical-align: middle;
  margin-left: 10px;
  width: 60px;
  height: 6px;
  border-radius: 3px; 
  background: var(--secondary);
  opacity: 0.5;
}
h3 {
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--creative5);
  margin-bottom: 12px;
  letter-spacing: 0.03em;
}
.lead {
  font-size: 1.13rem;
  color: var(--primary);
  margin-bottom: 22px;
}
p, li, span, small {
  font-family: 'Yu Gothic', 'Noto Sans JP', sans-serif;
}
p {
  margin-bottom: 1em;
  font-size: 1rem;
}
strong {
  color: var(--creative5);
  font-weight: bold;
}
small {
  font-size: 0.85rem;
}

/* Artistic header highlight */
h1, h2 {
  position: relative;
  z-index: 2;
}
h1::before {
  content: '';
  display: block;
  position: absolute;
  left: -10px; top: -16px;
  width: 66px; height: 14px;
  background: var(--creative2);
  border-radius: 10px 24px 12px 20px;
  z-index: -1;
  opacity: 0.17;
}

/* =============================================================
    HEADER & NAVIGATION
============================================================= */
header {
  background: var(--primary);
  color: var(--white);
  padding: 0;
  position: relative;
  z-index: 20;
  box-shadow: 0 4px 14px 0 rgba(38, 48, 72, 0.08);
}
header .container {
  flex-direction: row;
  align-items: center;
  padding: 18px 20px;
  gap: 18px;
}
.logo img {
  height: 40px;
  width: auto;
  display: block;
}
nav.main-nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 24px;
  margin-left: 30px;
}
nav.main-nav a {
  color: var(--white);
  font-size: 1rem;
  font-family: 'Noto Sans JP', 'Yu Gothic', sans-serif;
  font-weight: 500;
  letter-spacing: 0.03em;
  padding: 8px 0;
  border-bottom: 2.5px solid transparent;
  position: relative;
  transition: color 0.18s, border-bottom 0.2s;
}
nav.main-nav a:hover, nav.main-nav a:focus {
  color: var(--creative1);
  border-bottom: 2.5px solid var(--creative1);
}
.cta-primary {
  margin-left: auto;
  background: var(--creative3);
  color: var(--white);
  padding: 10px 26px;
  font-size: 1.07rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  border-radius: 36px;
  box-shadow: 0 2px 8px 0 rgba(249,80,106,0.10);
  outline: none;
  border: none;
  transition: background 0.2s, color 0.19s, box-shadow 0.25s;
  cursor: pointer;
  position: relative;
  z-index: 2;
}
.cta-primary:hover, .cta-primary:focus {
  background: var(--creative5);
  color: var(--secondary);
  box-shadow: 0 3px 18px 0 rgba(116,87,215,0.13);
}

/* Hide mobile toggle on desktop initially */
.mobile-menu-toggle {
  display: none;
}
.mobile-menu {
  display: none;
}

/* ========== MOBILE MENU ========== */
@media (max-width: 1023px) {
  header .container {
    flex-direction: row;
    align-items: center;
    gap: 8px;
  }
  nav.main-nav {
    display: none;
  }
  .cta-primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
    background: none;
    color: var(--creative3);
    font-size: 2.2rem;
    border: none;
    margin-left: auto;
    cursor: pointer;
    padding: 0 12px;
    transition: color 0.22s;
    z-index: 9999;
  }
  .mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
    color: var(--creative1);
  }
  .mobile-menu {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    position: fixed;
    top: 0; left: 0;
    width: 100vw;
    height: 100vh;
    background: var(--primary);
    z-index: 20000;
    transform: translateX(-100%);
    transition: transform 0.37s cubic-bezier(.56, .11, .31, 1);
    box-shadow: 4px 0 24px rgba(38,48,72,0.15);
  }
  .mobile-menu.open {
    transform: translateX(0);
    animation: slideIn 0.38s cubic-bezier(.6,.2,.2,1) both;
  }
  @keyframes slideIn {
    from {transform: translateX(-100%);} to {transform: translateX(0);}
  }
  .mobile-menu-close {
    background: none;
    color: var(--creative1);
    font-size: 2.2rem;
    border: none;
    align-self: flex-end;
    margin: 20px 22px 20px 0;
    cursor: pointer;
    z-index: 11000;
    transition: color 0.2s;
  }
  .mobile-menu-close:hover, .mobile-menu-close:focus {
    color: var(--creative3);
  }
  .mobile-nav {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
    margin-top: 45px;
    margin-left: 38px;
  }
  .mobile-nav a {
    color: var(--white);
    font-size: 1.15rem;
    font-family: 'Noto Sans JP', 'Yu Gothic', sans-serif;
    font-weight: 600;
    padding: 8px 0;
    border-left: 4px solid transparent;
    transition: color 0.17s, border-left 0.17s;
  }
  .mobile-nav a:hover, .mobile-nav a:focus {
    color: var(--creative1);
    border-left: 4px solid var(--creative1);
    padding-left: 6px;
  }
}

/* ========== HERO SECTION ========== */
.hero {
  background: linear-gradient(120deg, var(--creative2) 10%, var(--accent) 72% );
  position: relative;
  z-index: 1;
}
.hero .container {
  min-height: 320px;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  gap: 0px;
}
.hero .content-wrapper {
  align-items: center;
  justify-content: center;
  padding: 34px 0 22px 0;
  text-align: center;
}
.hero h1 {
  font-size: 2.1rem;
  color: var(--primary);
  text-shadow: 0 8px 28px rgba(38, 48, 72, 0.09);
  margin-bottom: 18px;
  background: none;
}
.hero .lead {
  color: var(--primary);
}
.hero .cta-primary {
  margin-top: 20px;
  margin-left: 0;
}

@media (min-width: 769px) {
  .hero .container { min-height: 390px; }
  .hero .content-wrapper { padding: 60px 0 25px 0; }
  .hero h1 { font-size: 2.65rem; }
}

/* ========== FEATURES (Creative-Artistic Cards) ========== */
.features {
  background: var(--accent);
}
.features .feature-grid, .features ul, .features ol {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 20px;
}
.features .feature-grid > div, .features ul > li, .features ol > li {
  flex: 1 1 220px;
  background: var(--white);
  border-radius: 18px;
  box-shadow: 0 2px 13px 0 rgba(38,48,72, 0.13);
  padding: 26px 24px 20px 24px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
  min-width: 170px;
  max-width: 330px;
  border-left: 5px solid var(--creative1);
  transition: box-shadow 0.22s, border-left 0.19s;
}
.features .feature-grid > div:hover, .features .feature-grid > div:focus {
  box-shadow: 0 6px 26px 0 rgba(249, 80, 106, 0.13);
  border-left-color: var(--creative3);
}
.features .feature-grid img, .features ul img, .features ol img {
  width: 38px;
  height: 38px;
  margin-bottom: 12px;
  filter: drop-shadow(0px 2px 8px rgba(140,180,230,0.11));
}
.features h3 {
  font-size: 1.1rem;
  color: var(--creative5);
  margin-bottom: 10px;
}
.features p, .features li {
  font-size: 1rem;
  color: var(--primary);
  margin-bottom: 0;
}

/* ========== SERVICES / AREAS SECTIONS ========== */
.services, .area {
  background: var(--white);
}
.services ul,
.services ol,
.area ul {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 18px;
}
.services ul li,
.services ol li,
.area ul li {
  padding-left: 0.5em;
  border-left: 4px solid var(--creative1);
  background: var(--accent);
  border-radius: 12px;
  padding: 10px 18px;
  margin-bottom: 0;
  color: var(--black);
}
.services ol {
  list-style: decimal inside;
  padding-left: 0;
  counter-reset: step;
}
.services ol li {
  position: relative;
  background: var(--creative2);
  color: var(--black);
  border-left: 4px solid var(--creative3);
}
.services .cta-primary {
  margin-top: 10px;
}

/* ========== TESTIMONIALS (Distinct Cards) ========== */
.testimonials .testimonial-card {
  background: var(--white);
  border-radius: 16px;
  box-shadow: 0 2px 24px 0 rgba(109, 175, 232, 0.13);
  padding: 20px 28px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  border-left: 4px solid var(--creative2);
  transition: background 0.17s, border-color 0.15s;
}
.testimonials .testimonial-card p {
  color: #212340;
  font-size: 1.1rem;
  font-style: italic;
  font-family: 'Noto Sans JP', 'Yu Gothic', sans-serif;
}
.testimonials .testimonial-card span {
  font-size: 1rem;
  font-weight: 600;
  color: var(--creative5);
}
.testimonials .testimonial-card:hover, .testimonials .testimonial-card:focus {
  background: var(--accent);
  border-color: var(--creative3);
}

/* ========== CTA SECTIONS ========== */
.cta {
  background: var(--creative3);
  color: var(--white);
  border-radius: 18px;
  text-align: center;
  box-shadow: 0 2px 14px 0 rgba(249,80,106,0.11);
}
.cta h2 {
  color: var(--white);
  margin-bottom: 12px;
}
.cta p {
  color: var(--secondary);
}
.cta .cta-primary {
  background: var(--white);
  color: var(--creative3);
  margin-top: 18px;
  font-size: 1.15rem;
  font-family: 'Noto Sans JP', 'Yu Gothic', sans-serif;
  box-shadow: 0 3px 18px 0 rgba(255,213,71,0.15);
}
.cta .cta-primary:hover, .cta .cta-primary:focus {
  color: var(--white);
  background: var(--creative5);
}

/* ========== ABOUT / TEAM/ MISSION / CONTACT INFO ========== */
.text-section, .contact_info ul, .contact ul {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 18px;
}
.contact_info ul li, .contact ul li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1rem;
  color: var(--primary);
}
.contact_info ul img, .contact ul img {
  width: 26px;
  height: 26px;
  margin-bottom: 0;
}
.privacy-note {
  background: var(--creative2);
  color: var(--black);
  border-radius: 11px;
  margin-top: 10px;
  padding: 7px 14px;
  font-size: 0.98rem;
}
.privacy-note a { color: var(--creative5); text-decoration: underline; }

/* LEGAL/FAQ/TEXT BLOCKS */
.legal, .faq, .mission {
  background: var(--accent);
  border-radius: 18px;
}
.legal h2, .legal h3, .faq h3, .mission h3 {
  color: var(--creative5);
  margin: 16px 0 6px 0;
  font-size: 1.08rem;
}
.legal ul, .faq ul, .mission ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 8px 0 18px 0;
}
/* Thank You page style */
.thank_you .content-wrapper {
  align-items: center;
  text-align: center;
  padding: 40px 0 30px 0;
}
.thank_you h1 {
  color: var(--creative3);
  font-size: 2rem;
}
.thank_you a.cta-primary {
  margin-top: 28px;
}

/* =============================================================
    CARD & FLEXBOX UTILITIES
============================================================= */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: var(--white);
  border-radius: 16px;
  box-shadow: 0 2px 22px 0 rgba(38,48,72,0.13);
  transition: box-shadow 0.17s;
  padding: 22px 20px;
}
.card:hover, .card:focus {
  box-shadow: 0 7px 28px 0 rgba(249,80,106,0.14);
  z-index: 1;
}
.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;
  background: var(--white);
  box-shadow: 0 2px 16px 0 rgba(38, 48, 72, 0.09);
  border-radius: 16px;
  margin-bottom: 20px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* =============================================================
    FOOTER
============================================================= */
footer {
  background: var(--primary);
  color: var(--secondary);
  padding: 45px 0 22px 0;
  letter-spacing: 0.02em;
}
footer .container {
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
footer .logo img {
  height: 42px;
  width: auto;
  margin-bottom: 10px;
}
footer nav.footer-nav {
  display: flex;
  flex-direction: row;
  gap: 24px;
  margin: 12px 0 0 0;
}
footer nav.footer-nav a {
  color: var(--secondary);
  font-size: 1rem;
  font-weight: 500;
  transition: color 0.18s;
}
footer nav.footer-nav a:hover {
  color: var(--creative1);
  text-decoration: underline;
}
footer .text-section {
  text-align: center;
  color: var(--accent);
  font-size: 0.98rem;
  line-height: 1.6;
}
footer small {
  color: var(--secondary);
  margin-top: 18px;
  font-size: 0.92rem;
}

/* =============================================================
    COOKIE CONSENT BANNER
============================================================= */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 35000;
  background: var(--creative1);
  color: var(--primary);
  padding: 22px 16px 22px 16px;
  box-shadow: 0 -2px 20px 0 rgba(38,48,72,0.13);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  font-size: 1rem;
  transition: transform 0.35s, opacity 0.35s;
}
.cookie-banner button {
  margin: 0 7px;
  border-radius: 18px;
  padding: 8px 20px;
  font-size: 1.04rem;
  font-family: 'Noto Sans JP', 'Yu Gothic', sans-serif;
  font-weight: 600;
  border: none;
  outline: none;
  background: var(--creative3);
  color: var(--white);
  box-shadow: 0 1px 9px 0 rgba(249,80,106,0.10);
  cursor: pointer;
  transition: background 0.18s, color 0.18s;
}
.cookie-banner button.reject {
  background: var(--creative5);
}
.cookie-banner button.settings {
  background: var(--white);
  color: var(--primary);
  border: 2px solid var(--creative3);
}
.cookie-banner button:hover, .cookie-banner button:focus {
  background: var(--creative1);
  color: var(--primary);
}

/* Cookie Modal */
.cookie-modal {
  position: fixed;
  left: 0; right: 0; bottom: 0; top: 0;
  z-index: 40000;
  background: rgba(38,48,72,0.45);
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.25s;
}
@keyframes fadeIn {
  from { opacity: 0; } to { opacity: 1; }
}
.cookie-modal-content {
  background: var(--white);
  border-radius: 18px;
  max-width: 98vw;
  width: 380px;
  padding: 32px 28px 20px 28px;
  box-shadow: 0 8px 36px 0 rgba(116,87,215,0.15);
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
}
.cookie-modal-content h2 {
  font-size: 1.25rem;
  color: var(--creative3);
  margin-bottom: 12px;
  text-align: left;
}
.cookie-modal-content .cookie-category {
  background: var(--accent);
  border-radius: 11px;
  padding: 13px 12px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.cookie-modal-content label {
  font-size: 1rem;
  color: var(--primary);
  flex: 1 1 auto;
}
.cookie-modal-content input[type="checkbox"] {
  accent-color: var(--creative1);
  transform: scale(1.16);
  margin-right: 5px;
}
.cookie-modal-content .cookie-category.essential label {
  color: var(--creative5);
  font-weight: bold;
}
.cookie-modal-content .modal-actions {
  display: flex;
  flex-direction: row;
  gap: 15px;
  justify-content: flex-end;
}
.cookie-modal-content button {
  border-radius: 16px;
  padding: 8px 20px;
  border: none;
  outline: none;
  font-size: 1.02rem;
  font-family: 'Noto Sans JP', 'Yu Gothic', sans-serif;
  font-weight: 600;
  cursor: pointer;
  background: var(--creative3);
  color: var(--white);
  box-shadow: 0 1px 10px 0 rgba(249,80,106,0.08);
  transition: background 0.14s, color 0.12s;
}
.cookie-modal-content button.cancel {
  background: var(--creative5);
}
.cookie-modal-content button:hover, .cookie-modal-content button:focus {
  background: var(--creative1);
  color: var(--primary);
}
.cookie-modal-content .close-modal {
  position: absolute;
  right: 15px;
  top: 13px;
  background: none;
  color: var(--creative3);
  font-size: 2rem;
  border: none;
  cursor: pointer;
  transition: color 0.13s;
}
.cookie-modal-content .close-modal:hover, .cookie-modal-content .close-modal:focus {
  color: var(--creative1);
}

/* ========== MEDIA QUERIES (Breakpoints) ========== */
@media (max-width: 768px) {
  html { font-size: 16px; }
  .container {
    padding: 0 8px;
  }
  .content-wrapper { width: 100%; }
  .section {
    padding: 30px 8px;
    margin-bottom: 34px;
    border-radius: 14px;
  }
  .hero .container { min-height: 220px; }
  .hero .content-wrapper { padding: 28px 0 10px 0; }
  h1 { font-size: 1.45rem; }
  h2 { font-size: 1.09rem; }
  .thank_you h1 { font-size: 1.2rem; padding-top: 16px; }
  .features .feature-grid, .features ul, .features ol {
    flex-direction: column;
    gap: 18px;
  }
  .features .feature-grid > div, .features ul > li, .features ol > li {
    max-width: 100%; min-width: 0;
    padding: 18px 14px 14px 14px;
    border-radius: 10px;
    font-size: 1rem;
  }
  .testimonials .testimonial-card {
    padding: 14px 10px;
    border-radius: 10px;
  }
  .area ul li,
  .services ul li, .services ol li {
    padding: 9px 9px;
    font-size: 1rem;
    min-width: 0;
  }
  footer .container {
    padding: 0 8px;
    gap: 9px;
  }
  footer nav.footer-nav {
    flex-direction: column;
    gap: 13px;
    margin: 10px 0 0 0;
    align-items: center;
  }
  footer .logo img {
    height: 36px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 14px;
  }
}

/* ========== MICRO-INTERACTIONS (Transitions & Effects) ========== */
section, .card, .feature-grid > div, .cta-primary, .testimonial-card, .mobile-menu, .cookie-banner, .cookie-modal-content {
  transition: box-shadow 0.18s, background 0.17s, transform 0.19s;
}
a, button {
  transition: color 0.19s, background 0.19s, border 0.16s;
}

/* ========== MISC UTILITIES ========== */
.hide { display: none !important; }
.flex-row { display: flex; flex-direction: row; }
.flex-col { display: flex; flex-direction: column; }
.align-center { align-items: center; }
.align-flexstart { align-items: flex-start; }
.justify-center { justify-content: center; }
.gap-8 { gap: 8px; }
.gap-16 { gap: 16px; }
.gap-20 { gap: 20px; }
.gap-24 { gap: 24px; }
.rounded-14 { border-radius: 14px; }

/* ========== CUSTOM SCROLLBAR FOR MODALS & MENU ========== */
.mobile-menu, .cookie-modal-content {
  scrollbar-width: thin;
  scrollbar-color: var(--creative1) var(--accent);
}
.mobile-menu::-webkit-scrollbar, .cookie-modal-content::-webkit-scrollbar {
  width: 8px;
}
.mobile-menu::-webkit-scrollbar-thumb, .cookie-modal-content::-webkit-scrollbar-thumb {
  background: var(--creative1);
  border-radius: 8px;
}
.mobile-menu::-webkit-scrollbar-track, .cookie-modal-content::-webkit-scrollbar-track {
  background: var(--accent);
}

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