/* ---------------------------
   CSS RESET & NORMALIZE
----------------------------- */
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, menu, 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, 
main, 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, main, menu, nav, section {
  display: block;
}
body {
  line-height: 1.6;
  background: #F5F5F7;
  color: #222;
  font-family: 'Yu Gothic', 'Noto Sans JP', Arial, sans-serif;
  font-size: 16px;
}
ol, ul {
  list-style: none;
}
a {
  background: none;
  color: inherit;
  text-decoration: none;
}
img {
  border: none;
  max-width: 100%;
  display: block;
  vertical-align: middle;
}
table {
  border-collapse: collapse;
  border-spacing: 0;
}
button, input, select, textarea {
  font-family: inherit;
}

/* --------------------------------------
   BRAND / VIBRANT ENERGETIC THEME COLORS
----------------------------------------- */
:root {
  --color-primary: #174EA6;
  --color-secondary: #F5F5F7;
  --color-accent: #FFC04C;
  --color-electric-aqua: #36CFFF;
  --color-magenta: #DF267E;
  --color-violet: #7B2FF2;
  --color-dark: #111;
  --color-white: #fff;
}

/* Used for vibrant animations */
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@keyframes vibrate {
  0% { transform: translateX(0); }
  20% { transform: translateX(-1px); }
  40% { transform: translateX(2px); }
  60% { transform: translateX(-2px); }
  80% { transform: translateX(1px); }
  100% { transform: translateX(0); }
}

/* --------------------------------------
    TYPOGRAPHY
----------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Noto Sans JP', 'Yu Gothic', Arial, sans-serif;
  font-weight: bold;
  color: var(--color-primary);
  letter-spacing: 0.02em;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 24px;
  line-height: 1.18;
}
h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  position: relative;
}
h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}
h4, h5, h6 {
  font-size: 1rem;
  margin-bottom: 8px;
}
p, li, address {
  font-family: 'Yu Gothic', 'Noto Sans JP', Arial, sans-serif;
  font-size: 1rem;
  margin-bottom: 12px;
}
b, strong {
  font-weight: bold;
  color: var(--color-dark);
}

.text-section ul, .text-section ol {
  padding-left: 24px;
  margin-bottom: 16px;
}
.text-section ul li {
  position: relative;
  padding-left: 1em;
  margin-bottom: 8px;
}
.text-section ul li::before {
  content: '';
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-accent);
  vertical-align: middle;
  margin-right: 8px;
  margin-left: -16px;
}
.text-section ol {
  list-style: decimal inside;
}
.text-section ol li {
  margin-bottom: 8px;
}

blockquote {
  font-size: 1.1rem;
  font-style: italic;
  color: var(--color-primary);
  border-left: 4px solid var(--color-electric-aqua);
  padding-left: 16px;
  margin-bottom: 8px;
}

/* --------------------------------------
   LAYOUT CONTAINERS
----------------------------------------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  flex-direction: column;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.text-section {
  background: var(--color-secondary);
  border-radius: 18px;
  padding: 40px 24px;
  box-shadow: 0 2px 16px rgba(55,150,255,0.04);
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* FLEXBOX PATTERNS */
.card-container, .features-grid, .case-studies-grid, .news-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 20px;
}

.card {
  margin-bottom: 20px;
  position: relative;
  background: var(--color-white);
  border-radius: 18px;
  box-shadow: 0 2px 12px 0 rgba(23, 78, 166, 0.09);
  transition: box-shadow 0.23s cubic-bezier(.4,0,.2,1), transform 0.2s;
  display: flex;
  flex-direction: column;
  min-width: 220px;
}
.card:hover {
  box-shadow: 0 6px 24px 0 rgba(23, 78, 166, 0.17);
  transform: translateY(-6px) scale(1.03);
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  padding: 24px;
}

.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;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  background: var(--color-secondary);
  border-left: 6px solid var(--color-accent);
  padding: 20px 28px;
  border-radius: 16px;
  margin-bottom: 24px;
  box-shadow: 0 2px 12px 0 rgba(23, 78, 166, 0.10);
  transition: box-shadow 0.18s cubic-bezier(.4,0,.2,1);
}
.testimonial-card:hover {
  box-shadow: 0 6px 28px 0 rgba(253,176,65,0.26);
}
.testimonial-card blockquote {
  color: var(--color-primary);
}
.testimonial-meta {
  font-size: 0.965rem;
  color: var(--color-dark);
  font-weight: 500;
}
.testimonial-card .impact {
  color: var(--color-magenta);
  font-size: 0.99rem;
  margin-top: 4px;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: var(--color-white);
  border-radius: 16px;
  box-shadow: 0 1px 8px 0 rgba(123,47,242,0.10), 0 1.5px 1.5px 0 rgba(31,200,255,0.01);
  padding: 32px 24px;
  min-width: 230px;
  flex: 1 1 280px;
  position: relative;
  transition: box-shadow 0.2s, transform 0.2s;
}
.feature-item img {
  width: 44px;
  height: 44px;
}
.feature-item h3 {
  color: var(--color-magenta);
  font-size: 1.25rem;
}
.feature-item:hover {
  box-shadow: 0 8px 32px 0 rgba(123,47,242,0.18);
  transform: translateY(-5px) scale(1.04);
  z-index: 2;
}

.case-item {
  background: var(--color-white);
  border-radius: 16px;
  box-shadow: 0 2px 14px 0 rgba(54, 207, 255, 0.11);
  padding: 28px 22px;
  margin-bottom: 20px;
  flex: 1 0 270px;
  transition: box-shadow 0.21s, transform 0.18s;
}
.case-item:hover {
  box-shadow: 0 8px 22px 0 rgba(23, 78, 166, 0.17);
  transform: scale(1.03);
}

.news-item {
  background: var(--color-white);
  border-radius: 16px;
  padding: 24px 20px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px 0 rgba(36, 207, 255, 0.08);
  flex: 1 1 300px;
  transition: box-shadow 0.17s, transform 0.17s;
}
.news-item:hover {
  box-shadow: 0 7px 18px 0 rgba(36, 207, 255, 0.18);
  transform: translateY(-5px);
}

.announcement-highlight {
  background: var(--color-electric-aqua);
  border-radius: 18px;
  color: var(--color-dark);
  padding: 28px 18px;
  margin-bottom: 20px;
  box-shadow: 0 2px 18px 0 rgba(54, 207, 255, 0.12);
}

.result-metrics {
  background: var(--color-violet);
  color: var(--color-white);
  border-radius: 16px;
  padding: 24px;
  margin-top: 12px;
  box-shadow: 0 2px 18px 0 rgba(123,47,242,0.15);
}
.result-metrics li {
  color: var(--color-accent);
  font-weight: bold;
}

/* -------------------------------------
   HEADER / NAVIGATION & CTAS (BUTTONS)
-------------------------------------- */
header {
  background: var(--color-white);
  box-shadow: 0 2px 8px 0 rgba(23,78,166,0.04);
  position: sticky;
  top: 0;
  z-index: 90;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 74px;
}
header img {
  height: 40px;
  margin-right: 24px;
}
header nav {
  display: flex;
  gap: 18px;
  align-items: center;
}
header nav a {
  font-family: 'Noto Sans JP', 'Yu Gothic', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--color-primary);
  padding: 8px 16px;
  border-radius: 8px;
  transition: background 0.17s, color 0.17s, box-shadow 0.17s;
}
header nav a:hover,
header nav a:focus {
  background: var(--color-electric-aqua);
  color: var(--color-magenta);
  box-shadow: 0 1px 8px 0 rgba(54,207,255,0.19);
}

.cta-btn {
  display: inline-block;
  font-family: 'Noto Sans JP', 'Yu Gothic', Arial, sans-serif;
  font-weight: bold;
  font-size: 1.07rem;
  background: var(--color-accent);
  color: var(--color-dark);
  border-radius: 18px;
  padding: 15px 32px;
  box-shadow: 0 2px 10px 0 rgba(255,192,76,0.14);
  border: none;
  cursor: pointer;
  letter-spacing: 0.02em;
  margin-left: 16px;
  transition: background 0.19s, box-shadow 0.17s, transform 0.19s;
  position: relative;
  text-align: center;
}
.cta-btn:hover, .cta-btn:focus {
  background: var(--color-magenta);
  color: var(--color-white);
  box-shadow: 0 4px 22px 0 rgba(223,38,126,0.23);
  animation: bounce 0.8s 1;
}

/* -----------------------
   MOBILE BURGER MENU
------------------------- */
.mobile-menu-toggle {
  position: fixed;
  top: 18px;
  right: 22px;
  width: 48px;
  height: 48px;
  background: var(--color-magenta);
  border: none;
  color: var(--color-white);
  z-index: 110;
  display: none;
  border-radius: 50%;
  font-size: 2rem;
  align-items: center;
  justify-content: center;
  transition: background 0.23s, box-shadow 0.2s, transform 0.15s;
  box-shadow: 0 2px 10px 0 rgba(223,38,126, 0.22);
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: var(--color-electric-aqua);
  color: var(--color-magenta);
  outline: none;
  box-shadow: 0 4px 16px 0 rgba(54,207,255,0.19);
  transform: scale(1.08);
}
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: var(--color-white);
  box-shadow: 0 0 100vw 0 rgba(54,207,255,0.09);
  z-index: 120;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  transform: translateX(-100vw);
  transition: transform 0.34s cubic-bezier(.7,0,.3,1);
  padding: 34px 26px 18px 26px;
  opacity: 0;
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  background: transparent;
  border: none;
  color: var(--color-magenta);
  font-size: 2.2rem;
  align-self: flex-end;
  margin-bottom: 18px;
  cursor: pointer;
  transition: color 0.2s, transform 0.15s;
  z-index: 121;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: var(--color-electric-aqua);
  animation: vibrate 0.3s 1;
  transform: rotate(8deg);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}
.mobile-nav a {
  display: block;
  padding: 18px 0;
  color: var(--color-primary);
  font-family: 'Noto Sans JP', 'Yu Gothic', Arial,sans-serif;
  font-weight: bold;
  font-size: 1.2rem;
  letter-spacing: 0.01em;
  border-bottom: 1px solid var(--color-secondary);
  transition: background 0.17s, color 0.17s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: var(--color-magenta);
  background: var(--color-electric-aqua);
  border-radius: 8px;
}

/* Hide desktop nav/show burger on mobile */
@media (max-width: 980px) {
  header nav {
    display: none;
  }
  .cta-btn {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}
@media (min-width: 981px) {
  .mobile-menu {
    display: none !important;
  }
}

/* -------------------------------------
   FOOTER
-------------------------------------- */
footer {
  background: var(--color-white);
  box-shadow: 0 -2px 8px 0 rgba(23,78,166,0.04);
  padding: 36px 0 22px 0;
  margin-top: 60px;
}
footer .container {
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
  justify-content: flex-start;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 10px;
}
footer nav a {
  color: var(--color-primary);
  font-weight: 600;
  transition: color 0.18s;
  font-size: 0.98rem;
}
footer nav a:hover { color: var(--color-magenta); }

footer address {
  font-size: 0.95rem;
  color: #575757;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}
footer address img {
  width: 17px;
  height: 17px;
  margin-right: 4px;
  vertical-align: middle;
}
footer small {
  color: #989fab;
  font-size: .90rem;
}

/* -----------------------------
     COOKIE CONSENT BANNER
------------------------------- */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 300;
  width: 100vw;
  background: var(--color-dark);
  color: var(--color-white);
  box-shadow: 0 -2px 20px 0 rgba(23,78,166,0.17);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 24px 20px;
  gap: 24px;
  opacity: 1;
  transition: opacity 0.19s, transform 0.27s cubic-bezier(.7,0,.3,1);
  font-size: 1rem;
}
.cookie-banner.hide {
  opacity: 0;
  pointer-events: none;
  transform: translateY(100px);
}
.cookie-banner-text {
  flex: 3 1 400px;
}
.cookie-banner-actions {
  display: flex;
  flex-direction: row;
  gap: 14px;
}
.cookie-btn {
  padding: 10px 22px;
  border-radius: 14px;
  border: none;
  cursor: pointer;
  font-size: 1.02rem;
  font-family: 'Noto Sans JP', 'Yu Gothic', Arial,sans-serif;
  font-weight: bold;
  box-shadow: 0 1px 8px 0 rgba(255,192,76,0.12);
  transition: background 0.17s, color 0.17s, transform 0.19s;
  outline: none;
}
.cookie-btn.accept {
  background: var(--color-accent);
  color: var(--color-dark);
}
.cookie-btn.accept:hover, .cookie-btn.accept:focus {
  background: var(--color-magenta);
  color: var(--color-white);
  transform: scale(1.07);
}
.cookie-btn.reject {
  background: var(--color-electric-aqua);
  color: var(--color-primary);
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: var(--color-magenta);
  color: var(--color-white);
  transform: scale(1.07);
}
.cookie-btn.settings {
  background: transparent;
  border: 2px solid var(--color-accent);
  color: var(--color-accent);
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  border-color: var(--color-magenta); color: var(--color-magenta);  background: var(--color-white); transform: scale(1.06); }

/* COOKIES SETTINGS MODAL */
.cookie-modal {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(17,17,17,0.40);
  z-index: 330;
  display: flex;
  align-items: center;
  justify-content: center;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.25s;
}
.cookie-modal.open {
  visibility: visible;
  opacity: 1;
}
.cookie-modal-content {
  background: var(--color-white);
  color: var(--color-dark);
  border-radius: 18px;
  min-width: 340px;
  max-width: 90vw;
  padding: 32px 22px;
  box-shadow: 0 8px 40px 0 rgba(23,78,166,0.19);
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: relative;
}
.cookie-modal-content h3 {
  color: var(--color-primary);
  margin-bottom: 10px;
  font-size: 1.25rem;
}
.cookie-category {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 18px;
  margin-bottom: 13px;
}
.cookie-category input[type=checkbox], .cookie-category input[type=radio] {
  width: 20px;
  height: 20px;
}
.cookie-category label {
  font-size: 1rem;
}
.cookie-modal-actions {
  display: flex;
  flex-direction: row;
  gap: 14px;
  justify-content: flex-end;
}
.cookie-modal-close {
  position: absolute;
  top: 18px; right: 18px;
  background: transparent;
  border: none;
  font-size: 1.7rem;
  color: var(--color-magenta);
  cursor: pointer;
  transition: color 0.2s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  color: var(--color-electric-aqua);
}

/* --------------------------------------
   ADAPTIVE & RESPONSIVE DESIGN
----------------------------------------- */
@media (max-width: 980px) {
  .container {
    max-width: 98vw;
    padding: 0 6vw;
  }
  .header .container, .footer .container {
    flex-direction: column;
    align-items: flex-start;
  }
}
@media (max-width: 900px) {
  .features-grid, .case-studies-grid, .news-list {
    flex-wrap: wrap;
    flex-direction: column;
    gap: 20px;
  }
}
@media (max-width: 768px) {
  h1 { font-size: 1.95rem; }
  h2 { font-size: 1.35rem; }
  .section {
    padding: 22px 4vw;
    margin-bottom: 36px;
  }
  .card-container, .features-grid, .case-studies-grid, .news-list {
    gap: 14px;
  }
  .feature-item, .card, .case-item, .news-item {
    min-width: unset;
    padding: 18px 10px;
  }
  .testimonial-card {
    padding: 16px 10px;
  }
  .content-wrapper, .text-section {
    padding: 20px 7vw;
  }
  .content-grid {
    flex-direction: column;
    gap: 14px;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
  .footer .container {
    flex-direction: column;
    gap: 10px;
  }
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    font-size: 0.99rem;
    padding: 18px 10px;
  }
}
@media (max-width: 480px) {
  h1 { font-size: 1.25rem; }
  h2 { font-size: 1.1rem; }
  .cta-btn,
  .cookie-btn { padding: 10px 10px; font-size: .97rem; }
}

/* --------------------------------------
   MICRO-INTERACTIONS & EXTRAS
----------------------------------------- */
a, .cta-btn, .cookie-btn, .mobile-menu-toggle, .mobile-menu-close, .cookie-modal-close {
  transition: background 0.2s, color 0.2s, box-shadow 0.2s, transform 0.2s;
}
::-webkit-input-placeholder{ color: #aaa; }
::-moz-placeholder{ color: #aaa; }
:-ms-input-placeholder{ color: #aaa; }
::placeholder{ color: #aaa; }

/* --------------------------------------
   FORM ELEMENTS also style
----------------------------------------- */
input, textarea, select {
  border-radius: 8px;
  border: 1.5px solid #dde0ec;
  background: var(--color-secondary);
  padding: 10px 12px;
  font-size: 1rem;
  font-family: inherit;
  margin-bottom: 16px;
  width: 100%;
  box-sizing: border-box;
  transition: border-color 0.2s;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--color-primary);
  outline: none;
}

/* -------------------------------------
   SCROLLBAR & SELECTION STYLES
--------------------------------------- */
::-webkit-scrollbar { width: 9px; background: var(--color-secondary); }
::-webkit-scrollbar-thumb { background: var(--color-violet); border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: var(--color-magenta); }
::selection { background: var(--color-accent); color: var(--color-dark); }

/* ---------------------------------------
   ACCESSIBILITY & HIGHLIGHT STATES
----------------------------------------- */
:focus {
  outline: 2px solid var(--color-electric-aqua);
  outline-offset: 2px;
}

/* Hide visually but remain accessible */
.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0;
  margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0;
}
