/* ================================
   CSS RESET & NORMALIZATION
================================== */
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,
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 {
  -webkit-text-size-adjust: 100%;
  box-sizing: border-box;
  height: 100%;
}
body {
  line-height: 1.6;
  min-height: 100vh;
  background: #F7F6F2;
  color: #1C232E;
  font-family: 'Yu Gothic', 'Noto Sans JP', Helvetica, Arial, sans-serif;
  font-weight: 400;
}
*, *:before, *:after {
  box-sizing: inherit;
}
img, svg {
  max-width: 100%;
  display: block;
  vertical-align: middle;
}
a {
  color: #1C232E;
  text-decoration: none;
  transition: color 0.2s;
}
button,
input[type="button"],
input[type="submit"] {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
}
ul, ol {
  list-style: none;
}
h1, h2, h3, h4, h5, h6 {
  color: #1C232E;
  font-family: 'Noto Sans JP', 'Yu Gothic', Helvetica, Arial, sans-serif;
  font-weight: 700;
}

/* ===================================
   GLOBAL STRUCTURE
==================================== */
.container {
  width: 100%;
  max-width: 1200px;
  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: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 12px 0 rgba(28, 35, 46, 0.07);
}

@media (max-width: 768px) {
  .section {
    padding: 24px 8px;
    margin-bottom: 36px;
    border-radius: 10px;
  }
  .container {
    padding: 0 8px;
  }
  .content-wrapper {
    gap: 16px;
  }
}

.text-section {
  background: #F7F6F2;
  padding: 32px 24px;
  border-radius: 14px;
  margin-bottom: 32px;
}

/* ===================================
   TYPOGRAPHY
==================================== */
h1 {
  font-size: 2.5rem;
  color: #1C232E;
  line-height: 1.2;
  margin-bottom: 8px;
  font-family: 'Noto Sans JP', 'Yu Gothic', Helvetica, Arial, sans-serif;
}
h2 {
  font-size: 2rem;
  color: #1C232E;
  line-height: 1.3;
  margin-bottom: 8px;
}
h3 {
  font-size: 1.25rem;
  color: #1C232E;
  line-height: 1.4;
}
h4, h5, h6 {
  font-size: 1rem;
  color: #1C232E;
}
p {
  font-size: 1rem;
  color: #586376;
  margin-bottom: 8px;
}
ul, ol {
  color: #586376;
  font-size: 1rem;
  margin-bottom: 12px;
  padding-left: 1em;
}
ul li, ol li {
  margin-bottom: 6px;
  position: relative;
  padding-left: 0.5em;
}
ul li:before {
  content: '•';
  color: #1C232E;
  font-size: 1.1em;
  position: absolute;
  left: -1em;
  top: 2px;
}

strong {
  color: #1C232E;
  font-weight: 700;
}

@media (max-width: 768px) {
  h1 {
    font-size: 1.75rem;
  }
  h2 {
    font-size: 1.25rem;
  }
  h3 {
    font-size: 1.1rem;
  }
  p, ul, ol {
    font-size: 0.97rem;
  }
}

/* ===================================
   HEADER & NAVIGATION
==================================== */
header {
  background-color: #fff;
  border-bottom: 1px solid #E0E3EA;
  box-shadow: 0 2px 8px 0 rgba(34, 41, 54, 0.04);
  position: sticky;
  top: 0; left: 0; right: 0;
  z-index: 1001;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  min-height: 68px;
}
header img {
  height: 38px;
  width: auto;
}
nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
nav a {
  color: #1C232E;
  font-weight: 500;
  font-size: 1rem;
  padding: 8px 14px;
  border-radius: 7px;
  transition: background 0.1s, color 0.1s;
}
nav a:hover, nav a:focus {
  background: #E0E3EA;
  color: #274d84;
}
.cta-button {
  background: #1C232E;
  color: #fff;
  border-radius: 24px;
  font-weight: bold;
  font-size: 1rem;
  padding: 11px 28px;
  margin-left: 18px;
  box-shadow: 0 2px 8px 0 rgba(40, 50, 80, 0.07);
  transition: background 0.2s, box-shadow 0.2s, color 0.2s;
  border: 1px solid #1C232E;
  display: inline-block;
}
.cta-button:hover, .cta-button:focus {
  background: #274d84;
  color: #fff;
  box-shadow: 0 4px 18px 0 rgba(28, 35, 46, 0.10);
  border-color: #274d84;
}

/* MOBILE MENU BUTTON */
.mobile-menu-toggle {
  display: none;
  background: #1C232E;
  color: #fff;
  font-size: 2rem;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  align-items: center;
  justify-content: center;
  z-index: 1320;
  margin-left: 16px;
  transition: background 0.18s;
}
.mobile-menu-toggle:active,
.mobile-menu-toggle:focus {
  background: #274d84;
}

/* MOBILE MENU OVERLAY & ANIMATION */
.mobile-menu {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  position: fixed;
  top: 0; left: 0; height: 100vh; width: 100vw;
  background: #1C232E;
  color: #fff;
  z-index: 1200;
  padding: 44px 28px 28px 28px;
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(.7,.2,.25,1);
}
.mobile-menu.active {
  transform: translateX(0);
}
.mobile-menu-close {
  background: #586376;
  color: #fff;
  font-size: 2rem;
  border-radius: 8px;
  padding: 4px 14px;
  margin-bottom: 24px;
  align-self: flex-end;
  transition: background 0.18s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #274d84;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
  width: 100%;
}
.mobile-nav a {
  color: #fff;
  font-size: 1.22rem;
  border-radius: 8px;
  padding: 13px 0 13px 12px;
  transition: background 0.16s, color 0.16s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #274d84;
  color: #F7F6F2;
}

@media (max-width: 1000px) {
  nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
  .cta-button {
    display: none;
  }
}
@media (min-width: 1001px) {
  .mobile-menu,
  .mobile-menu-toggle {
    display: none !important;
  }
  nav {
    display: flex !important;
  }
  .cta-button {
    display: inline-block;
  }
}

/* ===================================
   MAIN & FLEX LAYOUTS (MANDATORY)
==================================== */
.feature_grid, .feature-list, .service_list, .property-grid, .property-comparer, .testimonial-slider {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: 24px 0 0 0;
}
.feature_item, .feature-item, .service_item, .property-item, .faq-item, .testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 1px 6px 0 rgba(28,35,46,0.07);
  padding: 24px 22px;
  margin-bottom: 20px;
}
.property-item {
  min-width: 250px;
  flex: 1 1 280px;
  max-width: 48%;
}
.testimonial-slider {
  width: 100%;
}

@media (max-width: 900px) {
  .feature_grid, .feature-list, .service_list, .property-grid, .property-comparer, .testimonial-slider {
    flex-direction: column;
    gap: 18px;
  }
  .property-item {
    max-width: 100%;
  }
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 1px 6px 0 rgba(34, 41, 54, 0.09);
  position: relative;
  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;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    gap: 16px;
  }
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  background: #FFF;
  border-radius: 16px;
  box-shadow: 0 1px 6px 0 rgba(40,50,80,0.08);
  padding: 20px 26px;
  min-width: 240px;
  min-height: 120px;
  margin-bottom: 20px;
  color: #1C232E;
}
.testimonial-card p {
  color: #1C232E;
  font-size: 1.07rem;
}
.testimonial-card span {
  color: #586376;
  font-size: 0.97rem;
}
.star-rating {
  color: #FFD700;
  font-size: 1.1em;
  letter-spacing: 2px;
}

.feature-item, .feature_item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #f6f7fa;
  border-radius: 12px;
  box-shadow: 0 1px 3px 0 rgba(90,110,140,0.08);
  padding: 20px 22px;
  min-width: 200px;
}

/* ===================================
   SEARCH & FILTER BAR (properties)
==================================== */
.search-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
}
.search-bar input {
  flex: 1 1 200px;
  font-size: 1rem;
  padding: 10px 12px;
  border: 1px solid #CED3DF;
  border-radius: 7px;
  background: #fff;
  color: #1C232E;
  transition: border 0.18s;
  outline: none;
}
.search-bar input:focus {
  border-color: #274d84;
}
.search-bar button {
  background: #1C232E;
  border-radius: 7px;
  width: 40px;
  height: 40px;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.14s;
}
.search-bar button:hover, .search-bar button:focus {
  background: #274d84;
}
.filter-options {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 10px;
}
.filter-options label {
  display: flex;
  align-items: center;
  gap: 4px;
  background: #eaf0f7;
  padding: 8px 13px;
  border-radius: 18px;
  color: #586376;
  font-size: 0.99rem;
}
.filter-options input[type="checkbox"] {
  accent-color: #274d84;
  width: 17px;
  height: 17px;
}
@media (max-width: 600px) {
  .search-bar { flex-direction: column; gap: 8px; }
  .filter-options { gap: 10px; }
}

/* ===================================
   FAQ
==================================== */
.faq-item {
  background: #f6f7fa;
  border-radius: 10px;
  box-shadow: 0 1px 3px 0 rgba(90,110,140,0.06);
  padding: 18px 20px;
  margin-bottom: 20px;
  color: #1C232E;
}
.faq-item h3 {
  font-size: 1.09rem;
  margin-bottom: 4px;
  color: #274d84;
}
.faq-item p {
  font-size: 1rem;
  color: #586376;
}

/* ===================================
   TABLES (if any)
==================================== */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 28px 0;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  font-size: 1rem;
}
th, td {
  padding: 12px 14px;
}
th {
  background: #E0E3EA;
  color: #1C232E;
  font-weight: 600;
  text-align: left;
}
td {
  border-top: 1px solid #E0E3EA;
}

/* ===================================
   BUTTONS & MICRO-INTERACTIONS
==================================== */
button, .button {
  font-family: 'Noto Sans JP', 'Yu Gothic', Arial, sans-serif;
  font-size: 1rem;
  border-radius: 7px;
  padding: 11px 20px;
  font-weight: 500;
  background: #1C232E;
  color: #fff;
  border: none;
  transition: background 0.18s, color 0.18s, box-shadow 0.2s;
}
button:hover, .button:hover {
  background: #274d84;
  color: #fff;
  box-shadow: 0 0 8px 2px rgba(90, 110, 140, 0.08);
}

/* ===================================
   FORMS (contact, subscriptions)
==================================== */
input, textarea, select {
  font-family: inherit;
  font-size: 1rem;
  color: #1C232E;
  background: #fff;
  border: 1px solid #CED3DF;
  border-radius: 7px;
  padding: 10px 14px;
  margin-bottom: 12px;
  transition: border 0.18s;
}
input:focus, textarea:focus, select:focus {
  border-color: #274d84;
}

/* ===================================
   FOOTER
==================================== */
footer {
  background: #1C232E;
  color: #fff;
  padding: 54px 0 28px 0;
  box-shadow: 0 -2px 8px 0 rgba(28, 35, 46, 0.04);
  font-size: 0.99rem;
}
footer .container {
  flex-direction: column;
  gap: 24px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-bottom: 10px;
}
.footer-nav a {
  color: #fff;
  font-size: 0.99rem;
  opacity: 0.95;
  transition: opacity 0.15s, text-decoration 0.15s;
}
.footer-nav a:hover, .footer-nav a:focus {
  text-decoration: underline;
  opacity: 1;
}
.footer-info {
  color: #CED3DF;
  margin-bottom: 13px;
}
.copyright {
  color: #9aacc7;
  font-size: 0.95em;
}

@media (max-width: 600px) {
  footer .container, .footer-nav {
    flex-direction: column;
    gap: 14px;
    align-items: flex-start;
  }
}

/* ===================================
   SHADOWS & CARD DESIGN
==================================== */
.card, .feature_item, .feature-item, .service_item, .property-item, .faq-item, .testimonial-card {
  box-shadow: 0 2px 10px 0 rgba(34, 41, 54, 0.08);
}

/* ===================================
   ANIMATIONS & TRANSITIONS
==================================== */
.cta-button, button, .button, a, .mobile-menu, .mobile-menu-toggle, .mobile-menu-close, .feature_item, .service_item, .property-item, .testimonial-card {
  transition: background 0.18s, color 0.18s, box-shadow 0.22s, transform 0.13s;
}
.testimonial-card:hover {
  transform: translateY(-3px) scale(1.01);
  box-shadow: 0 8px 24px 0 rgba(28,35,46,0.14);
}
.card:hover, .feature-item:hover, .feature_item:hover, .service_item:hover, .property-item:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 6px 24px 0 rgba(28,35,46,0.10);
  background: #f2f6fb;
}

/* ===================================
   RESPONSIVE UTILITIES
==================================== */
@media (max-width: 900px) {
  .footer-nav, .feature-list, .feature_grid, .property-grid {
    flex-direction: column;
    gap: 14px !important;
    align-items: flex-start;
  }
}

/* ===================================
   COOKIE CONSENT BANNER & MODAL
==================================== */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; width: 100vw;
  background: #1C232E;
  color: #fff;
  padding: 24px 20px 24px 20px;
  box-shadow: 0 -2px 18px 0 rgba(34,41,54,0.25);
  z-index: 3000;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 38px;
  font-size: 1rem;
  transform: translateY(120%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.45s cubic-bezier(.7,.2,.25,1), opacity 0.42s;
}
.cookie-banner.active {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.cookie-banner p {
  color: #fff;
  margin-bottom: 0;
  flex: 2 1 auto;
}
.cookie-buttons {
  display: flex; flex-direction: row; gap: 12px;
}
.cookie-accept, .cookie-reject, .cookie-settings {
  border-radius: 19px;
  font-size: 1rem;
  padding: 9px 22px;
  font-weight: 500;
  border: none;
  color: #fff;
  transition: background 0.20s, color 0.20s;
  outline: none;
}
.cookie-accept {
  background: #274d84;
}
.cookie-accept:hover, .cookie-accept:focus {
  background: #17396e;
}
.cookie-reject {
  background: #586376;
}
.cookie-reject:hover, .cookie-reject:focus {
  background: #3a4352;
}
.cookie-settings {
  background: #fff;
  color: #1C232E;
  border: 1.5px solid #274d84;
}
.cookie-settings:hover, .cookie-settings:focus {
  background: #f2f6fb;
  color: #274d84;
}
@media (max-width: 700px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    padding: 18px 8px 18px 8px;
    font-size: 0.98rem;
  }
  .cookie-buttons {
    flex-direction: column;
    gap: 8px;
  }
}

/* Cookie Modal */
.cookie-modal-overlay {
  position: fixed;
  left: 0; right: 0; top: 0; bottom: 0;
  background: rgba(28,35,46,0.41);
  z-index: 4000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.32s;
}
.cookie-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal {
  background: #fff;
  color: #1C232E;
  border-radius: 14px;
  padding: 30px 34px;
  box-shadow: 0 8px 32px 0 rgba(34,41,54,0.21);
  min-width: 320px;
  max-width: 95vw;
  max-height: 95vh;
  overflow-y: auto;
  font-size: 1rem;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  animation: fadeInUpModal 0.43s cubic-bezier(.7,.2,.25,1);
}
@keyframes fadeInUpModal {
  0% { transform: translateY(30px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}
.cookie-modal h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
  color: #274d84;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.cookie-category label {
  font-size: 0.99rem;
  color: #1C232E;
  margin-right: 9px;
}
.cookie-category input[type="checkbox"] {
  accent-color: #274d84;
  width: 18px;
  height: 18px;
}
.cookie-modal .cookie-modal-close {
  position: absolute;
  top: 13px; right: 18px;
  font-size: 1.7rem;
  background: #E0E3EA;
  color: #274d84;
  border-radius: 8px;
  padding: 4px 14px;
  transition: background 0.16s;
}
.cookie-modal .cookie-modal-close:hover, .cookie-modal .cookie-modal-close:focus {
  background: #f2f6fb;
}
.cookie-modal .cookie-save {
  margin-top: 12px;
  background: #274d84;
  color: #fff;
  border-radius: 7px;
  padding: 11px 30px;
  font-size: 1.03rem;
  font-weight: 500;
  transition: background 0.15s;
}
.cookie-modal .cookie-save:hover, .cookie-modal .cookie-save:focus {
  background: #17396e;
}

/* ===================================
   UTILITIES
==================================== */
.hide {
  display: none !important;
}
.flex-row { display: flex; flex-direction: row; gap: 20px; }
.flex-col { display: flex; flex-direction: column; gap: 16px; }
.align-center { align-items: center; }
.align-start { align-items: flex-start; }
.gap-20 { gap: 20px !important; }
.mt-32 { margin-top: 32px !important; }
.mb-20 { margin-bottom: 20px !important; }
.mb-32 { margin-bottom: 32px !important; }

/* ===================================
   OVERRIDES FOR COLOR/CONTRAST IN REVIEWS
==================================== */
.testimonial-card, .testimonial-card p, .testimonial-card span {
  background: #fff;
  color: #1C232E !important;
}

/* =============================================
   SCROLLBAR Styling for Professional Look
============================================= */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-thumb {
  background: #E0E3EA;
  border-radius: 6px;
}
::-webkit-scrollbar-track {
  background: #F7F6F2;
}

/* END OF COMPREHENSIVE PROFESSIONAL CSS */
