/* =========================
   Monochrome Sophisticated Theme for スマートマネー大阪
   ========================= */

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

:root {
  --color-bg: #fff;
  --color-bg-alt: #f5f6fa;
  --color-text: #181818;
  --color-text-light: #444;
  --color-primary: #181818;
  --color-secondary: #f9b208;
  --color-accent: #f5f6fa;
  --color-border: #e0e0e0;
  --color-shadow: rgba(0,0,0,0.08);
  --color-shadow-strong: rgba(0,0,0,0.18);
  --color-link: #181818;
  --color-link-hover: #fff;
  --color-link-bg-hover: #181818;
  --color-cta-bg: #181818;
  --color-cta-text: #fff;
  --color-cta-hover-bg: #fff;
  --color-cta-hover-text: #181818;
  --color-cookie-bg: #222;
  --color-cookie-text: #fff;
  --color-cookie-btn: #fff;
  --color-cookie-btn-bg: #181818;
  --color-cookie-btn-hover-bg: #f9b208;
  --color-cookie-btn-hover-text: #181818;
  --font-display: 'Noto Sans JP', 'Yu Gothic', sans-serif;
  --font-body: 'Yu Gothic', 'Noto Sans JP', sans-serif;
  --transition: all 0.25s cubic-bezier(.4,0,.2,1);
}

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

/* =========================
   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.01em;
}
h1 {
  font-size: 2.2rem;
  line-height: 1.2;
  margin-bottom: 0.8em;
}
h2 {
  font-size: 1.5rem;
  margin-bottom: 0.7em;
}
h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5em;
}
p, ul, ol {
  color: var(--color-text-light);
  font-size: 1rem;
  margin-bottom: 1.2em;
}
strong {
  color: var(--color-primary);
  font-weight: 700;
}
a {
  color: var(--color-link);
  text-decoration: underline;
  transition: var(--transition);
}
a:hover, a:focus {
  color: var(--color-link-hover);
  background: var(--color-link-bg-hover);
  text-decoration: none;
  border-radius: 3px;
  outline: 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: 24px;
}

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

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--color-bg-alt);
  border-radius: 10px;
  box-shadow: 0 2px 8px var(--color-shadow);
  margin-bottom: 20px;
  position: relative;
  padding: 24px;
  flex: 1 1 280px;
  min-width: 260px;
  transition: box-shadow 0.2s;
}
.card:hover {
  box-shadow: 0 6px 24px var(--color-shadow-strong);
}

.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;
  margin-bottom: 20px;
}
.text-image-section img {
  max-width: 180px;
  border-radius: 10px;
  box-shadow: 0 2px 8px var(--color-shadow);
  background: #fff;
}

.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 8px var(--color-shadow);
  margin-bottom: 20px;
  color: #181818;
  font-size: 1.05rem;
  transition: box-shadow 0.2s;
}
.testimonial-card:hover {
  box-shadow: 0 6px 24px var(--color-shadow-strong);
}
.testimonial-card p {
  margin: 0;
  color: #181818;
  font-weight: 500;
}
.testimonial-card span {
  color: #444;
  font-size: 0.98em;
  font-style: italic;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
}

.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 24px;
}
.feature-grid > div {
  background: var(--color-bg-alt);
  border-radius: 10px;
  box-shadow: 0 2px 8px var(--color-shadow);
  padding: 24px;
  flex: 1 1 260px;
  min-width: 220px;
  transition: box-shadow 0.2s;
}
.feature-grid > div:hover {
  box-shadow: 0 6px 24px var(--color-shadow-strong);
}
.feature-icons {
  display: flex;
  gap: 20px;
  margin-top: 10px;
}
.feature-icons span {
  background: #fff;
  color: #181818;
  border-radius: 20px;
  padding: 6px 18px;
  font-weight: 700;
  font-size: 1em;
  box-shadow: 0 1px 4px var(--color-shadow);
}

.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.faq-accordion > div {
  background: var(--color-bg-alt);
  border-radius: 10px;
  box-shadow: 0 2px 8px var(--color-shadow);
  padding: 20px;
}
.faq-accordion h3 {
  margin-bottom: 0.5em;
}

/* =========================
   Header & Navigation
   ========================= */
header {
  background: #fff;
  box-shadow: 0 2px 12px var(--color-shadow);
  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;
  margin-right: 24px;
}
.main-nav {
  display: flex;
  gap: 24px;
  align-items: center;
}
.main-nav a {
  color: #181818;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1rem;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 4px;
  transition: var(--transition);
}
.main-nav a:hover, .main-nav a:focus {
  background: #181818;
  color: #fff;
}
.cta-button {
  background: var(--color-cta-bg);
  color: var(--color-cta-text);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.08rem;
  padding: 10px 28px;
  border-radius: 24px;
  border: none;
  text-decoration: none;
  margin-left: 24px;
  box-shadow: 0 2px 8px var(--color-shadow);
  transition: var(--transition);
  cursor: pointer;
  letter-spacing: 0.03em;
  outline: none;
  display: inline-block;
}
.cta-button:hover, .cta-button:focus {
  background: var(--color-cta-hover-bg);
  color: var(--color-cta-hover-text);
  border: 1.5px solid #181818;
  box-shadow: 0 6px 24px var(--color-shadow-strong);
}

/* =========================
   Mobile Navigation
   ========================= */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  color: #181818;
  cursor: pointer;
  margin-left: 16px;
  z-index: 120;
  transition: color 0.2s;
}
.mobile-menu-toggle:focus {
  color: var(--color-secondary);
  outline: none;
}
.mobile-menu {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(24,24,24,0.98);
  z-index: 2000;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s cubic-bezier(.4,0,.2,1);
}
.mobile-menu.open {
  display: flex;
  opacity: 1;
  pointer-events: auto;
  animation: mobileMenuSlideIn 0.35s cubic-bezier(.4,0,.2,1);
}
@keyframes mobileMenuSlideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}
.mobile-menu-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 2.2rem;
  position: absolute;
  top: 24px;
  right: 32px;
  cursor: pointer;
  z-index: 2100;
  transition: color 0.2s;
}
.mobile-menu-close:focus {
  color: var(--color-secondary);
  outline: none;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-top: 100px;
  width: 100%;
  align-items: flex-start;
  padding-left: 40px;
}
.mobile-nav a {
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  text-decoration: none;
  padding: 10px 0;
  border-radius: 4px;
  transition: background 0.2s, color 0.2s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #fff;
  color: #181818;
  padding-left: 10px;
}

/* =========================
   Hero Section
   ========================= */
.hero {
  background: linear-gradient(120deg, #fff 70%, #eaeaea 100%);
  box-shadow: 0 2px 16px var(--color-shadow);
  border-radius: 0 0 24px 24px;
  margin-bottom: 60px;
  padding: 60px 0 40px 0;
}
.hero .container {
  align-items: center;
  justify-content: center;
}
.hero .content-wrapper {
  align-items: center;
  text-align: center;
  gap: 24px;
}
.hero h1 {
  font-size: 2.3rem;
  color: #181818;
  margin-bottom: 0.5em;
}
.hero p {
  font-size: 1.15rem;
  color: #444;
  margin-bottom: 1.5em;
}

/* =========================
   CTA Section
   ========================= */
.cta {
  background: #181818;
  color: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 16px var(--color-shadow-strong);
  margin-bottom: 60px;
  padding: 40px 20px;
}
.cta .content-wrapper {
  align-items: center;
  text-align: center;
  gap: 20px;
}
.cta h2 {
  color: #fff;
  margin-bottom: 1em;
}
.cta .cta-button {
  background: #fff;
  color: #181818;
  border: 2px solid #fff;
}
.cta .cta-button:hover, .cta .cta-button:focus {
  background: #181818;
  color: #fff;
  border: 2px solid #fff;
}

/* =========================
   Footer
   ========================= */
footer {
  background: #181818;
  color: #fff;
  padding: 40px 0 20px 0;
  border-radius: 24px 24px 0 0;
  box-shadow: 0 -2px 16px var(--color-shadow-strong);
  margin-top: 60px;
}
footer .container {
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 16px;
}
.footer-nav a {
  color: #fff;
  font-family: var(--font-display);
  font-size: 1rem;
  text-decoration: none;
  opacity: 0.85;
  transition: opacity 0.2s, color 0.2s;
}
.footer-nav a:hover, .footer-nav a:focus {
  opacity: 1;
  color: var(--color-secondary);
}
.footer-contact p {
  color: #fff;
  font-size: 0.98rem;
  margin-bottom: 0.5em;
}
footer small {
  color: #bbb;
  font-size: 0.95rem;
  margin-top: 12px;
}

/* =========================
   Gallery Section
   ========================= */
.gallery .text-image-section {
  justify-content: center;
  margin-bottom: 20px;
}
.gallery img {
  max-width: 320px;
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 2px 8px var(--color-shadow);
}

/* =========================
   Legal Section
   ========================= */
.legal {
  background: var(--color-bg-alt);
  border-radius: 12px;
  box-shadow: 0 2px 8px var(--color-shadow);
  margin-bottom: 60px;
  padding: 40px 20px;
}

/* =========================
   Cookie Consent Banner
   ========================= */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: var(--color-cookie-bg);
  color: var(--color-cookie-text);
  z-index: 3000;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 24px 20px;
  box-shadow: 0 -2px 16px var(--color-shadow-strong);
  gap: 24px;
  font-size: 1rem;
  opacity: 1;
  transition: opacity 0.3s;
}
.cookie-banner.hide {
  opacity: 0;
  pointer-events: none;
}
.cookie-banner .cookie-actions {
  display: flex;
  gap: 16px;
}
.cookie-banner button {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  border-radius: 20px;
  border: none;
  padding: 8px 22px;
  margin: 0;
  cursor: pointer;
  transition: var(--transition);
  background: var(--color-cookie-btn-bg);
  color: var(--color-cookie-btn);
  box-shadow: 0 1px 4px var(--color-shadow);
}
.cookie-banner button:hover, .cookie-banner button:focus {
  background: var(--color-cookie-btn-hover-bg);
  color: var(--color-cookie-btn-hover-text);
  outline: none;
}
.cookie-banner .cookie-settings {
  background: transparent;
  color: #fff;
  border: 1.5px solid #fff;
  padding: 8px 18px;
}
.cookie-banner .cookie-settings:hover, .cookie-banner .cookie-settings:focus {
  background: #fff;
  color: #181818;
}

/* Cookie Modal */
.cookie-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(24,24,24,0.85);
  z-index: 4000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.cookie-modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal {
  background: #fff;
  color: #181818;
  border-radius: 16px;
  box-shadow: 0 4px 32px var(--color-shadow-strong);
  padding: 36px 28px 28px 28px;
  min-width: 320px;
  max-width: 95vw;
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: relative;
  animation: cookieModalIn 0.35s cubic-bezier(.4,0,.2,1);
}
@keyframes cookieModalIn {
  from { transform: translateY(40px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-modal h2 {
  font-size: 1.3rem;
  margin-bottom: 0.5em;
}
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
}
.cookie-modal .cookie-category label {
  font-size: 1rem;
  color: #181818;
}
.cookie-modal .cookie-category input[type="checkbox"] {
  accent-color: #181818;
  width: 18px;
  height: 18px;
}
.cookie-modal .cookie-category.essential label {
  font-weight: 700;
  color: #181818;
}
.cookie-modal .cookie-category.essential input[type="checkbox"] {
  accent-color: #181818;
}
.cookie-modal .cookie-actions {
  display: flex;
  gap: 16px;
  margin-top: 12px;
}
.cookie-modal .close-modal {
  position: absolute;
  top: 18px;
  right: 22px;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #181818;
  cursor: pointer;
  transition: color 0.2s;
}
.cookie-modal .close-modal:hover, .cookie-modal .close-modal:focus {
  color: var(--color-secondary);
}

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

/* =========================
   Micro-interactions & Transitions
   ========================= */
.card, .feature-grid > div, .testimonial-card, .faq-accordion > div {
  transition: box-shadow 0.2s, transform 0.18s;
}
.card:hover, .feature-grid > div:hover, .testimonial-card:hover, .faq-accordion > div:hover {
  box-shadow: 0 6px 24px var(--color-shadow-strong);
  transform: translateY(-2px) scale(1.015);
}
.cta-button, .cookie-banner button, .cookie-modal button {
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}

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

/* =========================
   Prevent Overlapping
   ========================= */
.section, .card, .testimonial-card, .feature-grid > div, .faq-accordion > div, .gallery .text-image-section {
  margin-bottom: 20px;
}

/* =========================
   Accessibility
   ========================= */
:focus {
  outline: 2px solid var(--color-secondary);
  outline-offset: 2px;
}

/* =========================
   End of CSS
   ========================= */
