/* 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,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,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 {
  height: 100%;
  font-size: 16px;
  scroll-behavior: smooth;
}
body {
  min-height: 100vh;
  font-family: 'Roboto', 'Noto Sans JP', sans-serif;
  color: #222;
  background: #F8F7F3;
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
  letter-spacing: 0.02em;
  overflow-x: hidden;
}
img {
  max-width: 100%;
  display: block;
  vertical-align: middle;
}
a {
  color: #14647E;
  text-decoration: none;
  transition: color .3s cubic-bezier(.77,0,.18,1);
}
a:hover, a:focus {
  color: #FF6B59;
}
ul, ol {
  list-style: none;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Noto Sans JP', 'Roboto', sans-serif;
  font-weight: 900;
  margin-bottom: 16px;
  color: #1B2430;
  letter-spacing: .02em;
}
h1 {
  font-size: 2.4rem;
  margin-bottom: 24px;
  line-height: 1.2;
  animation: bounceInDown 1s cubic-bezier(.77,0,.18,1);
}
h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  position: relative;
}
h3 {
  font-size: 1.3rem;
  color: #14647E;
  margin-bottom: 12px;
}
p {
  font-size: 1.1rem;
  color: #323643;
  margin-bottom: 18px;
}
strong {
  color: #14647E;
}
.container {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
}

/* =================
   LAYOUT & SECTION 
   ================= */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

.feature-grid, .service-overview-cards, .service-card-grid, .case_study_card_list, .method-cards, .blog_post_grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.feature-grid > div, .service-overview-cards > div, .service-card-grid > div, .case_study_card_list > div, .method-cards > div, .blog_post_grid > div {
  flex: 1 1 240px;
  min-width: 220px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 3px 16px 0 rgba(60,80,185,.08),0 0 0 1px #ececec;
  padding: 24px 20px 20px 20px;
  margin-bottom: 20px;
  position: relative;
  transition: transform .25s cubic-bezier(.77,0,.18,1), box-shadow .2s;
  will-change: transform, box-shadow;
  cursor: pointer;
}
.feature-grid > div:hover, .service-overview-cards > div:hover, .service-card-grid > div:hover, .case_study_card_list > div:hover, .method-cards > div:hover, .blog_post_grid > div:hover {
  transform: translateY(-6px) scale(1.025) rotate(-1deg);
  box-shadow: 0 6px 32px 0 rgba(60,80,185,.15),0 0 0 1px #FFCF00;
  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: #fffbe7;
  border-radius: 22px;
  box-shadow: 0 2px 14px rgba(227,188,75,0.10);
  margin-bottom: 20px;
}
.testimonial-card p {
  color: #1B2430;
  font-size: 1.05rem;
  margin-bottom: 0;
}
.testimonial-card span {
  color: #14647E;
  font-weight: bold;
  font-size: .98rem;
  margin-left: 6px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* ===============
   HEADER & NAV
   =============== */
header {
  background: #fff;
  border-bottom: 3px solid #FFF9D5;
  padding: 0;
  margin-bottom: 0;
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
}
header img {
  height: 44px;
  margin-right: 18px;
}
.main-nav {
  display: flex;
  flex-direction: row;
  gap: 24px;
  margin-left: 30px;
}
.main-nav a {
  font-size: 1rem;
  font-family: 'Noto Sans JP', 'Roboto', sans-serif;
  font-weight: 700;
  color: #14647E;
  padding: 2px 5px;
  border-radius: 10px;
  background: none;
  transition: background 0.2s, color 0.2s;
}
.main-nav a:hover, .main-nav a.active {
  background: #FFCF00;
  color: #1B2430;
}
.cta-button {
  background: #FF6B59;
  color: #fff;
  padding: 12px 24px;
  font-family: inherit;
  border-radius: 30px;
  margin-left: 32px;
  font-weight: bold;
  font-size: 1.08rem;
  letter-spacing: .08em;
  box-shadow: 0 2px 8px 0 rgba(255,107,89,0.09);
  border: none;
  cursor: pointer;
  text-align: center;
  transition: background .2s, transform .2s;
  outline: none;
  position: relative;
}
.cta-button:hover, .cta-primary:hover {
  background: #FFCF00;
  color: #1B2430;
  transform: scale(1.04) rotate(-1deg);
}

/* ===== MOBILE NAVIGATION ===== */
.mobile-menu-toggle {
  display: none;
  position: fixed;
  top: 22px;
  right: 20px;
  background: #FFCF00;
  color: #1B2430;
  font-size: 2.1rem;
  z-index: 101;
  border: none;
  border-radius: 18px;
  padding: 4px 18px 2px 18px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(227,188,75,0.20);
  transition: box-shadow .2s, background .2s;
}
.mobile-menu-toggle:focus {
  outline: 4px solid #FF6B59;
}
.mobile-menu {
  position: fixed;
  top: 0; right: 0;bottom: 0; left: 0;
  background: rgba(27,36,48,0.93);
  z-index: 9999;
  transform: translateX(100%);
  transition: transform .4s cubic-bezier(.77,0,.18,1);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-end;
  width: 100vw;
  pointer-events: none;
  opacity: 0;
}
.mobile-menu.active {
  transform: none;
  pointer-events: auto;
  opacity: 1;
}
.mobile-menu-close {
  margin: 34px 32px 18px 0;
  font-size: 2.2rem;
  background: none;
  color: #fff;
  border: none;
  cursor: pointer;
  outline: none;
  z-index: 10005;
  transition: color .2s;
}
.mobile-menu-close:hover {
  color: #FFCF00;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-right: 38px;
  margin-top: 32px;
}
.mobile-nav a {
  color: #fff;
  font-size: 1.4rem;
  font-family: 'Noto Sans JP', 'Roboto', sans-serif;
  font-weight: bold;
  padding: 8px 0;
  letter-spacing: .02em;
  border-radius: 10px;
  transition: background .20s, color .20s;
}
.mobile-nav a:hover, .mobile-nav a.active {
  background: #FFCF00;
  color: #1B2430;
  padding-left: 14px;
}

@media (max-width: 1020px) {
  header .container {
    flex-direction: row;
    flex-wrap: wrap;
    padding: 12px 12px;
  }
  .main-nav {
    gap: 14px;
    margin-left: 10px;
  }
}
@media (max-width: 900px) {
  .main-nav {
    display: none;
  }
  .cta-button {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}

/* ================
   HERO/CTA BUTTON
   ================ */
.hero {
  background: linear-gradient(90deg, #FFCF00 0%, #FF6B59 100%);
  color: #1B2430;
  padding: 60px 0 40px 0;
  min-height: 240px;
}
.hero .container {
  align-items: flex-start;
  justify-content: flex-start;
}
.hero .content-wrapper {
  align-items: flex-start;
  max-width: 750px;
}
.hero h1, .hero p {
  color: #1B2430;
}
.hero .cta-primary {
  margin-top: 28px;
}
.cta-primary, .cta-secondary {
  background: #14647E;
  color: #fff;
  font-size: 1.15rem;
  padding: 16px 34px;
  border-radius: 28px;
  font-family: inherit;
  font-weight: bold;
  border: none;
  transition: background .2s, color .2s, transform .1s;
  cursor: pointer;
  box-shadow: 0 2px 12px 0 rgba(20,100,126,.09);
  margin-right: 18px;
  margin-bottom: 10px;
  outline: none;
  position: relative;
  letter-spacing: .07em;
  z-index: 1;
}
.cta-primary:hover, .cta-secondary:hover {
  background: #FFCF00;
  color: #1B2430;
  transform: scale(1.07) rotate(-2deg);
}
.cta-secondary {
  background: #FFCF00;
  color: #14647E;
}
.cta-secondary:hover {
  background: #FF6B59;
  color: #fff;
}

/* =============
   BLOG FILTERS
   ============= */
.categories-filter span {
  background: #FFCF00;
  color: #1B2430;
  border-radius: 14px;
  padding: 4px 13px;
  font-size: .95rem;
  font-family: 'Noto Sans JP', 'Roboto', sans-serif;
  font-weight: 700;
  margin-right: 9px;
  margin-bottom: 7px;
  display: inline-block;
  letter-spacing: .01em;
}
input[type="search"] {
  border: 2px solid #FFCF00;
  border-radius: 18px;
  padding: 10px 16px;
  font-size: 1rem;
  width: 100%;
  max-width: 360px;
  margin: 14px 0 24px 0;
  outline: none;
  transition: border-color .2s;
  background: #fff;
}
input[type="search"]:focus {
  border-color: #FF6B59;
}

.recent-posts-list li {
  margin-bottom: 10px;
  font-size: 1.02rem;
  color: #14647E;
  font-weight: 500;
}

/* ================
   BLOG & CARDS
   ================ */
.blog_post_grid > div {
  padding: 17px 18px 20px 18px;
  background: #fff;
  color: #1B2430;
  border-radius: 18px;
  box-shadow: 0 2px 11px rgba(255,206,0,.11);
  min-width: 220px;
  margin-bottom: 20px;
  position: relative;
  transition: box-shadow .20s, transform .15s;
}
.blog_post_grid > div:hover {
  box-shadow: 0 6px 22px 0 #ffe889;
  transform: scale(1.04) rotate(1.4deg);
  z-index: 10;
}

.detailed-service-descriptions ul, .method-descriptions ul, .resources ul {
  margin: 0 0 0 14px;
  font-size: 1.08rem;
  color: #323643;
}
.checklist li::before {
  content: '✔';
  color: #FF6B59;
  font-size: 1.1rem;
  padding-right: 7px;
}

/* =============
   TIMELINE 
   ============= */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 22px;
}
.timeline > div {
  padding-left: 12px;
  border-left: 4px solid #FFCF00;
  font-size: 1rem;
  position: relative;
}
.timeline > div::before {
  content: '';
  width: 10px; height: 10px;
  background: #FFCF00;
  border-radius: 50%;
  position: absolute;
  left: -7px; top: 10px;
  z-index: 1;
}

/* =============
   CARD & SPACINGS
   ============= */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 2px 10px 0 rgba(20,100,126,.07);
  padding: 24px 22px 20px 20px;
  min-width: 230px;
  transition: box-shadow .18s, transform .14s;
}
.card:hover {
  box-shadow: 0 8px 30px rgba(20,100,126,.09),0 0 0 1.5px #FFCF00;
  transform: scale(1.03) rotate(-1.1deg);
}

/* =============
   TESTIMONIALS
   ============= */
.testimonial-slider {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.testimonial {
  background: #fffbe7;
  border-radius: 22px;
  box-shadow: 0 2px 14px rgba(227,188,75,0.10);
  margin-bottom: 22px;
}

/* =============
   FOOTER
   ============= */
footer {
  margin-top: 60px;
  background: #1B2430;
  color: #fff;
  width: 100%;
  padding: 0;
}
footer .container {
  flex-direction: column;
  gap: 22px;
  align-items: flex-start;
  padding: 38px 20px 20px 20px;
}
.footer-logo-info img {
  height: 38px;
  margin-bottom: 8px;
}
nav.footer-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin: 8px 0;
}
nav.footer-menu a {
  color: #FFCF00;
  font-size: .95rem;
  font-weight: 600;
  padding: 1px 8px;
  border-radius: 6px;
  transition: background .18s, color .18s;
}
nav.footer-menu a:hover {
  background: #fffbe7;
  color: #1B2430;
}
.footer-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  font-size: .99rem;
  color: #F8F7F3;
  align-items: flex-start;
}
.footer-contact div {
  display: flex;
  align-items: center;
  gap: 8px;
}
.copyright {
  color: #B3B3B3;
  font-size: .91rem;
  margin-top: 13px;
}

/* ================
   COOKIE CONSENT
   ================ */
.cookie-consent-banner {
  position: fixed;
  left: 0; bottom: 0; width: 100vw;
  background: #FFF9D5;
  color: #1B2430;
  padding: 22px 20px 20px 20px;
  box-shadow: 0 -2px 30px 0 rgba(227,188,75,0.13);
  z-index: 99999;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  font-size: 1.03rem;
  animation: slideUp .6s cubic-bezier(.77,0,.18,1);
}
.cookie-consent-banner .cookie-btns {
  display: flex;
  flex-direction: row;
  gap: 16px;
  margin-top: 6px;
}
.cookie-consent-banner button {
  background: #14647E;
  color: #fff;
  border: none;
  border-radius: 22px;
  padding: 8px 20px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  margin-right: 0;
  margin-bottom: 0;
  transition: background .18s, color .13s, transform .11s;
  outline: none;
  letter-spacing: .07em;
}
.cookie-consent-banner .reject {
  background: #FF6B59;
}
.cookie-consent-banner .settings {
  background: #FFCF00;
  color: #1B2430;
}
.cookie-consent-banner button:hover {
  transform: scale(1.09) rotate(-2deg);
  background: #FFCF00;
  color: #1B2430;
}
/* Cookie modal */
.cookie-modal {
  display: none;
  position: fixed;
  left: 0; top: 0; width: 100vw; height: 100vh;
  background: rgba(27,36,48,0.93);
  z-index: 100000;
  justify-content: center;
  align-items: center;
}
.cookie-modal.active {
  display: flex;
  animation: fadeIn .45s cubic-bezier(.77,0,.18,1);
}
.cookie-modal-content {
  background: #fff;
  padding: 34px 26px 32px 26px;
  border-radius: 28px;
  max-width: 380px;
  box-shadow: 0 6px 46px 0 rgba(255,107,89,0.13);
  color: #1B2430;
  font-size: 1.13rem;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.cookie-modal-content h3 {
  font-size: 1.12rem;
  margin-bottom: 17px;
  color: #14647E;
  font-weight: bold;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 15px;
  width: 100%;
  margin-bottom: 20px;
}
.cookie-category {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1rem;
}
.cookie-category .toggle {
  appearance: none;
  width: 44px; height: 22px;
  background: #ececec;
  border-radius: 11px;
  position: relative;
  outline: none;
  cursor: pointer;
  transition: background .10s;
}
.cookie-category .toggle:checked {
  background: #FF6B59;
}
.cookie-category .toggle:before {
  content: '';
  display: block;
  width: 20px; height: 20px;
  background: #fff;
  border-radius: 50%;
  position: absolute;
  top: 1px; left: 1px;
  transition: .18s cubic-bezier(.77,0,.18,1);
  box-shadow: 0 1px 5px rgba(0,0,0,.04);
}
.cookie-category .toggle:checked:before {
  left: 23px;
  background: #FFCF00;
}
.cookie-modal-close {
  background: none;
  border: none;
  color: #FF6B59;
  font-size: 1.6rem;
  position: absolute;
  right: 21px; top: 19px;
  cursor: pointer;
}
.cookie-modal-buttons {
  display: flex;
  flex-direction: row;
  gap: 12px;
  margin-top: 14px;
}
.cookie-modal-buttons button {
  padding: 8px 18px;
  font-size: 1rem;
  border: none;
  border-radius: 22px;
  font-weight: 700;
}

/* ===============
   MEDIA QUERIES
   =============== */
@media (max-width: 768px) {
  .container {
    max-width: 100vw;
    padding: 0 12px;
  }
  .section {
    padding: 32px 8px;
    margin-bottom: 36px;
  }
  .feature-grid, .service-overview-cards, .service-card-grid, .case_study_card_list, .method-cards, .blog_post_grid {
    flex-direction: column;
    gap: 16px;
  }
  .content-grid {
    gap: 16px;
    flex-direction: column;
    align-items: stretch;
  }
  .hero {
    padding: 32px 0 20px 0;
    min-height: inherit;
  }
  .hero h1 {
    font-size: 1.65rem;
  }
  .cta-button,.cta-primary,.cta-secondary {
    font-size: 1.03rem;
    padding: 12px 0;
    width: 100%;
    max-width: 97vw;
    text-align: center;
    margin: 0 0 10px 0;
  }
  .main-nav, .footer-menu {
    flex-direction: column;
    align-items: flex-start;
    gap: 9px;
  }
  .footer-contact {
    flex-direction: column;
    gap: 10px;
  }
  .testimonial-slider {
    flex-direction: column;
    gap: 13px;
  }
  .testimonial-card {
    flex-direction: column;
    gap: 10px;
    padding: 13px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 16px;
    align-items: stretch;
  }
}

@media (max-width: 540px) {
  h1 {
    font-size: 1.33rem;
  }
  h2 {
    font-size: 1.03rem;
  }
  header img, .footer-logo-info img {
    height: 30px;
  }
}

/* ===============
   ANIMATIONS
   =============== */
@keyframes slideUp {
  from {transform: translateY(100%); opacity: 0;}
  to {transform: translateY(0); opacity: 1;}
}
@keyframes fadeIn {
  from {opacity: 0;}
  to {opacity: 1;}
}
@keyframes bounceInDown {
  from, 60%, 75%, 90%, to {
    animation-timing-function: cubic-bezier(.215,.610,.355,1.000);
  }
  0% {
    opacity: 0;
    transform: translateY(-120px);
  }
  60% {
    opacity: 1;
    transform: translateY(25px);
  }
  75% {
    transform: translateY(-6px);
  }
  90% {
    transform: translateY(1px);
  }
  to {
    transform: translateY(0);
  }
}

/* ===============
   PLAYFUL ELEMENTS & MICRO-INTERACTIONS
   =============== */
.feature-grid > div::after, .service-overview-cards > div::after, .service-card-grid > div::after, .method-cards > div::after {
  content: '';
  position: absolute;
  bottom: 14px; right: 14px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: #FFCF00;
  opacity: 0.4;
  z-index: 0;
  transition: background .2s, opacity .2s;
  animation: playfulPop .9s infinite alternate-reverse ease-in-out;
  pointer-events: none;
}
@keyframes playfulPop {
  0% {transform: scale(1) rotate(0deg);}
  80% {transform: scale(1.17) rotate(11deg);}
  100% {transform: scale(1) rotate(-4deg);}
}

.card::before {
  content: '';
  position: absolute;
  left: 10px; top: 10px;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #FF6B59;
  opacity: .32;
  z-index: 0;
}

/* ==========
   MISC
   ==========
 */
address {
  font-style: normal;
  color: #323643;
  font-size: .99rem;
  margin-top: 12px;
}
a:focus {
  outline: 4px solid #FFCF00;
  background: #FFF9D5;
  color: #1B2430;
}

/* Hide elements visually but keep accessible for a11y */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ===============
   END OF STYLE.CSS
   =============== */
