/* =========================================================
   インフィロトン不動産 Vintage Retro Style CSS
   Brand: 洗練された高級感と信頼感、透明性と誠実さ
   ========================================================= */

/* --------------------
   1. Font Imports
--------------------- */
@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+JP:wght@400;700&family=Noto+Sans+JP:wght@400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700&family=Roboto+Mono:wght@400;700&display=swap');

:root {
  --color-primary: #204060;
  --color-secondary: #D9B377;
  --color-accent: #F7F7F5;
  --color-bg: #F7F7F5;
  --color-bg-alt: #f2e9da;
  --color-retro-red: #B85C38;
  --color-retro-green: #5C715E;
  --color-retro-blue: #6A8D92;
  --color-retro-yellow: #F2C572;
  --color-retro-brown: #8C6A4F;
  --color-retro-orange: #E07A5F;
  --color-dark: #222;
  --color-light: #fff;
  --font-display: 'Noto Serif JP', 'Montserrat', serif;
  --font-body: 'Noto Sans JP', 'Roboto Mono', sans-serif;
  --shadow-card: 0 4px 16px rgba(32, 64, 96, 0.08), 0 1.5px 0 #D9B377 inset;
  --radius-card: 18px;
  --radius-btn: 24px;
  --pattern-bg: repeating-linear-gradient(135deg, #f2e9da 0 8px, #f7f7f5 8px 16px);
}

html {
  box-sizing: border-box;
  font-size: 16px;
  background: var(--color-bg);
}
*, *:before, *:after {
  box-sizing: inherit;
}
body {
  font-family: var(--font-body);
  color: var(--color-dark);
  background: var(--pattern-bg);
  margin: 0;
  min-height: 100vh;
  line-height: 1.7;
  letter-spacing: 0.02em;
}

/* --------------------
   2. Typography
--------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--color-primary);
  margin-top: 0;
  margin-bottom: 0.7em;
  font-weight: 700;
  letter-spacing: 0.04em;
}
h1 {
  font-size: 2.2rem;
  text-shadow: 1px 2px 0 #D9B377, 0 2px 8px #fff8;
  margin-bottom: 0.5em;
}
h2 {
  font-size: 1.5rem;
  border-left: 8px solid var(--color-secondary);
  padding-left: 0.7em;
  margin-bottom: 1em;
  background: linear-gradient(90deg, #f2e9da 70%, transparent 100%);
}
h3 {
  font-size: 1.15rem;
  color: var(--color-retro-brown);
  margin-bottom: 0.5em;
}
h4, h5, h6 {
  font-size: 1rem;
}
p, ul, ol, dl, address {
  font-family: var(--font-body);
  font-size: 1rem;
  margin-bottom: 1em;
}
strong {
  color: var(--color-retro-red);
  font-weight: 700;
}

/* Vintage font for accent */
.cta-button, .main-nav a, .footer-nav a, .mobile-nav a {
  font-family: 'Montserrat', var(--font-display), serif;
  letter-spacing: 0.08em;
}

/* --------------------
   3. Layout Containers
--------------------- */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 18px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--color-bg-alt);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  position: relative;
}

/* --------------------
   4. Header & Navigation
--------------------- */
header {
  background: var(--color-primary);
  color: var(--color-light);
  padding: 0;
  box-shadow: 0 2px 12px #0001;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 18px;
  min-height: 72px;
}
header img {
  height: 48px;
  margin-right: 24px;
}
.main-nav {
  display: flex;
  flex-direction: row;
  gap: 24px;
  align-items: center;
}
.main-nav a {
  color: var(--color-secondary);
  text-decoration: none;
  font-size: 1rem;
  padding: 8px 0;
  position: relative;
  transition: color 0.2s;
}
.main-nav a:hover, .main-nav a:focus {
  color: var(--color-retro-yellow);
  text-shadow: 0 2px 0 #fff8;
}
.cta-button {
  background: linear-gradient(90deg, var(--color-secondary) 80%, var(--color-retro-yellow) 100%);
  color: var(--color-primary);
  border: none;
  border-radius: var(--radius-btn);
  padding: 12px 32px;
  font-size: 1.1rem;
  font-weight: 700;
  box-shadow: 0 2px 8px #0002, 0 1.5px 0 #fff8 inset;
  cursor: pointer;
  text-decoration: none;
  margin-left: 18px;
  transition: background 0.2s, box-shadow 0.2s, transform 0.15s;
  letter-spacing: 0.08em;
  position: relative;
  z-index: 1;
}
.cta-button:hover, .cta-button:focus {
  background: linear-gradient(90deg, var(--color-retro-yellow) 80%, var(--color-secondary) 100%);
  color: var(--color-retro-red);
  box-shadow: 0 4px 16px #D9B37744, 0 1.5px 0 #fff8 inset;
  transform: translateY(-2px) scale(1.03);
}

/* --------------------
   5. Mobile Navigation
--------------------- */
.mobile-menu-toggle {
  display: none;
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 1002;
  background: var(--color-secondary);
  color: var(--color-primary);
  border: none;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  font-size: 2rem;
  box-shadow: 0 2px 8px #0002;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}
.mobile-menu-toggle:active {
  background: var(--color-retro-yellow);
  transform: scale(0.95);
}
.mobile-menu {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(120deg, var(--color-bg-alt) 80%, var(--color-secondary) 100%);
  z-index: 1001;
  padding: 32px 24px 24px 24px;
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(.77,0,.18,1);
  box-shadow: 4px 0 24px #0002;
  opacity: 0;
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  background: none;
  border: none;
  color: var(--color-primary);
  font-size: 2rem;
  align-self: flex-end;
  margin-bottom: 24px;
  cursor: pointer;
  transition: color 0.2s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: var(--color-retro-red);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}
.mobile-nav a {
  color: var(--color-primary);
  font-size: 1.2rem;
  text-decoration: none;
  padding: 12px 0;
  border-bottom: 1px dashed var(--color-secondary);
  transition: color 0.2s, background 0.2s;
  border-radius: 0;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: var(--color-retro-red);
  background: #fff5;
}

/* --------------------
   6. Hero Section
--------------------- */
.hero {
  background: linear-gradient(120deg, var(--color-bg-alt) 80%, var(--color-secondary) 100%);
  padding: 60px 0 40px 0;
  margin-bottom: 60px;
  border-bottom: 8px double var(--color-secondary);
  box-shadow: 0 4px 24px #D9B37722;
}
.hero .container {
  align-items: center;
  justify-content: center;
}
.hero .content-wrapper {
  align-items: center;
  text-align: center;
  gap: 18px;
}
.hero h1 {
  font-size: 2.4rem;
  color: var(--color-retro-brown);
  text-shadow: 2px 2px 0 #fff8, 0 4px 12px #D9B37744;
}
.hero p {
  font-size: 1.15rem;
  color: var(--color-primary);
  margin-bottom: 1.2em;
}

/* --------------------
   7. Features Section
--------------------- */
.features {
  background: var(--color-bg-alt);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  margin-bottom: 60px;
  padding: 40px 20px;
}
.feature-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
}
.feature-list > div {
  flex: 1 1 220px;
  min-width: 220px;
  background: #fff;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 24px 18px;
  margin-bottom: 20px;
  border: 2px solid var(--color-secondary);
  transition: box-shadow 0.2s, transform 0.15s;
  position: relative;
}
.feature-list > div:hover {
  box-shadow: 0 8px 32px #D9B37744, 0 1.5px 0 #fff8 inset;
  transform: translateY(-4px) scale(1.03);
}

/* --------------------
   8. Cards & Grids
--------------------- */
.card-container, .review-cards, .property-cards, .testimonial-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.card, .review-card, .property-card, .testimonial-card {
  background: #fff;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  margin-bottom: 20px;
  padding: 24px 18px;
  flex: 1 1 260px;
  min-width: 260px;
  max-width: 340px;
  position: relative;
  border: 2px solid var(--color-secondary);
  transition: box-shadow 0.2s, transform 0.15s;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.card:hover, .review-card:hover, .property-card:hover, .testimonial-card:hover {
  box-shadow: 0 8px 32px #D9B37744, 0 1.5px 0 #fff8 inset;
  transform: translateY(-4px) scale(1.03);
}
.review-card img, .property-card img, .testimonial-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 12px;
  border: 2px solid var(--color-retro-yellow);
  background: #f7f7f5;
}

/* --------------------
   9. Testimonial Cards
--------------------- */
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  padding: 20px;
  background: linear-gradient(90deg, #fff 80%, #f2e9da 100%);
  border-left: 8px solid var(--color-retro-green);
  color: var(--color-dark);
  font-size: 1rem;
  margin-bottom: 20px;
  box-shadow: var(--shadow-card);
  border-radius: var(--radius-card);
  min-width: 260px;
  max-width: 340px;
}
.testimonial-card p {
  color: var(--color-dark);
  font-size: 1.05rem;
  margin-bottom: 0.5em;
}
.testimonial-card span {
  color: var(--color-retro-brown);
  font-size: 0.95rem;
  font-family: var(--font-display);
  font-style: italic;
}
.testimonial-card img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--color-retro-green);
  margin-bottom: 8px;
}

/* Testimonial slider (index preview) */
.testimonial-slider {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}

/* --------------------
   10. About & Text-Image Section
--------------------- */
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.text-image-section > div {
  flex: 1 1 320px;
  min-width: 260px;
}

/* --------------------
   11. Image Gallery
--------------------- */
.image-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: flex-start;
  margin-bottom: 20px;
}
.image-gallery img {
  width: 180px;
  height: 120px;
  object-fit: cover;
  border-radius: 12px;
  border: 2px solid var(--color-retro-blue);
  background: #f7f7f5;
  box-shadow: 0 2px 8px #0001;
  transition: transform 0.15s, box-shadow 0.2s;
}
.image-gallery img:hover {
  transform: scale(1.05) rotate(-2deg);
  box-shadow: 0 8px 24px #6A8D9244;
}

/* --------------------
   12. Forms & Filters
--------------------- */
.review-filter, .property-search {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  margin-bottom: 24px;
  background: #fff;
  border-radius: 12px;
  padding: 18px 12px;
  box-shadow: 0 2px 8px #0001;
}
.review-filter label, .property-search label {
  font-family: var(--font-display);
  color: var(--color-retro-brown);
  margin-right: 8px;
  font-size: 1rem;
}
.review-filter select, .property-search select {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 6px 18px 6px 8px;
  border-radius: 8px;
  border: 1.5px solid var(--color-secondary);
  background: #f7f7f5;
  color: var(--color-primary);
  margin-right: 12px;
  transition: border 0.2s;
}
.review-filter select:focus, .property-search select:focus {
  border: 1.5px solid var(--color-retro-red);
  outline: none;
}

/* --------------------
   13. Footer
--------------------- */
footer {
  background: var(--color-primary);
  color: var(--color-light);
  padding: 40px 0 24px 0;
  border-top: 8px double var(--color-secondary);
  box-shadow: 0 -2px 12px #0001;
}
footer .container {
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 12px;
}
.footer-nav a {
  color: var(--color-secondary);
  text-decoration: none;
  font-size: 1rem;
  transition: color 0.2s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: var(--color-retro-yellow);
}
.footer-contact {
  font-size: 0.98rem;
  color: var(--color-light);
  margin-bottom: 8px;
}
.footer-contact a {
  color: var(--color-retro-yellow);
  text-decoration: underline;
}
footer small {
  color: #fff9;
  font-size: 0.92rem;
}

/* --------------------
   14. Cookie Consent Banner
--------------------- */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: linear-gradient(90deg, var(--color-bg-alt) 80%, var(--color-secondary) 100%);
  color: var(--color-primary);
  box-shadow: 0 -2px 16px #0002;
  z-index: 2000;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 24px;
  font-size: 1rem;
  animation: cookieBannerIn 0.6s cubic-bezier(.77,0,.18,1);
}
@keyframes cookieBannerIn {
  from { transform: translateY(100%); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
.cookie-banner .cookie-actions {
  display: flex;
  flex-direction: row;
  gap: 16px;
}
.cookie-banner button {
  font-family: var(--font-display);
  font-size: 1rem;
  border: none;
  border-radius: var(--radius-btn);
  padding: 8px 22px;
  margin: 0;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  box-shadow: 0 1.5px 0 #fff8 inset;
}
.cookie-banner .accept {
  background: var(--color-secondary);
  color: var(--color-primary);
}
.cookie-banner .accept:hover {
  background: var(--color-retro-yellow);
  color: var(--color-retro-red);
}
.cookie-banner .reject {
  background: var(--color-retro-red);
  color: #fff;
}
.cookie-banner .reject:hover {
  background: #a9442b;
}
.cookie-banner .settings {
  background: #fff;
  color: var(--color-primary);
  border: 1.5px solid var(--color-secondary);
}
.cookie-banner .settings:hover {
  background: var(--color-bg-alt);
}

/* Cookie Modal */
.cookie-modal-overlay {
  position: fixed;
  left: 0; right: 0; top: 0; bottom: 0;
  background: rgba(32, 64, 96, 0.25);
  z-index: 2100;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: cookieModalFadeIn 0.4s cubic-bezier(.77,0,.18,1);
}
@keyframes cookieModalFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.cookie-modal {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 8px 32px #20406033;
  padding: 32px 28px 24px 28px;
  min-width: 320px;
  max-width: 95vw;
  color: var(--color-primary);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  animation: cookieModalIn 0.5s cubic-bezier(.77,0,.18,1);
}
@keyframes cookieModalIn {
  from { transform: translateY(60px) scale(0.95); opacity: 0; }
  to   { transform: translateY(0) scale(1); opacity: 1; }
}
.cookie-modal h2 {
  font-size: 1.2rem;
  color: var(--color-retro-brown);
  margin-bottom: 0.5em;
}
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.cookie-modal .cookie-category label {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--color-retro-green);
}
.cookie-modal .cookie-category input[type="checkbox"] {
  accent-color: var(--color-secondary);
  width: 20px;
  height: 20px;
}
.cookie-modal .cookie-category .always-on {
  color: var(--color-retro-red);
  font-size: 0.95rem;
  font-style: italic;
  margin-left: 8px;
}
.cookie-modal .cookie-modal-actions {
  display: flex;
  flex-direction: row;
  gap: 16px;
  margin-top: 12px;
}
.cookie-modal .close-modal {
  position: absolute;
  top: 12px;
  right: 12px;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--color-retro-red);
  cursor: pointer;
  transition: color 0.2s;
}
.cookie-modal .close-modal:hover {
  color: #a9442b;
}

/* --------------------
   15. Miscellaneous
--------------------- */
.map-embed img {
  width: 100%;
  max-width: 480px;
  border-radius: 12px;
  border: 2px solid var(--color-retro-blue);
  box-shadow: 0 2px 8px #0001;
  margin-top: 12px;
}
address {
  font-style: normal;
  color: var(--color-retro-brown);
  font-size: 0.98rem;
}

/* FAQ (dl) */
dl {
  margin: 0 0 1.5em 0;
}
dt {
  font-family: var(--font-display);
  color: var(--color-retro-red);
  font-weight: 700;
  margin-bottom: 0.3em;
}
dd {
  margin: 0 0 1em 1.5em;
  color: var(--color-primary);
}

/* Links */
a {
  color: var(--color-retro-red);
  text-decoration: underline;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: var(--color-retro-green);
}

/* Lists */
ul, ol {
  padding-left: 1.5em;
  margin-bottom: 1em;
}
li {
  margin-bottom: 0.5em;
}

/* --------------------
   16. Responsive Design
--------------------- */
@media (max-width: 1024px) {
  .container {
    max-width: 96vw;
    padding: 0 8px;
  }
  .main-nav {
    gap: 16px;
  }
  .footer-nav {
    gap: 16px;
  }
}
@media (max-width: 900px) {
  .feature-list, .card-container, .review-cards, .property-cards, .testimonial-cards, .testimonial-slider, .image-gallery {
    gap: 16px;
  }
  .feature-list > div, .card, .review-card, .property-card, .testimonial-card {
    min-width: 180px;
    max-width: 100%;
  }
}
@media (max-width: 768px) {
  header .container {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px;
    min-height: 56px;
    padding: 0 8px;
  }
  .main-nav {
    display: none;
  }
  .cta-button {
    margin-left: 0;
    padding: 10px 18px;
    font-size: 1rem;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .hero {
    padding: 36px 0 24px 0;
  }
  .hero h1 {
    font-size: 1.5rem;
  }
  .section {
    margin-bottom: 36px;
    padding: 24px 8px;
  }
  .feature-list, .card-container, .review-cards, .property-cards, .testimonial-cards, .testimonial-slider, .image-gallery {
    flex-direction: column;
    gap: 12px;
  }
  .feature-list > div, .card, .review-card, .property-card, .testimonial-card {
    min-width: 0;
    max-width: 100%;
    padding: 16px 8px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
  }
  .image-gallery img {
    width: 100%;
    max-width: 100%;
    height: 120px;
  }
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 8px;
    font-size: 0.98rem;
  }
  .cookie-banner .cookie-actions {
    gap: 8px;
  }
  .cookie-modal {
    padding: 18px 8px 12px 8px;
    min-width: 0;
    max-width: 98vw;
  }
}
@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.1rem;
  }
  .footer-contact, .footer-nav {
    font-size: 0.92rem;
  }
  .cookie-banner {
    font-size: 0.92rem;
  }
}

/* --------------------
   17. Micro-interactions
--------------------- */
.card, .review-card, .property-card, .testimonial-card, .feature-list > div {
  transition: box-shadow 0.2s, transform 0.15s;
}
.card:hover, .review-card:hover, .property-card:hover, .testimonial-card:hover, .feature-list > div:hover {
  box-shadow: 0 8px 32px #D9B37744, 0 1.5px 0 #fff8 inset;
  transform: translateY(-4px) scale(1.03);
}
.cta-button {
  transition: background 0.2s, box-shadow 0.2s, transform 0.15s;
}
.cta-button:active {
  transform: scale(0.97);
}

/* --------------------
   18. Utility Classes
--------------------- */
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.mb-20 { margin-bottom: 20px !important; }
.mb-40 { margin-bottom: 40px !important; }

/* --------------------
   19. Hide/Show Utility
--------------------- */
.hide { display: none !important; }

/* --------------------
   20. Accessibility
--------------------- */
:focus {
  outline: 2px dashed var(--color-retro-red);
  outline-offset: 2px;
}

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