/* =========================================
  CSS RESET & NORMALIZE (minimal, mobile-first)
========================================= */
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 {
  scroll-behavior: smooth;
}
body {
  background: #F2ECD8;
  color: #35312d;
  font-family: 'Roboto', 'Noto Sans JP', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  min-height: 100vh;
  word-break: break-word;
  -webkit-font-smoothing: antialiased;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: #d97e56;
  text-decoration: none;
  transition: color 0.15s;
}
a:hover, a:focus {
  color: #1a365d;
  outline: none;
}
ul, ol {
  padding-left: 1.4em;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Noto Sans JP', 'Roboto', Arial, sans-serif;
  font-weight: bold;
  color: #2a281f;
  margin-bottom: 16px;
  letter-spacing: 0.02em;
}
h1 {
  font-size: 2.2rem;
  line-height: 1.18;
  margin-bottom: 18px;
  font-family: 'Noto Sans JP', serif;
  letter-spacing: 0.06em;
}
h2 {
  font-size: 1.7rem;
  margin-bottom: 16px;
  font-family: 'Noto Sans JP', serif;
  letter-spacing: 0.04em;
}
h3 {
  font-size: 1.2rem;
  margin-bottom: 12px;
  font-family: 'Noto Sans JP', serif;
}
h4, h5, h6 {
  font-size: 1rem;
  margin-bottom: 10px;
}
p {
  margin-bottom: 14px;
}
strong {
  font-weight: 700;
}

/* ========= Vintage Retro Variables ========= */
:root {
  --brand-primary: #1a365d;
  --brand-secondary: #36a2b6;
  --brand-accent: #f5f7fa;
  --retro-bg: #F5EEE0;
  --retro-cream: #FAF3DD;
  --retro-orange: #F6B860;
  --retro-brown: #7C5C38;
  --retro-teal: #4D858B;
  --retro-red: #C95B3E;
  --retro-olive: #B5A677;
  --retro-green: #5D8057;
  --retro-border: #C5BAA8;
  --text-main: #35312d;
  --text-dark: #1a1a1a;
  --text-light: #fff;
}

/* ========= Layout Containers & Utility ========= */
.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 16px;
  width: 100%;
  box-sizing: border-box;
}
.content-wrapper {
  width: 100%;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--retro-bg);
  border-radius: 22px;
  box-shadow: 0 2px 32px rgba(124, 92, 56, 0.06);
}
.section:last-child {
  margin-bottom: 0;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--retro-cream);
  border: 2px solid var(--retro-border);
  border-radius: 18px;
  box-shadow: 0 3px 16px rgba(124, 92, 56, 0.08);
  margin-bottom: 20px;
  position: relative;
  padding: 24px 20px;
  min-width: 260px;
  transition: box-shadow 0.22s;
}
.card:hover {
  box-shadow: 0 8px 32px rgba(201, 91, 62, 0.10);
}
.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: #f5f7fa;
  border: 2px dashed var(--retro-brown);
  border-radius: 14px;
  margin-bottom: 24px;
  box-shadow: 0 2px 16px rgba(125, 92, 56, 0.07);
  min-height: 80px;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.testimonial-card:hover {
  border-color: var(--retro-orange);
  box-shadow: 0 6px 32px rgba(246, 184, 96, 0.13);
}
.testimonial-content p {
  color: var(--text-dark);
  font-size: 1.05rem;
  font-family: 'Noto Sans JP', serif;
  margin-bottom: 0;
}
.testimonial-author {
  font-size: 0.95rem;
  color: var(--retro-teal);
  font-family: 'Roboto', Arial, sans-serif;
  font-style: italic;
  margin-left: 12px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* ===== Hero Section ===== */
.hero {
  background: repeating-linear-gradient(-45deg, var(--retro-bg), var(--retro-bg) 40px, var(--retro-cream) 60px, var(--retro-bg) 90px);
  border-bottom: 4px solid var(--retro-orange);
  padding: 36px 0 32px 0;
}
.hero .content-wrapper {
  text-align: center;
  padding: 0 10px;
}
.hero h1 {
  font-size: 2.4rem;
  line-height: 1.14;
  color: var(--retro-red);
  text-shadow: 1px 2px 0 #fff6e4, 0 1px 10px #f6b86033;
  font-family: 'Noto Sans JP', serif;
}
.hero p {
  color: var(--retro-brown);
  font-size: 1.15rem;
  margin-bottom: 20px;
}

/* ===== Main Navigation ===== */
header {
  background: var(--retro-cream);
  border-bottom: 3px solid var(--retro-orange);
  box-shadow: 0 3px 18px #dfa45c1a;
  z-index: 20;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  gap: 20px;
}
.logo {
  display: flex;
  align-items: center;
  margin-right: 18px;
}
header .main-nav {
  display: flex;
  gap: 24px;
  align-items: center;
}
.main-nav a {
  font-family: 'Noto Sans JP', serif;
  color: var(--brand-primary);
  font-size: 1rem;
  letter-spacing: 0.03em;
  background: none;
  border: none;
  border-radius: 10px;
  padding: 6px 14px;
  transition: background 0.12s, color 0.11s;
  position: relative;
}
.main-nav a:hover,
.main-nav a:focus {
  background: var(--retro-orange);
  color: var(--retro-brown);
}
.cta-btn {
  display: inline-block;
  background: var(--retro-brown);
  color: var(--retro-cream);
  border: none;
  padding: 12px 32px;
  font-family: 'Noto Sans JP', serif;
  font-size: 1.18rem;
  letter-spacing: 0.06em;
  border-radius: 34px;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 2px 10px #b5a67729;
  transition: background 0.22s, transform 0.13s, color 0.22s;
  margin-left: 18px;
}
.cta-btn:hover, .cta-btn:focus {
  background: var(--retro-orange);
  color: var(--retro-brown);
  transform: translateY(-2px) scale(1.04) rotate(-1deg);
}

/* ====== Feature Cards ====== */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.feature-grid > div {
  background: #fff9e3;
  border-radius: 15px;
  border: 2px solid var(--retro-border);
  box-shadow: 0 2px 14px #c95b3e17;
  padding: 22px 16px;
  min-width: 220px;
  flex: 1 1 220px;
  transition: border 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 10px;
}
.feature-grid > div:hover {
  border-color: var(--retro-orange);
  box-shadow: 0 6px 30px #f6b86021;
}
.feature-grid img {
  width: 46px;
  height: 46px;
}
.feature-grid h3 {
  color: var(--retro-teal);
  font-size: 1.18rem;
}

/* ========= Blog Summaries ========= */
.blog-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 24px;
}
.blog-post-summary {
  background: #fafdff;
  border: 2px solid var(--retro-border);
  border-radius: 16px;
  box-shadow: 0 2px 12px #1a365d0d;
  padding: 20px 16px 18px 16px;
  flex: 1 1 280px;
  min-width: 220px;
  transition: box-shadow 0.22s, border 0.22s;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 12px;
  position: relative;
}
.blog-post-summary:hover {
  border-color: var(--retro-orange);
  box-shadow: 0 6px 24px #dfad7a27;
}
.blog-post-summary h3 {
  font-size: 1.19rem;
  color: var(--retro-red);
}
.blog-category {
  background: var(--retro-orange);
  color: var(--retro-brown);
  font-size: 0.92rem;
  display: inline-block;
  padding: 2px 12px;
  border-radius: 10px;
  font-family: 'Roboto', Arial, sans-serif;
}
.blog-controls {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 18px;
}
.blog-categories {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 3px;
  flex-wrap: wrap;
}
.blog-categories a {
  background: #ede9dc;
  border-radius: 9px;
  padding: 2px 10px;
  font-size: 0.98rem;
  color: var(--retro-teal);
  transition: background 0.1s, color 0.1s;
}
.blog-categories a:hover {
  background: var(--retro-orange);
  color: var(--retro-brown);
}

input[type=text],
input[type=email],
input[type=tel],
textarea {
  border: 2px solid var(--retro-border);
  padding: 10px 12px;
  border-radius: 7px;
  font-size: 1rem;
  background: #fffef8;
  margin-bottom: 16px;
  color: var(--brand-primary);
  font-family: inherit;
}
input[type=text]:focus,
input[type=email]:focus,
textarea:focus {
  outline: 2px solid var(--retro-teal);
  border-color: var(--retro-teal);
}

/* ========= CTA (Call to Action) Section ========= */
.cta {
  background: var(--retro-orange);
  padding: 36px 0;
}
.cta h2 {
  color: var(--retro-brown);
  font-size: 1.55rem;
}
.cta .cta-btn {
  margin-top: 18px;
  background: var(--retro-brown);
  color: #fff9e3;
  box-shadow: 0 2px 18px #7C5C381a;
  font-size: 1.18rem;
}
.cta .cta-btn:hover {
  background: var(--retro-red);
  color: #fff;
}

/* ========= Footer ========= */
footer {
  background: var(--retro-cream);
  border-top: 3px solid var(--retro-brown);
  padding: 30px 0 10px 0;
  font-size: 0.99rem;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: flex-start;
  justify-content: space-between;
}
.footer-brand {
  flex: 1 1 120px;
  display: flex;
  align-items: center;
}
.footer-nav {
  flex: 2 1 280px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-nav a {
  color: var(--retro-brown);
  font-family: 'Noto Sans JP', serif;
  font-size: 1.03rem;
  padding: 4px 8px;
  border-radius: 6px;
  transition: color 0.13s, background 0.13s;
}
.footer-nav a:hover {
  background: var(--retro-orange);
  color: #fff;
}
.footer-contact {
  flex: 2 1 200px;
  color: var(--retro-teal);
  font-size: 0.95rem;
}
.footer-contact a {
  color: var(--retro-red);
  word-break: break-all;
}
.footer-copy {
  text-align: center;
  color: var(--brand-primary);
  font-size: 0.91rem;
  padding: 16px 0 0 0;
}

/* ========= Contact Info ========= */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}
.contact-info img {
  width: 18px;
  height: 18px;
  vertical-align: middle;
  margin-right: 8px;
}

/* ========= Case Study ========= */
.case-study {
  background: #faf3dd;
  border: 2px solid var(--retro-border);
  border-radius: 13px;
  box-shadow: 0 2px 8px #d97e5611;
  padding: 16px 16px 12px 16px;
  margin-bottom: 22px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.case-title {
  color: var(--retro-brown);
  font-weight: 700;
  font-size: 1.08rem;
}
.case-overview {
  color: var(--retro-teal);
  font-size: 0.98rem;
}
.case-outcome {
  color: var(--retro-green);
  font-size: 0.97rem;
}

/* ========= Modal & Overlay Base ========= */
.modal-overlay {
  display: none;
  position: fixed;
  z-index: 98;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(36,29,18,0.35);
  align-items: center;
  justify-content: center;
  transition: opacity 0.25s;
}
.modal-overlay.active {
  display: flex;
  opacity: 1;
}
.modal {
  background: var(--retro-bg);
  border-radius: 18px;
  padding: 28px 18px 21px 18px;
  box-shadow: 0 20px 60px #7C5C3840;
  max-width: 420px;
  min-width: 240px;
  width: 90%;
  margin: 10px auto;
  position: relative;
  color: var(--text-main);
  font-size: 1rem;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 18px;
}
.cookie-category label {
  display: flex;
  align-items: center;
  gap: 11px;
}
.cookie-category input[type=checkbox]:disabled + span {
  color: #aaa;
  font-style: italic;
}
.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: transparent;
  border: none;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  color: var(--retro-brown);
}

/* ========= Cookie Consent Banner ========= */
#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  background: var(--retro-cream);
  color: var(--retro-brown);
  font-family: 'Noto Sans JP', serif;
  box-shadow: 0 -4px 30px #b5a6772d;
  z-index: 99;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px 16px 16px 16px;
  flex-wrap: wrap;
  transition: transform 0.35s cubic-bezier(0.41,0.78,0.39,1.2);
}
#cookie-banner.hide {
  transform: translateY(130%);
}
#cookie-banner .cookie-text {
  flex: 1 1 170px;
  font-size: 1.08rem;
  margin-bottom: 10px;
}
#cookie-banner .cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
#cookie-banner button {
  font-family: 'Noto Sans JP', serif;
  border: none;
  border-radius: 11px;
  padding: 8px 18px;
  font-size: 1.04rem;
  cursor: pointer;
  margin-right: 2px;
  box-shadow: 0 1px 6px #b5a67716;
  transition: background 0.18s, color 0.18s, transform 0.18s;
}
#cookie-banner .accept-all {
  background: var(--retro-orange);
  color: var(--retro-brown);
}
#cookie-banner .accept-all:hover {
  background: var(--retro-brown);
  color: #fff9e3;
  transform: translateY(-2px) scale(1.03);
}
#cookie-banner .reject-all {
  background: var(--retro-brown);
  color: #fff9e3;
}
#cookie-banner .reject-all:hover {
  background: var(--retro-red);
}
#cookie-banner .cookie-settings-btn {
  background: var(--retro-border);
  color: var(--retro-teal);
}
#cookie-banner .cookie-settings-btn:hover {
  background: var(--retro-orange);
  color: var(--retro-brown);
}

/* ========= Mobile Menu ========= */
.mobile-menu-toggle {
  display: none;
  position: fixed;
  top: 19px;
  right: 20px;
  width: 44px;
  height: 44px;
  background: var(--retro-orange);
  border: none;
  border-radius: 11px;
  color: var(--retro-brown);
  font-size: 2.1rem;
  z-index: 111;
  align-items: center;
  justify-content: center;
  transition: background 0.14s, color 0.11s, transform 0.16s;
  box-shadow: 0 1px 8px #dfa45c25;
  cursor: pointer;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: var(--retro-brown);
  color: var(--retro-cream);
  transform: scale(1.08);
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: var(--retro-bg);
  z-index: 105;
  transform: translateX(110%);
  transition: transform 0.33s cubic-bezier(.77,.2,.2,1.01);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding: 28px 30px 10px 30px;
  box-shadow: 0 8px 50px #1a365d23;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  border: none;
  font-size: 2.0rem;
  color: var(--retro-teal);
  align-self: flex-end;
  margin-bottom: 20px;
  cursor: pointer;
  transition: color 0.13s, transform 0.16s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  color: var(--retro-red);
  transform: scale(1.12);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
  align-items: flex-start;
  margin-top: 20px;
}
.mobile-nav a {
  font-family: 'Noto Sans JP', serif;
  color: var(--retro-brown);
  font-size: 1.22rem;
  padding: 6px 2px;
  border-radius: 8px;
  transition: background 0.12s, color 0.12s;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  background: var(--retro-orange);
  color: var(--retro-cream);
}

/* ========= Text Section ========= */
.text-section {
  background: none;
  border-radius: 11px;
  color: var(--retro-brown);
  margin-bottom: 18px;
}
.text-section ul,
ul {
  margin-bottom: 18px;
}.text-section li, li {
  margin-bottom: 6px;
  font-size: 1.01rem;
}

ol {
  margin-bottom: 17px;
}

/* ========= Responsive Design ========= */
@media (max-width: 992px) {
  .container {
    max-width: 920px;
  }
  .footer-nav, .footer-contact {
    flex: 100%;
  }
}
@media (max-width: 768px) {
  html,
  body {
    font-size: 15px;
  }
  .container {
    max-width: 98vw;
    padding: 0 7px;
  }
  header .container { flex-direction: column; gap: 11px; }
  header .main-nav, .cta-btn {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
  .hero .content-wrapper {
    padding: 0 5px;
  }
  .feature-grid, .blog-list, .card-container, .content-grid {
    flex-direction: column;
    gap: 18px;
  }
  .footer-nav, .footer-contact, .footer-brand {
    flex: 1 1 100%;
    justify-content: flex-start;
  }
  footer .container {
    flex-direction: column;
    gap: 14px;
  }
  .testimonial-card {
    flex-direction: column;
    gap: 10px;
    padding: 14px;
    min-height: unset;
    text-align: left;
  }
  .section {
    margin-bottom: 44px;
    padding: 22px 6px;
    border-radius: 12px;
  }
  .card {
    min-width: unset;
  }
  .text-image-section {
    flex-direction: column;
    gap: 11px;
  }
}
@media (max-width: 480px) {
  h1 {
    font-size: 1.3rem;
  }
  h2 {
    font-size: 1.10rem;
  }
  .hero {
    padding: 12px 0 9px 0;
  }
  .cta {
    padding: 20px 0;
  }
  .testimonial-card {
    font-size: 0.97rem;
    padding: 8px 7px 10px 7px;
  }
  #cookie-banner {
    font-size: 0.98rem;
    padding: 10px 3px 9px 6px;
    gap: 8px;
  }
}

/* ========= Animations ========= */
@media (prefers-reduced-motion: no-preference) {
  .cta-btn, .main-nav a, .blog-categories a,
  .mobile-menu-toggle, .mobile-menu-close, .modal-close,
  .card, .feature-grid > div,
  #cookie-banner button {
    transition: background 0.14s, color 0.13s, transform 0.19s;
  }
}

/* ========= Vintage/Nostalgia Deco Elements ========= */
.section {
  /* diag stripes pattern */
  background:
    repeating-linear-gradient(135deg, #faeed4, #faeed4 22px, #f7e2bd 24px, #faeed4 44px);
}
@media (max-width: 768px) {
  .section { background: #faeed4; }
}

/* == Accent header underline (classic detail) == */
h2:after {
  display: block;
  content: '';
  margin-top: 7px;
  width: 50px;
  height: 3px;
  border-radius: 2px;
  background: var(--retro-orange);
}

/* Retro-style icon highlight (e.g. for cards/icons) */
.feature-grid img,
.contact-info img {
  filter: sepia(0.35) contrast(1.19) hue-rotate(-10deg) drop-shadow(1px 1px 0 #e5c58b);
}

/* ========= Misc Utility ========= */
.hide { display: none !important; }

/* ========= Accessibility ========= */
:focus {
  outline: 2px solid var(--retro-orange);
  outline-offset: 1.5px;
}

/* ========= Print Styles ========= */
@media print {
  header, footer, .mobile-menu, #cookie-banner, .cta { display: none !important; }
}
