/* --- CSS RESET & BASE --- */
html {
  box-sizing: border-box;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  background: #F6F5EF; /* Nature - light organic background */
}
*, *::before, *::after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  font-family: 'Noto Sans JP', Arial, sans-serif;
  color: #223016;
  background: #F6F5EF;
  line-height: 1.7;
  letter-spacing: 0.03em;
  min-height: 100vh;
  font-size: 1rem;
}
a {
  color: #3D6D3B;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #597238;
  outline: none;
}
ul, ol {
  padding-inline-start: 1.3em;
  margin-block: 1.1em;
}
ul ul, ol ul, ul ol, ol ol {
  margin-block: 0.6em;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Noto Serif JP', serif;
  color: #203212;
  margin-bottom: 0.7em;
  line-height: 1.25;
  font-weight: 600;
}
h1 {font-size: 2rem;}
h2 {font-size: 1.6rem;}
h3 {font-size: 1.25rem;}
h4 {font-size: 1.1rem;}
p {
  margin-bottom: 1em;
  color: #37401b;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
button {
  font-family: inherit;
  font-size: 1rem;
}
.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 16px;
}
.content-wrapper {
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
}

/* --- COLOR PALETTE (nature_organic + brand) --- */
:root {
  --color-primary: #1A2235; /* brand primary (deep blue) */
  --color-secondary: #D1B97F; /* brand gold */
  --color-accent: #F7F7F5; /* brand off-white */
  --color-earth: #A8936D; /* organic earthy */
  --color-leaf: #6A8C41; /* organic green accent */
  --color-olive: #AEB67F; /* muted olive */
  --color-forest: #324C23; /* dark forest */
  --color-soil: #E3D9C3; /* background earth tone */
  --color-error: #C86056;
}

/* --- HEADER & NAVIGATION --- */
header {
  background: #FAFAF6;
  border-bottom: 1px solid #E8E5DA;
  padding: 0;
  position: relative;
  z-index: 100;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
  gap: 18px;
}
.logo img {
  height: 48px;
}
.main-nav {
  display: flex;
  gap: 24px;
  align-items: center;
}
.main-nav a {
  color: #324C23;
  font-weight: 500;
  font-size: 1rem;
  padding: 6px 0;
  position: relative;
  transition: color 0.2s;
}
.main-nav a::after {
  content: '';
  display: block;
  height: 2px;
  width: 0;
  background: var(--color-leaf);
  border-radius: 1px;
  transition: width 0.26s;
  margin-top: 2px;
}
.main-nav a:hover::after, .main-nav a:focus::after {
  width: 100%;
}
.main-nav a:hover, .main-nav a:focus {
  color: var(--color-leaf);
}

.cta-btn {
  display: inline-block;
  background: var(--color-leaf);
  color: #fff;
  border-radius: 40px;
  font-size: 1rem;
  font-family: 'Noto Serif JP', serif;
  padding: 11px 28px;
  box-shadow: 0 2px 7px 0 rgba(48, 63, 34, 0.09);
  letter-spacing: 0.02em;
  font-weight: 600;
  border: none;
  transition: background 0.19s, box-shadow 0.19s, color 0.17s;
  margin-left: 14px;
  cursor: pointer;
  outline: none;
}
.cta-btn:hover, .cta-btn:focus {
  background: #486d28;
  color: #fff;
  box-shadow: 0 4px 14px 0 rgba(75, 97, 54, 0.17);
}

/* --- MOBILE MENU BUTTON --- */
.mobile-menu-toggle {
  display: none;
  background: var(--color-leaf);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 2rem;
  cursor: pointer;
  padding: 6px 16px 10px 16px;
  transition: background 0.2s;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: #486d28;
  outline: none;
}

/* --- MOBILE MENU OVERLAY --- */
.mobile-menu {
  position: fixed;
  z-index: 1200;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(222, 233, 217, 0.98);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transform: translateX(-100%);
  transition: transform 0.37s cubic-bezier(0.69,0.1,0.32,1);
  box-shadow: 0 8px 32px 0 rgba(52, 76, 35, 0.09);
  overflow-y: auto;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  border: none;
  font-size: 2.4rem;
  color: var(--color-leaf);
  padding: 25px 20px 6px 20px;
  cursor: pointer;
  align-self: flex-end;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
  width: 100%;
  padding: 24px 28px 0 28px;
}
.mobile-nav a {
  font-family: 'Noto Serif JP', serif;
  color: #203212;
  font-size: 1.25rem;
  font-weight: 500;
  padding: 10px 0 10px 5px;
  border-radius: 8px;
  transition: background 0.18s, color 0.17s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--color-soil);
  color: var(--color-leaf);
}

/* --- HERO & SECTION --- */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  border-radius: 36px;
  background: #FAFAF7;
  box-shadow: 0 2px 10px 0 rgba(168,147,109,0.04);
  position: relative;
}
section {
  margin-bottom: 60px;
  padding: 40px 0;
}

@media (max-width: 768px) {
  .section, section {
    margin-bottom: 34px;
    padding: 28px 0;
    border-radius: 2em;
  }
}

/* --- FLEX SPACING & PATTERNS --- */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #FAF8EF;
  margin-bottom: 20px;
  border-radius: 20px;
  box-shadow: 0 2px 6px 0 rgba(50, 76, 35, 0.08);
  position: relative;
  flex: 1 1 300px;
  min-width: 270px;
  transition: box-shadow 0.2s, transform 0.2s;
  padding: 26px 24px 24px;
  border-left: 7px solid var(--color-leaf);
}
.card:hover { 
  box-shadow: 0 12px 28px 0 rgba(106,140,65,0.13); 
  transform: translateY(-4px) scale(1.01);
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}
.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;
  background: #fff;
  color: #203212;
  padding: 20px 24px 20px 18px;
  border-radius: 30px;
  box-shadow: 0 2px 8px 0 rgba(97,110,54,0.10);
  margin-bottom: 22px;
  border-left: 5px solid var(--color-leaf);
  transition: box-shadow 0.19s;
  min-width: 230px;
}
.testimonial-card:hover {
  box-shadow: 0 6px 20px 0 rgba(168,147,109,0.11);
}
.testimonial-card .client {
  font-family: 'Noto Serif JP', serif;
  font-size: 0.99rem;
  margin-top: 7px;
  color: var(--color-leaf);
  font-weight: 700;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  padding: 17px 12px 18px 18px;
}

/* --- RESPONSIVE FLEX DIRECTION CHANGES --- */
@media (max-width: 768px) {
  .main-nav {
    display: none;
  }
  .cta-btn {
    margin-left: 0;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .container {
    padding-left: 10px;
    padding-right: 10px;
  }
  .text-image-section, .content-grid {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .card-container {
    flex-direction: column;
    gap: 18px;
  }
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 15px;
    gap: 12px;
  }
}

/* --- LISTS/NESTED/SECTION TYPOGRAPHY --- */
ul, ol {
  font-size: 1rem;
  margin-bottom: 1.2em;
}
ul li, ol li {
  margin-bottom: 0.6em;
}
h1, .content-wrapper>h1 { margin-top: 0.2em; font-size: 2.2rem; }
h2, .content-wrapper>h2 { margin-top: 1.8em; font-size: 1.42rem; }
h3, .content-wrapper>h3 { margin-top: 1.5em; font-size: 1.15rem; }

@media (min-width: 992px) {
  h1 { font-size: 2.8rem;}
  h2 { font-size: 2rem;}
  h3 { font-size: 1.28rem;}
}

/* --- BUTTONS, INTERACTIVES --- */
button, .cta-btn {
  cursor: pointer;
  outline: none;
  border: none;
}
button:active, .cta-btn:active {
  transform: scale(0.97);
}

/* --- OL/UL RESET, CUSTOM BULLETS --- */
ul li {
  position: relative;
  padding-left: 1.1em;
}
ul li::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--color-leaf);
  border-radius: 50%;
  margin-right: 8px;
  position: absolute;
  left: 0;
  top: 0.48em;
}
ol li {
  padding-left: 0.4em;
}

/* --- TABLE & FORM --- */
table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 2em;
}
thead {
  background: var(--color-soil);
}
th, td {
  padding: 13px 10px;
  border-bottom: 1px solid #ede9d6;
}

input, select, textarea {
  border-radius: 7px;
  border: 1px solid #adc59c;
  background: #fdfdf7;
  padding: 10px 14px;
  font-size: 1rem;
  width: 100%;
  margin-bottom: 18px;
  font-family: inherit;
  transition: border-color 0.15s;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--color-leaf);
  background: #f6fbe6;
}

/* --- FOOTER --- */
footer {
  background: #203212;
  color: #fff;
  padding: 44px 0 14px 0;
  font-size: 1rem;
}
.footer-nav {
  display: flex;
  gap: 30px;
  margin-bottom: 16px;
  justify-content: center;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
}
.footer-nav li a {
  color: #D1B97F;
  font-family: 'Noto Serif JP', serif;
  font-size: 1rem;
  transition: color 0.17s;
}
.footer-nav li a:hover, .footer-nav li a:focus {
  color: #F7F7F5;
}
.contact-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  justify-content: center;
  align-items: center;
  font-size: 0.98rem;
  margin-bottom: 22px;
  margin-top: 10px;
}
.contact-footer img {
  width: 1.25em; height: 1.25em;
  margin-right: 4px;
  vertical-align: middle;
}
.copyright {
  text-align: center;
  color: #bebaaf;
  font-size: 0.88rem;
  margin-top: 8px;
}

@media (max-width: 720px) {
  .footer-nav, .contact-footer {
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
    margin-left: 12px;
    margin-right: 12px;
  }
  footer {font-size: 0.97rem;}
}

/* --- COOKIE BANNER --- */
.cookie-banner {
  position: fixed;
  z-index: 1700;
  left: 0; right: 0; bottom: 0;
  width: 100%;
  background: #f7f7ef;
  color: #2c3e15;
  border-top: 2px solid #AEB67F;
  box-shadow: 0 -3px 24px rgba(97,110,54,0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 20px 24px 38px;
  gap: 18px;
  font-size: 1rem;
  animation: cookie-banner-fadein 0.5s;
}
@keyframes cookie-banner-fadein {
  from { opacity: 0; transform: translateY(48px); }
  to { opacity: 1; transform: none; }
}
.cookie-banner-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.cookie-banner-btn {
  border-radius: 32px;
  border: none;
  font-family: 'Noto Serif JP', serif;
  padding: 9px 24px;
  font-size: 1rem;
  margin: 0 2px;
  font-weight: bold;
  transition: background 0.15s, color 0.11s, box-shadow 0.17s;
  box-shadow: 0 1px 3px rgba(168,147,109,0.07);
  cursor: pointer;
}
.cookie-banner-btn.accept {
  background: var(--color-leaf);
  color: #fff;
}
.cookie-banner-btn.accept:hover, .cookie-banner-btn.accept:focus {
  background: #486d28;
}
.cookie-banner-btn.reject {
  background: #edf4e7;
  color: #223016;
}
.cookie-banner-btn.reject:hover, .cookie-banner-btn.reject:focus {
  background: #dae7d2;
  color: #516243;
}
.cookie-banner-btn.settings {
  background: #AEB67F;
  color: #fff;
}
.cookie-banner-btn.settings:hover, .cookie-banner-btn.settings:focus {
  background: #83975D;
}
@media (max-width: 600px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 18px 12px 18px 18px;
    font-size: 0.95rem;
    gap: 14px;
  }
}

/* --- COOKIE MODAL --- */
.cookie-modal-overlay {
  position: fixed;
  z-index: 1800;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(50,76,35,0.31);
  display: none;
  align-items: center;
  justify-content: center;
  animation: fadeInModal 0.4s;
}
.cookie-modal-overlay.open {
  display: flex;
}
@keyframes fadeInModal {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal {
  background: #FEFEFB;
  border-radius: 24px;
  box-shadow: 0 8px 32px 0 rgba(174,182,127,0.14);
  min-width: 300px; max-width: 96vw;
  padding: 30px 28px 24px 28px;
  color: #222c13;
  animation: floatUpModal 0.35s;
  position: relative;
}
@keyframes floatUpModal {
  from { transform: translateY(32px); opacity: 0; }
  to { transform: none; opacity: 1; }
}
.cookie-modal-title {
  font-family: 'Noto Serif JP', serif;
  font-weight: 600;
  font-size: 1.13rem;
  margin-bottom: 14px;
}
.cookie-modal-category {
  margin-bottom: 10px;
}
.cookie-modal-category label {
  font-weight: 500;
  margin-left: 6px;
  color: #37401b;
}
.cookie-modal-btns {
  display: flex;
  gap: 12px;
  margin-top: 15px;
}
.cookie-modal-close {
  position: absolute;
  top: 13px;
  right: 20px;
  background: none;
  border: none;
  font-size: 1.67rem;
  color: #6A8C41;
  cursor: pointer;
  padding: 1.5px 9px;
}
@media (max-width: 480px) {
  .cookie-modal {
    padding: 17px 8px 12px 13px;
    min-width: unset;
  }
  .cookie-modal-btns {
    flex-direction: column;
    gap: 8px;
  }
}

/* --- MISC --- */
::-webkit-input-placeholder { color: #BDBFAF; }
::-moz-placeholder { color: #BDBFAF; }
:-ms-input-placeholder { color: #BDBFAF; }
::placeholder { color: #BDBFAF; }

hr {
  border: none;
  border-top: 1.5px solid #d4d7bf;
  margin: 36px 0 30px 0;
}

/* --- ORGANIC DECORATIVE SHAPES --- */
.card::before, .section::before, .testimonial-card::before {
  content: '';
  display: block;
  position: absolute;
  z-index: 0;
  background: var(--color-soil);
  opacity: .25;
  border-radius: 43% 61% 57% 77%/54% 40% 75% 57%;
  pointer-events: none;
}
.card::before {
  width: 60px; height: 44px; left: -30px; top: -18px;
}
.section::before {
  width: 180px; height: 86px; left: -40px; top: -28px;
}
.testimonial-card::before {
  width: 38px; height: 30px; left: -15px; top: -8px;
}

@media (max-width: 768px) {
  .card::before, .section::before, .testimonial-card::before {
    display: none;
  }
}

/* --- ANIMATION & TRANSITION GENERAL --- */
.card, .testimonial-card, .cta-btn, .cookie-banner-btn, .mobile-nav a, .mobile-menu {
  transition: box-shadow 0.20s, background 0.20s, color 0.16s, transform 0.22s;
}
main a:not(.cta-btn), .footer-nav a {
  transition: color 0.13s;
}

/* --- Z-INDEX SAFE AREAS --- */
header, .mobile-menu, .cookie-banner, .cookie-modal-overlay {
  z-index: 1000;
}

/* --- UTILITIES AND HELPERS --- */
.hide { display: none !important; }
.text-center { text-align: center; }
.text-right { text-align: right; }

/* --- CUSTOM SCROLLBARS --- */
::-webkit-scrollbar {
  width: 10px; background: #efece2;
}
::-webkit-scrollbar-thumb {
  background: #cfcab0; border-radius: 10px;
}

/* --- ACCESSIBLE FOCUS STATES --- */
:focus-visible {
  outline: 2px solid var(--color-leaf);
  outline-offset: 2px;
}

/* --- ENSURE MINIMUM CARD/SECTION SPACING --- */
.card, .testimonial-card, .section {
  margin-bottom: 20px;
}

/* --- BRANDING BADGE MOBILE FIX --- */
@media (max-width: 540px) {
  .logo img { height: 36px; }
  h1 { font-size: 1.2rem; }
  h2 { font-size: 1.06rem; }
}
