/* =====================================================
   ラッパ・プレコ Monochrome Sophisticated CSS
   Brand: 洗練されたモノクローム + Dramatic Contrast
   ===================================================== */

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

:root {
  --color-bg: #fff;
  --color-bg-alt: #f3f3f3;
  --color-bg-dark: #181818;
  --color-primary: #222;
  --color-secondary: #fff;
  --color-accent: #F2C14E;
  --color-link: #222;
  --color-link-hover: #2364AA;
  --color-border: #e0e0e0;
  --color-shadow: rgba(0,0,0,0.08);
  --color-shadow-strong: rgba(0,0,0,0.16);
  --color-cta: #222;
  --color-cta-hover: #fff;
  --color-cta-bg: #fff;
  --color-cta-bg-hover: #222;
  --color-cta-border: #222;
  --color-testimonial-bg: #f8f8f8;
  --color-testimonial-text: #181818;
  --color-cookie-bg: #222;
  --color-cookie-text: #fff;
  --color-cookie-btn: #fff;
  --color-cookie-btn-bg: #181818;
  --color-cookie-btn-hover-bg: #F2C14E;
  --font-display: 'Noto Sans JP', sans-serif;
  --font-body: 'Roboto', 'Noto Sans JP', sans-serif;
  --transition: all 0.25s cubic-bezier(.4,0,.2,1);
  --radius: 12px;
  --radius-sm: 6px;
  --shadow: 0 2px 12px var(--color-shadow);
  --shadow-strong: 0 4px 24px var(--color-shadow-strong);
}

html {
  box-sizing: border-box;
  font-size: 16px;
  background: var(--color-bg);
  color: var(--color-primary);
}
*, *:before, *:after {
  box-sizing: inherit;
}

body {
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-primary);
  margin: 0;
  min-height: 100vh;
  line-height: 1.7;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
}

/* --------------------
   Typography
-------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--color-primary);
  margin-top: 0;
  margin-bottom: 0.7em;
  line-height: 1.2;
  letter-spacing: 0.01em;
}
h1 {
  font-size: 2.2rem;
  margin-bottom: 0.5em;
}
h2 {
  font-size: 1.5rem;
  margin-bottom: 0.5em;
}
h3 {
  font-size: 1.15rem;
  margin-bottom: 0.3em;
}
h4, h5, h6 {
  font-size: 1rem;
}
p, ul, ol {
  font-size: 1rem;
  margin-top: 0;
  margin-bottom: 1.2em;
  color: var(--color-primary);
}
strong {
  font-weight: 700;
}
a {
  color: var(--color-link);
  text-decoration: underline;
  transition: var(--transition);
}
a:hover, a:focus {
  color: var(--color-link-hover);
  text-decoration: none;
}

/* --------------------
   Layout Containers
-------------------- */
.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--color-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--color-bg-alt);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  position: relative;
  padding: 24px 20px;
  flex: 1 1 300px;
  min-width: 260px;
  transition: var(--transition);
}
.card:hover {
  box-shadow: var(--shadow-strong);
  background: #fff;
}

.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: var(--color-testimonial-bg);
  border-radius: var(--radius);
  margin-bottom: 20px;
  box-shadow: var(--shadow);
  color: var(--color-testimonial-text);
  flex-direction: column;
  transition: var(--transition);
}
.testimonial-card p {
  color: var(--color-testimonial-text);
  font-size: 1.1rem;
  margin-bottom: 0.5em;
}
.testimonial-card span {
  font-size: 0.95rem;
  color: #555;
}
.testimonial-card:hover {
  box-shadow: var(--shadow-strong);
  background: #fff;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: var(--color-bg-alt);
  border-radius: var(--radius-sm);
  padding: 20px 16px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
  transition: var(--transition);
}
.feature-item:hover {
  background: #fff;
  box-shadow: var(--shadow-strong);
}

/* Feature grid for features/services/blog/team */
.feature-grid, .team-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 20px;
}
.feature-grid > div, .team-grid > div {
  background: var(--color-bg-alt);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  padding: 24px 18px;
  flex: 1 1 260px;
  min-width: 220px;
  margin-bottom: 20px;
  transition: var(--transition);
}
.feature-grid > div:hover, .team-grid > div:hover {
  background: #fff;
  box-shadow: var(--shadow-strong);
}

/* --------------------
   Header & Navigation
-------------------- */
header {
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 100;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 0;
  padding: 0 20px;
  min-height: 72px;
}
header img {
  height: 44px;
  width: auto;
  margin-right: 24px;
}
.main-nav {
  display: flex;
  flex-direction: row;
  gap: 28px;
  align-items: center;
  margin-left: 24px;
}
.main-nav a {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--color-primary);
  text-decoration: none;
  font-size: 1rem;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: var(--transition);
  letter-spacing: 0.01em;
}
.main-nav a:hover, .main-nav a:focus {
  color: var(--color-link-hover);
  border-bottom: 2px solid var(--color-link-hover);
}

.cta-btn {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--color-cta);
  background: var(--color-cta-bg);
  border: 2px solid var(--color-cta-border);
  border-radius: var(--radius-sm);
  padding: 10px 28px;
  margin-left: 32px;
  text-decoration: none;
  box-shadow: none;
  transition: var(--transition);
  letter-spacing: 0.03em;
  cursor: pointer;
  position: relative;
  z-index: 1;
}
.cta-btn:hover, .cta-btn:focus {
  background: var(--color-cta-bg-hover);
  color: var(--color-cta-hover);
  border-color: var(--color-cta-bg-hover);
  box-shadow: var(--shadow-strong);
}

/* Hamburger menu button */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--color-primary);
  cursor: pointer;
  margin-left: 24px;
  transition: var(--transition);
  z-index: 120;
}
.mobile-menu-toggle:focus {
  outline: 2px solid var(--color-link-hover);
}

/* --------------------
   Mobile Navigation
-------------------- */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(34,34,34,0.98);
  color: #fff;
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-start;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(.4,0,.2,1);
  pointer-events: none;
  opacity: 0;
}
.mobile-menu.open {
  transform: translateX(0);
  pointer-events: auto;
  opacity: 1;
}
.mobile-menu-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 2.2rem;
  margin: 24px 28px 0 0;
  cursor: pointer;
  align-self: flex-end;
  transition: var(--transition);
}
.mobile-menu-close:focus {
  outline: 2px solid var(--color-accent);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 28px;
  margin: 40px 0 0 40px;
}
.mobile-nav a {
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: var(--transition);
  border-bottom: 2px solid transparent;
  padding: 4px 0;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: var(--color-accent);
  border-bottom: 2px solid var(--color-accent);
}

/* --------------------
   Hero Section
-------------------- */
.hero {
  background: linear-gradient(120deg, #fff 70%, #eaeaea 100%);
  padding: 60px 0 40px 0;
  margin-bottom: 60px;
  border-bottom: 1px solid var(--color-border);
}
.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: #181818;
  margin-bottom: 0.3em;
  letter-spacing: 0.03em;
}
.hero p {
  font-size: 1.15rem;
  color: #333;
  margin-bottom: 1.2em;
}
.hero img {
  margin-top: 18px;
  max-width: 180px;
  height: auto;
}

/* --------------------
   Features/Services/Team/Blog List
-------------------- */
.features, .services, .team, .blog-list {
  margin-bottom: 60px;
}
.features h2, .services h2, .team h2, .blog-list h2 {
  font-size: 1.5rem;
  margin-bottom: 0.5em;
  color: #181818;
}

/* --------------------
   About Section
-------------------- */
.about {
  margin-bottom: 60px;
}
.about h2 {
  color: #181818;
}

/* --------------------
   Gallery Section
-------------------- */
.gallery {
  margin-bottom: 60px;
}
.gallery ul {
  padding-left: 1.2em;
  margin: 0 0 1.2em 0;
}
.gallery li {
  margin-bottom: 0.7em;
  color: #222;
  font-size: 1rem;
}

/* --------------------
   FAQ Section
-------------------- */
.faq {
  margin-bottom: 60px;
}
.faq h3 {
  font-size: 1.1rem;
  color: #181818;
  margin-bottom: 0.2em;
}
.faq p {
  margin-bottom: 1.2em;
}

/* --------------------
   CTA Section
-------------------- */
.cta {
  background: #222;
  color: #fff;
  border-radius: var(--radius);
  margin-bottom: 60px;
  box-shadow: var(--shadow-strong);
}
.cta .content-wrapper {
  align-items: center;
  text-align: center;
  gap: 18px;
}
.cta h2 {
  color: #fff;
  font-size: 1.4rem;
}
.cta p {
  color: #e0e0e0;
  font-size: 1rem;
}
.cta .cta-btn {
  background: #fff;
  color: #222;
  border: 2px solid #fff;
  margin-left: 0;
}
.cta .cta-btn:hover, .cta .cta-btn:focus {
  background: #181818;
  color: #fff;
  border-color: #fff;
}

/* --------------------
   Policy Section
-------------------- */
.policy {
  margin-bottom: 60px;
}
.policy h1, .policy h2 {
  color: #181818;
}
.policy ul {
  margin-bottom: 1.2em;
  padding-left: 1.2em;
}
.policy li {
  margin-bottom: 0.7em;
  color: #222;
  font-size: 1rem;
}

/* --------------------
   Contact Section
-------------------- */
.contact {
  margin-bottom: 60px;
}
.contact .map {
  background: var(--color-bg-alt);
  border-radius: var(--radius-sm);
  padding: 16px;
  margin-top: 16px;
  color: #222;
  font-size: 0.98rem;
}

/* --------------------
   Footer
-------------------- */
footer {
  background: #181818;
  color: #fff;
  padding: 32px 0 16px 0;
  border-top: 1px solid #222;
}
footer .container {
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
.footer-nav {
  display: flex;
  flex-direction: row;
  gap: 28px;
  align-items: center;
  margin-bottom: 8px;
}
.footer-nav a {
  color: #fff;
  font-family: var(--font-display);
  font-size: 1rem;
  text-decoration: none;
  opacity: 0.85;
  transition: var(--transition);
  border-bottom: 2px solid transparent;
  padding: 4px 0;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: var(--color-accent);
  border-bottom: 2px solid var(--color-accent);
  opacity: 1;
}
footer small {
  color: #bbb;
  font-size: 0.95rem;
}

/* --------------------
   Cookie Consent Banner
-------------------- */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: var(--color-cookie-bg);
  color: var(--color-cookie-text);
  padding: 24px 20px 20px 20px;
  z-index: 300;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  box-shadow: 0 -2px 16px rgba(0,0,0,0.12);
  font-size: 1rem;
  opacity: 1;
  transition: var(--transition);
}
.cookie-banner.hide {
  opacity: 0;
  pointer-events: none;
}
.cookie-banner .cookie-text {
  flex: 1 1 auto;
  color: var(--color-cookie-text);
  font-size: 1rem;
}
.cookie-banner .cookie-actions {
  display: flex;
  flex-direction: row;
  gap: 16px;
  align-items: center;
}
.cookie-btn {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
  border: none;
  border-radius: var(--radius-sm);
  padding: 8px 20px;
  margin: 0;
  cursor: pointer;
  background: var(--color-cookie-btn-bg);
  color: var(--color-cookie-btn);
  transition: var(--transition);
  box-shadow: none;
}
.cookie-btn.accept {
  background: var(--color-accent);
  color: #222;
}
.cookie-btn.reject {
  background: #fff;
  color: #222;
  border: 1px solid #bbb;
}
.cookie-btn.settings {
  background: transparent;
  color: #fff;
  border: 1px solid #fff;
}
.cookie-btn:hover, .cookie-btn:focus {
  background: var(--color-cookie-btn-hover-bg);
  color: #222;
  border-color: var(--color-accent);
}

/* Cookie Modal */
.cookie-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(34,34,34,0.85);
  z-index: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(.4,0,.2,1);
}
.cookie-modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal {
  background: #fff;
  color: #222;
  border-radius: var(--radius);
  box-shadow: var(--shadow-strong);
  padding: 36px 28px 28px 28px;
  min-width: 320px;
  max-width: 95vw;
  max-height: 90vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  animation: fadeInModal 0.4s cubic-bezier(.4,0,.2,1);
}
@keyframes fadeInModal {
  from { transform: translateY(40px) scale(0.98); opacity: 0; }
  to   { transform: translateY(0) scale(1); opacity: 1; }
}
.cookie-modal h2 {
  font-size: 1.2rem;
  margin-bottom: 0.5em;
  color: #181818;
}
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}
.cookie-modal .cookie-category label {
  font-size: 1rem;
  color: #222;
}
.cookie-modal .cookie-category input[type="checkbox"] {
  accent-color: var(--color-accent);
  width: 18px;
  height: 18px;
}
.cookie-modal .cookie-category input[disabled] {
  opacity: 0.5;
}
.cookie-modal .cookie-modal-actions {
  display: flex;
  flex-direction: row;
  gap: 16px;
  margin-top: 10px;
  justify-content: flex-end;
}
.cookie-modal .cookie-modal-close {
  position: absolute;
  top: 16px; right: 18px;
  background: none;
  border: none;
  color: #222;
  font-size: 1.5rem;
  cursor: pointer;
  transition: var(--transition);
}
.cookie-modal .cookie-modal-close:focus {
  outline: 2px solid var(--color-accent);
}

/* --------------------
   Utility Classes
-------------------- */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.mt-2 { margin-top: 20px !important; }
.mb-2 { margin-bottom: 20px !important; }

/* --------------------
   Responsive Design
-------------------- */
@media (max-width: 1024px) {
  .container {
    max-width: 92vw;
    padding: 0 12px;
  }
  .main-nav {
    gap: 18px;
  }
  .footer-nav {
    gap: 18px;
  }
  .feature-grid, .team-grid {
    gap: 16px;
  }
}
@media (max-width: 900px) {
  .feature-grid > div, .team-grid > div {
    min-width: 180px;
    padding: 18px 10px;
  }
}
@media (max-width: 768px) {
  html {
    font-size: 15px;
  }
  .container {
    max-width: 100vw;
    padding: 0 8px;
  }
  header .container {
    min-height: 56px;
    padding: 0 8px;
  }
  .main-nav {
    display: none;
  }
  .cta-btn {
    margin-left: 0;
    margin-top: 8px;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .feature-grid, .team-grid {
    flex-direction: column;
    gap: 16px;
  }
  .feature-grid > div, .team-grid > div {
    min-width: 0;
    width: 100%;
    margin-bottom: 12px;
  }
  .content-grid {
    flex-direction: column;
    gap: 16px;
  }
  .testimonial-card {
    flex-direction: column;
    gap: 12px;
    padding: 16px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
  .section {
    padding: 28px 8px;
    margin-bottom: 36px;
  }
  .hero {
    padding: 36px 0 24px 0;
    margin-bottom: 36px;
  }
  .cta {
    margin-bottom: 36px;
    padding: 28px 8px;
  }
  .footer-nav {
    flex-direction: column;
    gap: 10px;
    align-items: center;
  }
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 18px 8px 14px 8px;
    font-size: 0.98rem;
  }
  .cookie-banner .cookie-actions {
    flex-direction: column;
    gap: 8px;
    align-items: stretch;
  }
  .cookie-modal {
    min-width: 0;
    width: 98vw;
    padding: 20px 8px 16px 8px;
  }
}
@media (max-width: 480px) {
  html {
    font-size: 14px;
  }
  .hero h1 {
    font-size: 1.5rem;
  }
  .hero p {
    font-size: 1rem;
  }
  .cta h2 {
    font-size: 1.1rem;
  }
}

/* --------------------
   Micro-interactions
-------------------- */
.card, .feature-grid > div, .team-grid > div, .testimonial-card, .feature-item {
  transition: box-shadow 0.22s cubic-bezier(.4,0,.2,1), background 0.22s cubic-bezier(.4,0,.2,1);
}
.cta-btn, .cookie-btn {
  transition: background 0.18s cubic-bezier(.4,0,.2,1), color 0.18s cubic-bezier(.4,0,.2,1), border-color 0.18s cubic-bezier(.4,0,.2,1);
}
.mobile-menu, .cookie-modal-overlay {
  transition: opacity 0.3s cubic-bezier(.4,0,.2,1), transform 0.35s cubic-bezier(.4,0,.2,1);
}

/* --------------------
   Hide scroll on mobile menu/modal open
-------------------- */
body.menu-open, body.cookie-modal-open {
  overflow: hidden;
}

/* --------------------
   Accessibility Focus
-------------------- */
a:focus, button:focus, .cta-btn:focus, .cookie-btn:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/* --------------------
   Prevent Overlapping
-------------------- */
.section, .card, .feature-grid > div, .team-grid > div, .testimonial-card, .feature-item {
  margin-bottom: 20px;
}

/* --------------------
   Miscellaneous
-------------------- */
ul, ol {
  padding-left: 1.3em;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* --------------------
   END
-------------------- */
