/* =================================================
   RESET & BASE
================================================= */
html { box-sizing: border-box; }
*, *:before, *:after { box-sizing: inherit; margin: 0; padding: 0; border: 0; outline: 0; font: inherit; font-size: 100%; vertical-align: baseline; background: transparent; }
body, html { width: 100%; min-height: 100%; }
body { font-family: '游ゴシック体', 'Yu Gothic', 'Noto Sans JP', sans-serif; font-size: 16px; line-height: 1.7; color: #2f3b2f; background-color: #fcfaf7; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4, h5, h6 { font-family: 'Noto Sans JP', '游ゴシック体', 'Yu Gothic', sans-serif; color: #294378; font-weight: 700; margin-bottom: 16px; }
h1 { font-size: 2.25rem; line-height: 1.1; margin-bottom: 24px; }
h2 { font-size: 1.5rem; line-height: 1.25; margin-bottom: 20px; }
h3 { font-size: 1.18rem; margin-bottom: 12px; color: #397157; }
h4, h5, h6 { color: #397157; }
p, ul, ol, li, a { color: #334025; }
a { color: #397157; text-decoration: none; transition: color 0.2s; }
a:hover, a:focus { color: #5BAAAF; }
ul, ol { margin-left: 24px; margin-bottom: 16px; }
li { margin-bottom: 8px; }
strong, b { font-weight: bold; }

/* =================================================
   COLORS & THEME
================================================= */
:root {
  --primary: #294378;
  --secondary: #5BAAAF;
  --accent: #FFF9F4;
  --earth-brown: #7c6d55;
  --earth-green: #397157;
  --nature-bg: #F5F3EF;
  --nature-bg-dark: #E9E5DC;
  --nature-white: #fcfaf7;
  --shadow: 0 4px 20px 0 rgba(55,67,50,0.08);
  --radius-main: 18px;
  --radius-card: 15px;
  --radius-pill: 999px;
  --transition: 0.24s cubic-bezier(.33,.98,.52,.99);
}

/* =================================================
   LAYOUT UTILITIES & CONTAINERS
================================================= */
.container {
  width: 100%;
  max-width: 1070px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--nature-bg);
  border-radius: var(--radius-main);
  box-shadow: var(--shadow);
}

@media (max-width: 768px) {
  .section {
    margin-bottom: 32px;
    padding: 24px 8px;
    border-radius: 12px;
  }
}

/* =================================================
   FLEXBOX PATTERNS (NO GRID!)
================================================= */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 24px;
}
.card {
  background: var(--accent);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow);
  padding: 28px 24px;
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 220px;
  flex: 1 1 260px;
}
.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; align-items: stretch; gap: 18px; }
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  background: #fff;
  border-radius: var(--radius-card);
  box-shadow: 0 2px 8px 0 rgba(39, 53, 27, 0.085);
  margin-bottom: 20px;
  min-width: 220px;
}
.testimonial-slider {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: var(--nature-white);
  border-radius: var(--radius-card);
  box-shadow: 0 2px 10px 0 rgba(94, 117, 86, 0.06);
  padding: 20px 18px;
  min-width: 180px;
  flex: 1 1 220px;
  margin-bottom: 20px;
}
.feature-item img {
  width: 40px; height: 40px; margin-bottom: 8px;
}
.feature-grid, .method-grid, .strategy-cards, .service-tiles, .service-list-grid, .team-leaders {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 12px;
}
.team-leader {
  background: var(--accent);
  border-radius: var(--radius-card);
  box-shadow: 0 2px 10px 0 rgba(44,53,33,0.06);
  padding: 24px 18px;
  margin-bottom: 20px;
  flex: 1 1 250px;
  min-width: 220px;
}
.strategy-card {
  background: #fff;
  border-radius: var(--radius-card);
  box-shadow: 0 2px 10px 0 rgba(72, 105, 71, 0.07);
  padding: 22px 16px 20px 16px;
  flex: 1 1 220px;
  margin-bottom: 20px;
}

@media (max-width: 880px) {
  .feature-grid, .card-container, .method-grid, .strategy-cards, .service-tiles, .service-list-grid, .team-leaders {
    flex-direction: column;
    gap: 16px;
  }
}

/* Prevent card overlap */
.case-study-snippets ul,
.industry-results ul,
.main-benefits,
.key-stats,
.success-metrics,
.application-examples ul {
  margin-left: 22px;
  margin-bottom: 14px;
}

/* =================================================
   HEADER & NAVIGATION
================================================= */
header {
  background: linear-gradient(90deg, #E9E5DC 0%, #fcfaf7 100%);
  border-bottom: 1.5px solid #f0eee8;
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 99;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 66px;
  position: relative;
  gap: 14px;
  padding-top: 10px;
  padding-bottom: 10px;
}
header nav {
  display: flex;
  gap: 18px;
  align-items: center;
}
header nav a {
  font-size: 1rem;
  font-family: 'Noto Sans JP', '游ゴシック体', sans-serif;
  color: var(--primary);
  border-radius: 8px;
  padding: 6px 13px;
  transition: background 0.2s, color 0.2s;
}
header nav a:hover, header nav a:focus {
  background: var(--secondary);
  color: #fff;
}
header img[alt="ビズストラテジー研究所"] {
  height: 38px; min-width: 130px;
  margin-right: 10px;
}
.cta-btn {
  background: var(--earth-green);
  color: #fff;
  border-radius: var(--radius-pill);
  padding: 10px 32px;
  font-weight: bold;
  font-size: 1.07rem;
  box-shadow: 0 3px 20px 0 rgba(54, 127, 86, .13);
  transition: background var(--transition), box-shadow var(--transition);
  margin-left: 20px;
  display: inline-block;
}
.cta-btn:hover, .cta-btn:focus {
  background: var(--secondary);
  color: #fff;
  box-shadow: 0 5px 20px 0 rgba(55,185,134,.17);
}

/* Mobile menu button */
.mobile-menu-toggle {
  display: none;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(30,40,19,0.06);
  font-size: 1.75rem;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  color: var(--primary);
  cursor: pointer;
  margin-left: 6px;
  z-index: 120;
  transition: background .19s;
}
.mobile-menu-toggle:active, .mobile-menu-toggle:focus {
  background: var(--earth-green);
  color: #fff;
}

/* Mobile nav */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(249, 247, 240, 0.98);
  z-index: 201;
  transform: translateX(-100%);
  transition: transform 0.24s cubic-bezier(.77,.2,.3,1);
  display: flex;
  flex-direction: column;
  padding-top: 26px;
  padding-bottom: 30px;
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0);
  pointer-events: all;
}
.mobile-menu-close {
  position: absolute;
  right: 22px; top: 18px;
  background: none;
  font-size: 2.1rem;
  border-radius: 8px;
  color: var(--primary);
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  z-index: 202;
  transition: background 0.16s;
}
.mobile-menu-close:active, .mobile-menu-close:focus {
  background: var(--earth-green);
  color: #fff;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin: 68px 0 0 30px;
}
.mobile-nav a {
  font-size: 1.2rem;
  color: var(--earth-green);
  padding: 11px 6px 11px 0;
  border-radius: 9px;
  font-family: 'Noto Sans JP', '游ゴシック体', sans-serif;
  font-weight: 500;
  transition: background .17s, color .18s;
  min-width: 140px;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: #fff;
  background: var(--secondary);
  padding-left: 7px;
}
@media (max-width: 1024px) {
  header nav, .cta-btn {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: flex; /* show mobile toggle */
  }
}
@media (min-width: 1025px) {
  .mobile-menu { display: none !important; }
}

/* =================================================
   HERO SECTIONS
================================================= */
.hero, .about-hero, .service-hero, .methods-hero, .strategies-hero, .results-hero, .contact-hero, .thankyou-hero {
  background: linear-gradient(110deg, #F5F3EF 60%, #c8d7ca 100%);
  min-height: 340px;
  display: flex;
  align-items: center;
  padding: 44px 0 24px 0;
  border-radius: 0 0 40px 40px;
  box-shadow: 0 2px 16px rgba(87,100,84,.04);
}
.hero h1, .about-hero h1, .service-hero h1, .methods-hero h1, .strategies-hero h1, .results-hero h1, .contact-hero h1, .thankyou-hero h1 {
  font-size: 2.35rem;
  color: var(--earth-green);
  margin-bottom: 12px;
  letter-spacing: 1px;
}
.hero p, .about-hero p, .service-hero p, .methods-hero p, .strategies-hero p, .results-hero p, .contact-hero p, .thankyou-hero p {
  color: #44683c;
  font-size: 1.08rem;
}

@media (max-width: 768px) {
  .hero, .about-hero, .service-hero, .methods-hero, .strategies-hero, .results-hero, .contact-hero, .thankyou-hero {
    min-height: 200px;
    padding: 28px 0 8px 0;
    border-radius: 0 0 18px 18px;
  }
  .hero h1, .about-hero h1, .service-hero h1, .methods-hero h1, .strategies-hero h1, .results-hero h1, .contact-hero h1, .thankyou-hero h1 {
    font-size: 1.29rem;
    margin-bottom: 8px;
  }
}

/* =================================================
   FEATURE ITEMS, CARDS, SERVICES
================================================= */
.service-tiles, .service-list-grid, .method-grid, .strategy-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.service-item, .method-item {
  background: var(--accent);
  border-radius: var(--radius-card);
  box-shadow: 0 2px 8px 0 rgba(45,93,49,0.07);
  padding: 22px 18px 18px 18px;
  flex: 1 1 220px;
  min-width: 170px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  transition: box-shadow 0.19s, transform 0.14s;
}
.service-item:hover, .service-item:focus, .method-item:hover, .strategy-card:hover {
  box-shadow: 0 8px 24px 0 rgba(35, 73, 34, 0.14);
  transform: translateY(-4px) scale(1.022);
}
.service-item img, .method-item img, .strategy-card img {
  width: 38px; height: 38px;
  margin-bottom: 8px;
  border-radius: 50%;
  background: #f3eee6;
  padding: 5px;
  box-shadow:0 2px 6px rgba(62,76,33,.06);
}

/* =================================================
   TESTIMONIALS & SUCCESS
================================================= */
.testimonials, .success-stories, .client-voices {
  background: var(--nature-bg-dark);
  border-radius: var(--radius-main);
}
.testimonial-card p {
  font-size: 1.08rem;
  color: #2a3119;
  margin-bottom: 6px;
}
.testimonial-card span {
  font-size: 0.97rem;
  color: var(--earth-brown);
  font-weight: 500;
  letter-spacing: 0.5px;
}
/* Maintain contrast: ensure dark on light */
.testimonial-card {
  background: #fff;
  color: #294220;
  box-shadow: 0 2px 8px 0 rgba(41,67,40,0.07);
}

/* =================================================
   INFO BOXES, STATS, LISTS, SNIPPETS
================================================= */
.text-section {
  background: var(--accent);
  padding: 20px 16px;
  border-radius: 13px;
  margin-bottom: 18px;
}
.key-stats, .main-benefits, .success-metrics {
  list-style: disc;
  color: var(--earth-green);
  font-size: 1.01rem;
  margin-bottom: 16px;
}
.key-stats li, .main-benefits li, .success-metrics li {
  margin-bottom: 6px;
}
ol {
  list-style: decimal inside;
  margin-bottom: 16px;
}
.case-study-snippets, .application-examples, .industry-results {
  margin-bottom: 20px;
}

/* Contact Info */
.contact-list li {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
  font-size: 1rem;
  color: #354031;
}
.contact-list img {
  width: 22px; margin-right: 10px;
  vertical-align: middle;
}

/* =================================================
   FOOTER
================================================= */
footer {
  background: linear-gradient(100deg, #eae9e1 85%, #c5dbc9 100%);
  border-top: 1.2px solid #edeadb;
  padding: 32px 0 10px 0;
  margin-top: 55px;
}
.footer-menu {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.footer-menu a {
  color: var(--earth-brown);
  font-size: 0.97rem;
  padding: 7px 0;
  border-radius: 7px;
  transition: color 0.19s;
}
.footer-menu a:hover, .footer-menu a:focus {
  color: var(--secondary);
}
.footer-contact {
  font-size: 0.97rem;
  color: #8b8e79;
}

@media (max-width: 640px) {
  .footer-menu { flex-direction: column; gap: 7px; }
}

/* =================================================
   COOKIE CONSENT BANNER & MODAL
================================================= */
.cookie-consent-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 3200;
  background: var(--nature-bg);
  border-top: 2px solid #c5dbc9;
  padding: 18px 16px 16px 16px;
  box-shadow: 0 -4px 24px 0 rgba(41,67,40,.13);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  font-size: 1.04rem;
  transition: transform 0.35s cubic-bezier(.57,.33,.32,1);
}
.cookie-consent-banner.hide {
  transform: translateY(120%);
  pointer-events: none;
  opacity: 0.1;
}
.cookie-consent-actions {
  display: flex;
  gap: 18px;
  margin-top: 8px;
  flex-wrap: wrap;
}
.cookie-btn, .cookie-settings-btn {
  background: var(--earth-green);
  color: #fff;
  border-radius: var(--radius-pill);
  padding: 9px 22px;
  font-size: 1rem;
  font-weight: bold;
  margin-bottom: 2px;
  box-shadow: 0 2px 10px 0 rgba(49, 107, 68, 0.10);
  border: none;
  cursor: pointer;
  transition: background 0.19s, color 0.19s, box-shadow 0.19s;
}
.cookie-btn.reject {
  background: #8d7762;
}
.cookie-btn:hover, .cookie-btn:focus, .cookie-settings-btn:hover, .cookie-settings-btn:focus {
  background: var(--secondary);
  color: #fff;
  box-shadow: 0 6px 18px 0 rgba(85,180,130,.14);
}
.cookie-settings-btn {
  background: #fff;
  color: var(--earth-green);
  border: 1.5px solid var(--secondary);
  font-weight: normal;
}
.cookie-settings-btn:hover, .cookie-settings-btn:focus {
  background: var(--secondary);
  color: #fff;
  border-color: var(--secondary);
}

/* Cookie Modal */
.cookie-modal {
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -80%) scale(0.92);
  z-index: 3300;
  background: #fff;
  border-radius: 19px;
  box-shadow: 0 9px 42px 0 rgba(41,67,40,0.21);
  padding: 30px 22px 28px 22px;
  width: 94vw;
  max-width: 370px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s, transform 0.35s cubic-bezier(.67,.1,.22,1.02);
}
.cookie-modal.open {
  opacity: 1;
  pointer-events: all;
  transform: translate(-50%, -50%) scale(1);
}
.cookie-modal h3 {
  font-size: 1.19rem;
  color: var(--primary);
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.02rem;
}
.cookie-category label {
  font-weight: 500;
  color: var(--earth-green);
}
.cookie-category input[type='checkbox'] {
  width: 19px; height: 19px;
  accent-color: var(--secondary);
}
.cookie-category.essential label { color: var(--earth-brown); }
.cookie-modal-actions {
  display: flex;
  gap: 17px;
  justify-content: flex-end;
  margin-top: 12px;
}
@media (max-width: 550px) {
  .cookie-modal { padding: 16px 6vw 13px 6vw; }
}

/* =================================================
   BUTTONS & INTERACTIVE ELEMENTS
================================================= */
button, .btn {
  cursor: pointer;
  appearance: none;
  border: none;
  border-radius: var(--radius-pill);
  font-family: inherit;
  font-size: 1rem;
  padding: 8px 22px;
  color: #fff;
  background: var(--primary);
  transition: background 0.2s, color 0.2s, box-shadow .19s;
}
button:disabled, .btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}


/* =================================================
   SPACING (CONSISTENT & FLEX)
================================================= */
main > section, .main-section {
  margin-bottom: 60px;
}
@media (max-width: 800px) {
  main > section, .main-section { margin-bottom: 36px; }
}
.card, .feature-item, .service-item, .strategy-card, .team-leader {
  margin-bottom: 20px;
}
.card-container, .feature-grid, .service-tiles, .service-list-grid, .method-grid, .strategy-cards, .team-leaders, .testimonial-slider {
  gap: 24px;
}
@media (max-width: 900px) {
  .card-container, .feature-grid, .service-tiles, .method-grid, .strategy-cards, .team-leaders, .testimonial-slider {
    gap: 14px;
  }
}

/* Ensure no overlapping between elements on small screens */
@media (max-width: 600px) {
  .container { padding-left: 7px; padding-right: 7px; }
}

/* =================================================
   FORMS, INPUTS (Contact etc)
================================================= */
input, textarea, select {
  border-radius: 8px;
  border: 1px solid #d1d9c9;
  background: #f3f7ee;
  padding: 9px 11px;
  font-size: 1rem;
  color: #29362f;
  margin-bottom: 16px;
  box-sizing: border-box;
  width: 100%;
  transition: border 0.17s;
}
input:focus, textarea:focus, select:focus {
  border: 1.5px solid var(--secondary);
  outline: none;
  background: #fff;
}
form button[type='submit'] {
  background: var(--earth-green);
  color: #fff;
  font-weight: 600;
  border-radius: var(--radius-pill);
  padding: 10px 24px;
  transition: background 0.19s;
}
form button[type='submit']:hover, form button[type='submit']:focus {
  background: var(--secondary);
}

/* =================================================
   ORGANIC DECORATIVE ELEMENTS
================================================= */
.section, .card, .method-item, .feature-item, .strategy-card, .service-item, .testimonial-card {
  border-radius: var(--radius-card);
  position: relative;
  overflow: visible;
}
.section:before, .card:before, .testimonial-card:before, .service-item:before {
  content: '';
  display: block;
  position: absolute;
  left: -18px;
  top: -22px;
  width: 70px;
  height: 32px;
  background: rgba(165, 197, 146, 0.09);
  border-radius: 38px 89px 38px 98px;
  z-index: 0;
  pointer-events: none;
  filter: blur(7px);
}
.section:after, .feature-item:after {
  content: '';
  display: block;
  position: absolute;
  right: -16px;
  bottom: -17px;
  width: 50px;
  height: 26px;
  background: rgba(105,183,120,0.12);
  border-radius: 81px 17px 16px 99px;
  z-index: 0;
  pointer-events: none;
  filter: blur(3px);
}
/* Only decorative patterns should use absolute! */

/* =================================================
   RESPONSIVE (mobile-first)
================================================= */
@media (max-width: 890px) {
  header .container { flex-direction: row; flex-wrap: wrap; }
  .content-wrapper { gap: 18px; }
}
@media (max-width: 480px) {
  body { font-size: 15px; }
  h1 { font-size: 1.12rem; }
  .footer-contact { font-size: 0.91rem; }
}

/* ===============================================
    MICRO-INTERACTIONS & ANIMATIONS
================================================*/
.cta-btn, .cookie-btn, .cookie-settings-btn, button {
  transition: background 0.19s, color 0.19s, box-shadow 0.20s;
}
.card, .service-item, .feature-item, .method-item, .strategy-card, .testimonial-card {
  transition: box-shadow 0.19s, transform 0.14s;
}
.card:hover, .service-item:hover, .feature-item:hover, .method-item:hover, .strategy-card:hover {
  box-shadow: 0 8px 22px 0 rgba(34, 67, 31, 0.12);
  transform: translateY(-3px) scale(1.015);
}

/* ===============================================
    SPECIAL LIST COMPONENTS (with icons)
================================================*/
ul.contact-list {
  list-style: none;
  padding: 0;
}
ul.contact-list li {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ===============================================
    PRINT STYLES (hide nav/cookie for print)
================================================*/
@media print {
  .cookie-consent-banner, .cookie-modal, .mobile-menu-toggle, .mobile-menu { display: none !important; }
  nav, header, footer, .cta-btn, .card, .testimonial-card, .section {
    box-shadow: none !important; background: #fff !important;
  }
}
