/* ========================== */
/* CSS RESET and BASE STYLES  */
/* ========================== */
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;
}
body {
  line-height: 1.6;
  background: #F5F6FA;
  color: #1A2442;
  font-family: 'Yu Gothic', 'Noto Sans JP', Arial, sans-serif;
  min-height: 100vh;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
ul, ol {
  list-style: none;
}
a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s;
}
img {
  max-width: 100%;
  height: auto;
  display: inline-block;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Noto Sans JP', 'Yu Gothic', Arial, sans-serif;
  font-weight: bold;
  color: #234080;
  line-height: 1.2;
  margin-bottom: 16px;
}
h1 {
  font-size: 2.25rem;
  letter-spacing: 2px;
  margin-bottom: 20px;
}
h2 {
  font-size: 1.5rem;
  margin-bottom: 16px;
  border-left: 5px solid #659DBD;
  padding-left: 10px;
}
h3 {
  font-size: 1.125rem;
  margin-bottom: 10px;
}
p, .section p {
  font-size: 1rem;
  color: #24344d;
  margin-bottom: 14px;
  font-family: 'Yu Gothic', 'Noto Sans JP', Arial, sans-serif;
}
strong {
  color: #234080;
}
.container {
  width: 100%;
  max-width: 1024px;
  margin: 0 auto;
  padding: 0 16px;
}
.content-wrapper {
  width: 100%;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 4px 24px 0 rgba(101,157,189,0.10);
}
@media (max-width: 768px) {
  .section {
    padding: 28px 8px;
    margin-bottom: 36px;
    border-radius: 14px;
  }
  .container {
    padding: 0 6px;
  }
}

/* =============================== */
/* HEADER + NAVIGATION - ARTISTIC  */
/* =============================== */
header {
  width: 100%;
  background: linear-gradient(90deg, #659DBD 30%, #F5F6FA 100%);
  box-shadow: 0 2px 8px 0 rgba(35,64,128,0.06);
  position: relative;
  z-index: 50;
}
header nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 18px 0 18px 0;
}
header nav > a img {
  height: 38px;
  margin-right: 20px;
  display: block;
}
header nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
header nav ul li a {
  font-family: 'Noto Sans JP', 'Yu Gothic', sans-serif;
  font-size: 1.05rem;
  color: #234080;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 18px;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}
header nav ul li a:hover,
header nav ul li a:focus {
  background: #234080;
  color: #fff;
  box-shadow: 0 2px 8px rgba(101,157,189,0.12);
}
.cta-btn {
  background: #234080;
  color: #fff;
  font-family: 'Noto Sans JP', 'Yu Gothic', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 1px;
  border: none;
  border-radius: 24px 28px 14px 24px;
  padding: 12px 36px;
  margin-left: 14px;
  cursor: pointer;
  box-shadow: 0 4px 14px 0 rgba(35,64,128,0.05);
  transition: background 0.3s, box-shadow 0.3s, transform 0.2s;
  position: relative;
  z-index: 2;
}
.cta-btn:hover, .cta-btn:focus {
  background: #659DBD;
  color: #234080;
  box-shadow: 0 2px 18px 0 rgba(35,64,128,0.18);
  transform: translateY(-2px) scale(1.04);
}

/* ========= BURGER ============ */
.mobile-menu-toggle {
  display: none;
  background: #234080;
  color: #fff;
  font-size: 2rem;
  width: 48px;
  height: 48px;
  border-radius: 24px;
  border: none;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s;
  position: absolute;
  right: 16px;
  top: 16px;
  z-index: 1030;
}
.mobile-menu-toggle:focus {
  outline: 2px solid #659DBD;
}
@media (max-width: 900px) {
  header nav ul {
    display: none;
  }
  .cta-btn {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}

/* ========== MOBILE MENU ========== */
.mobile-menu {
  position: fixed;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(35,64,128, 0.97);
  z-index: 1200;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  transform: translateX(-100vw);
  transition: transform 0.4s cubic-bezier(0.8,0.2,0.2,1);
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  margin: 22px 0 0 22px;
  background: none;
  color: #fff;
  font-size: 2rem;
  border: none;
  cursor: pointer;
  transition: color 0.2s;
}
.mobile-menu-close:hover {
  color: #659DBD;
}
.mobile-nav {
  margin-top: 30px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
  padding: 0 36px;
}
.mobile-nav a {
  color: #fff;
  font-size: 1.15rem;
  font-family: 'Noto Sans JP', 'Yu Gothic', sans-serif;
  padding: 12px 0 12px 6px;
  border-radius: 6px;
  width: 100%;
  transition: background 0.2s, color 0.2s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #659DBD;
  color: #234080;
}

@media (max-width: 480px) {
  .mobile-nav {
    padding: 0 20px;
  }
}

/* ===================== */
/* HERO SECTION ARTISTIC */
/* ===================== */
.hero {
  background: linear-gradient(95deg, #F5F6FA 60%, #659DBD 110%);
  border-radius: 0 0 52px 52px;
  position: relative;
  padding-top: 32px;
  margin-bottom: 44px;
  min-height: 290px;
  box-shadow: 0 12px 32px 0 rgba(35,64,128,0.08);
}
.hero .container {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  height: 100%;
}
.hero .content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
}
.hero h1 {
  font-family: 'Noto Sans JP', 'Yu Gothic', Arial, sans-serif;
  font-size: 2.3rem;
  letter-spacing: 2px;
  color: #234080;
  margin-bottom: 8px;
  background: linear-gradient(90deg, #234080 60%, #659DBD 115%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero p {
  font-size: 1.17rem;
  color: #234080;
}
.hero .cta-btn {
  margin-top: 16px;
}
@media (max-width: 600px) {
  .hero {
    border-radius: 0 0 24px 24px;
    margin-bottom: 16px;
  }
  .hero .container {
    padding: 0 6px;
  }
  .hero h1 {
    font-size: 1.38rem;
  }
}

/* ========================= */
/* FEATURE & CARD LAYOUTS    */
/* ========================= */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: #EFF5FB;
  border-radius: 20px;
  padding: 26px 22px 18px 22px;
  box-shadow: 0 2px 12px 0 rgba(35,64,128,0.07);
  min-width: 220px;
  flex: 1 1 220px;
  gap: 15px;
  position: relative;
  transition: box-shadow 0.2s, transform 0.2s;
  margin-bottom: 0; /* always use flex gap not margin */
}
.feature-item img {
  width: 46px;
  height: 46px;
  margin-bottom: 6px;
  filter: drop-shadow(0 2px 3px #659DBD80);
}
.feature-item h3 {
  font-size: 1.1rem;
  color: #234080;
}
.feature-item p {
  font-size: 0.97rem;
}
.feature-item:hover, .feature-item:focus-within {
  box-shadow: 0 4px 32px 0 #659DBD55;
  transform: translateY(-3px) scale(1.03);
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 16px 0 rgba(101,157,189,0.14);
  overflow: hidden;
  transition: box-shadow 0.22s, transform 0.15s;
}
.card:hover,
.card:focus-within {
  box-shadow: 0 6px 28px 0 #23408033;
  transform: translateY(-2px);
}
.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;
}
@media (max-width: 900px) {
  .feature-grid, .card-container, .content-grid {
    gap: 16px;
  }
}
@media (max-width: 768px) {
  .feature-grid {
    flex-direction: column;
  }
  .feature-item {
    min-width: 0;
  }
  .content-grid, .card-container, .text-image-section {
    flex-direction: column;
    gap: 14px;
    align-items: stretch;
  }
}

/* ============= TESTIMONIAL CARD ================== */
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  margin-bottom: 20px;
  background: #fff7f0;
  border-radius: 18px;
  box-shadow: 0 2px 12px 0 #23408015;
  border-left: 8px solid #659DBD;
  max-width: 620px;
  transition: box-shadow 0.24s, background 0.24s;
}
.testimonial-card:hover {
  box-shadow: 0 6px 22px 0 #23408030;
  background: #ece6ff;
}
.testimonial-quote p {
  color: #2d2b26;
  font-size: 1.08rem;
  font-weight: 500;
  margin-bottom: 8px;
}
.star-rating {
  color: #F5A623;
  font-size: 1.3rem;
  letter-spacing: 4px;
  margin-bottom: 6px;
}
.customer-name {
  color: #234080;
  font-size: 0.99rem;
  font-family: 'Noto Sans JP', Arial, sans-serif;
  font-weight: bold;
}
@media (max-width: 600px) {
  .testimonial-card {
    flex-direction: column;
    gap: 10px;
    padding: 12px;
  }
}


/* =========== SERVICE/FEATURE LIST ============= */
.service-list, .feature-list {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}
.service-list li, .feature-list li {
  background: #EFF5FB;
  border-radius: 16px;
  padding: 20px 18px 14px 18px;
  min-width: 200px;
  flex: 1 1 200px;
  transition: box-shadow 0.16s, transform 0.16s;
  box-shadow: 0 2px 10px 0 #659DBD11;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
}
.service-list li img, .feature-list li img {
  width: 36px;
  height: 36px;
  margin-bottom: 6px;
}
.service-list li h3, .feature-list li h3 {
  font-size: 1.03rem;
  color: #234080;
}
.service-list li:hover, .feature-list li:hover {
  box-shadow: 0 4px 20px 0 #659DBD22;
  transform: translateY(-2px) scale(1.02);
}
@media (max-width: 768px) {
  .service-list, .feature-list {
    flex-direction: column;
    gap: 12px;
  }
  .service-list li, .feature-list li {
    min-width: 0;
  }
}


/* ============== FAQ ACCORDION ============ */
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin: 14px 0 18px 0;
}
.faq-item {
  background: #fff;
  border-radius: 12px;
  padding: 18px 18px 12px 16px;
  box-shadow: 0 2px 10px 0 #659DBD12;
  transition: box-shadow 0.16s;
}
.faq-item h3 {
  color: #234080;
  font-size: 1.02rem;
}
.faq-item p {
  margin-bottom: 0;
}
.faq-item:hover {
  box-shadow: 0 4px 16px 0 #23408035;
}


/* =============== CTA SECTION ============== */
.cta-section {
  background: linear-gradient(92deg, #234080 65%, #F5F6FA 140%);
  color: #fff;
  border-radius: 36px;
  margin: 40px 0 0 0;
  padding: 38px 0;
  box-shadow: 0 2px 28px 0 #23408022;
  position: relative;
  overflow: hidden;
}
.cta-section .content-wrapper {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.cta-section h2, .cta-section p {
  color: #fff;
}
.cta-section .cta-btn {
  margin-top: 12px;
  background: #F5F6FA;
  color: #234080;
}
.cta-section .cta-btn:hover {
  background: #659DBD;
  color: #fff;
}
@media (max-width: 768px) {
  .cta-section {
    border-radius: 16px;
    padding: 22px 0;
  }
}

/* ================== FOOTER =================== */
footer {
  background: #234080;
  color: #fff;
  padding: 38px 0 24px 0;
  border-radius: 32px 32px 0 0;
  box-shadow: 0 -2px 14px 0 #23408014;
  margin-top: 60px;
}
footer nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: center;
  margin-bottom: 16px;
}
footer nav ul li a {
  color: #F5F6FA;
  font-size: 1rem;
  font-family: 'Yu Gothic', 'Noto Sans JP', Arial, sans-serif;
  padding: 2px 8px;
  border-radius: 4px;
  transition: background 0.2s, color 0.2s;
}
footer nav ul li a:hover {
  background: #659DBD;
  color: #234080;
}
.footer-contact {
  text-align: center;
  font-size: 0.97rem;
  margin-top: 4px;
}
.footer-contact small {
  display: block;
  margin-top: 8px;
  color: #EFF5FB;
  opacity: 0.8;
}
@media (max-width: 768px) {
  footer {
    border-radius: 18px 18px 0 0;
    padding: 18px 0 10px 0;
    margin-top: 34px;
  }
  .footer-contact {
    font-size: 0.91rem;
  }
}

/* ================= Cookie Consent Banner ================ */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  background: #fff;
  color: #234080;
  box-shadow: 0 -4px 22px 0 #23408023;
  padding: 18px 28px 18px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 2000;
  gap: 18px;
  font-size: 1rem;
  font-family: 'Yu Gothic', 'Noto Sans JP', sans-serif;
  transition: transform 0.38s cubic-bezier(0.77,0,0.18,1);
  transform: translateY(0);
}
.cookie-banner.hide {
  transform: translateY(100%);
}
.cookie-banner-content {
  flex: 1 1 0;
  padding-right: 12px;
}
.cookie-banner-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.cookie-btn {
  font-size: 1rem;
  font-family: 'Noto Sans JP', 'Yu Gothic', sans-serif;
  border: none;
  border-radius: 22px;
  padding: 8px 24px;
  font-weight: 600;
  margin-right: 2px;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  cursor: pointer;
}
.cookie-btn.accept {
  background: #234080;
  color: #fff;
}
.cookie-btn.accept:hover,
.cookie-btn.accept:focus {
  background: #659DBD;
  color: #234080;
}
.cookie-btn.reject {
  background: #fff;
  color: #234080;
  border: 2px solid #234080;
}
.cookie-btn.reject:hover,
.cookie-btn.reject:focus {
  background: #234080;
  color: #fff;
}
.cookie-btn.settings {
  background: #F5F6FA;
  color: #234080;
  border: 1.5px solid #659DBD;
}
.cookie-btn.settings:hover,
.cookie-btn.settings:focus {
  background: #659DBD;
  color: #fff;
}
@media (max-width: 680px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 13px 6px 14px 11px;
    font-size: 0.97rem;
  }
  .cookie-banner-content {
    padding-right: 0;
    margin-bottom: 8px;
  }
}

/* ============ Cookie Preferences Modal ================ */
.cookie-modal-backdrop {
  position: fixed;
  z-index: 3010;
  left: 0; top: 0;
  width: 100vw; height: 100vh;
  background: rgba(35,64,128,0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.28s;
}
.cookie-modal {
  background: #fff;
  color: #234080;
  border-radius: 20px;
  box-shadow: 0 8px 32px 0 #23408041;
  padding: 34px 36px 28px 36px;
  max-width: 420px;
  min-width: 270px;
  width: 92vw;
  display: flex;
  flex-direction: column;
  gap: 18px;
  animation: fadeInScale 0.4s cubic-bezier(0.59,1.45,0.65,1) 1;
}
.cookie-modal h3 {
  font-size: 1.18rem;
  margin-bottom: 6px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
}
.cookie-category label {
  font-size: 1rem;
}
.cookie-toggle {
  accent-color: #234080;
  width: 20px;
  height: 20px;
}
.cookie-category.essential label {
  color: #a1a1a1;
}
.cookie-modal-actions {
  display: flex;
  gap: 18px;
  margin-top: 10px;
}
@keyframes fadeInScale {
  from { opacity:0; transform: scale(0.93); }
  to { opacity:1; transform: scale(1); }
}
@media (max-width: 480px) {
  .cookie-modal {
    padding: 18px 8px 14px 8px;
    min-width: 0;
  }
}

/* ================== ADDRESS, OTHER UI ================== */
address {
  font-style: normal;
  color: #234080;
  background: #EFF5FB;
  padding: 14px 18px;
  border-radius: 14px;
  margin-bottom: 16px;
  font-size: 1rem;
  display: inline-block;
}

.access-map {
  background: #fff;
  color: #234080;
  padding: 11px 20px;
  border-radius: 12px;
  margin-top: 8px;
  font-size: 0.96rem;
}

/* ================== UTILITY CLASSES ================ */
.mt-8 {margin-top:8px !important;}
.mb-8 {margin-bottom:8px !important;}
.mt-16 {margin-top:16px !important;}
.mb-16 {margin-bottom:16px !important;}

/* ================== FORMS, BUTTONS ================ */
input, select, textarea {
  font-family: 'Yu Gothic', 'Noto Sans JP', Arial, sans-serif;
  font-size: 1rem;
  padding: 9px 15px;
  border-radius: 8px;
  border: 1.5px solid #ccc;
  margin-bottom: 14px;
  outline: none;
  transition: border 0.18s;
}
input:focus, textarea:focus, select:focus {
  border-color: #234080;
}
button, .btn {
  font-family: 'Noto Sans JP', 'Yu Gothic', Arial, sans-serif;
  font-size: 1rem;
  background: #234080;
  color: #fff;
  border: none;
  border-radius: 24px;
  padding: 10px 32px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}
button:hover, button:focus,
.btn:hover, .btn:focus {
  background: #659DBD;
  color: #234080;
  box-shadow: 0 3px 16px #659DBD44;
}

/* ==================== ARTISTIC FLAIR =====================*/
/* Artistic dashed/semi-random border for special sections */
.section, .card, .feature-item, .testimonial-card, .service-list li, .faq-item {
  position: relative;
  overflow: visible;
}
.section::before,
.card::before,
.feature-item::before {
  content: "";
  position: absolute;
  top: -8px;
  right: 18px;
  width: 44px;
  height: 10px;
  background: linear-gradient(90deg, #659DBD 40%, #F5F6FA 140%);
  border-radius: 8px;
  opacity: 0.14;
  z-index: 0;
}
/***** Fun corner doodle accent (artistic) *****/
.section::after,
.card::after,
.feature-item::after {
  content: "";
  position: absolute;
  left: 14px;
  bottom: -8px;
  width: 34px;
  height: 10px;
  background: linear-gradient(90deg, #F5F6FA 0%, #659DBD 70%);
  border-radius: 8px;
  opacity: 0.11;
  z-index: 0;
}

/* ================ ANIMATION EFFECTS ================== */
.card, .feature-item, .service-list li, .testimonial-card, .faq-item {
  transition: box-shadow 0.19s, transform 0.19s, background 0.17s;
}
.card:hover, .feature-item:hover, .service-list li:hover, .testimonial-card:hover, .faq-item:hover {
  transform: translateY(-3px) scale(1.025);
}

/********************* PRINT ********************/
@media print {
  header, footer, .hero, .cookie-banner, .mobile-menu {
    display: none !important;
  }
  .section, .container {
    box-shadow: none !important;
    background: #fff !important;
    border-radius: 0 !important;
  }
}
