/* Custom Styles for Eudaimonia Corporate Theme */

:root {
  --navy: #23184f;
  --accent: #f3b624;
  --base: #fafafa;
}

* {
  box-sizing: border-box;
}

body {
  font-family: 'Noto Sans JP', 'Inter', sans-serif;
  background-color: var(--base);
  color: var(--navy);
  margin: 0;
  padding: 0;
  font-feature-settings: "palt";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Noto Sans JP', 'Inter', sans-serif;
  font-weight: 700;
}

/* Container Fix */
.container {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 640px) {
  .container {
    max-width: 640px;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

@media (min-width: 768px) {
  .container {
    max-width: 768px;
  }
}

@media (min-width: 1024px) {
  .container {
    max-width: 1024px;
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

@media (min-width: 1280px) {
  .container {
    max-width: 1280px;
  }
}

@media (min-width: 1536px) {
  .container {
    max-width: 1536px;
  }
}

/* Button Styles */
.btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  font-size: 1.125rem;
  font-weight: 600;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn-primary {
  background-color: var(--accent);
  color: var(--navy);
}

.btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(243, 182, 36, 0.3);
}

/* Card Styles */
.card {
  background: white;
  border-radius: 0.5rem;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.3s ease;
}

.card:hover {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* WordPress Admin Bar Fix */
body.admin-bar header {
  top: 32px;
}

@media screen and (max-width: 782px) {
  body.admin-bar header {
    top: 46px;
  }
}

/* Article Content Styles - シンプルで読みやすい記事スタイル */
.article-content {
  font-size: 1rem;
  line-height: 1.9;
  letter-spacing: 0.02em;
}

.article-content p {
  margin-bottom: 1.75em;
}

.article-content h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-top: 3rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--accent);
  color: var(--navy);
}

.article-content h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  color: var(--navy);
}

.article-content h4 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--navy);
}

.article-content ul,
.article-content ol {
  margin: 1.5em 0;
  padding-left: 1.5em;
}

.article-content ul {
  list-style-type: disc;
}

.article-content ol {
  list-style-type: decimal;
}

.article-content li {
  margin: 0.5em 0;
  line-height: 1.8;
}

.article-content a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.article-content a:hover {
  text-decoration: none;
}

.article-content blockquote {
  margin: 2em 0;
  padding: 1.25em 1.5em;
  background: #f8f9fa;
  border-left: 4px solid var(--accent);
  font-style: normal;
  color: #555;
}

.article-content img {
  max-width: 100%;
  height: auto;
  margin: 2em 0;
  border-radius: 0.5rem;
}

.article-content strong {
  font-weight: 700;
  color: var(--navy);
}

.article-content code {
  background: #f1f3f5;
  padding: 0.2em 0.4em;
  border-radius: 0.25rem;
  font-size: 0.9em;
}

.article-content pre {
  background: #1e1e1e;
  color: #d4d4d4;
  padding: 1.25em;
  border-radius: 0.5rem;
  overflow-x: auto;
  margin: 2em 0;
}

.article-content pre code {
  background: transparent;
  padding: 0;
}

.article-content table {
  width: 100%;
  margin: 2em 0;
  border-collapse: collapse;
}

.article-content th,
.article-content td {
  padding: 0.75em 1em;
  border: 1px solid #e9ecef;
  text-align: left;
}

.article-content th {
  background: #f8f9fa;
  font-weight: 600;
}

/* 旧proseクラスとの互換性 */
.prose {
  max-width: 65ch;
}

.prose p {
  margin-bottom: 1.25em;
  line-height: 1.75;
}

.prose h2 {
  margin-top: 2em;
  margin-bottom: 1em;
  font-size: 1.5em;
  font-weight: 700;
}

.prose h3 {
  margin-top: 1.6em;
  margin-bottom: 0.6em;
  font-size: 1.25em;
  font-weight: 600;
}

.prose ul,
.prose ol {
  margin-top: 1.25em;
  margin-bottom: 1.25em;
  padding-left: 1.625em;
}

.prose li {
  margin-top: 0.5em;
  margin-bottom: 0.5em;
}

/* Video Background Fix */
video {
  object-fit: cover;
}

/* Smooth Scroll */
html {
  scroll-behavior: smooth;
}

/* Link Hover Effects */
a {
  transition: color 0.2s ease;
}

a:hover {
  color: var(--accent);
}


/* Responsive Typography */
@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
    line-height: 1.2;
  }

  h2 {
    font-size: 1.75rem;
    line-height: 1.3;
  }

  h3 {
    font-size: 1.5rem;
  }

  .text-5xl {
    font-size: 2.5rem !important;
  }

  .text-4xl {
    font-size: 2rem !important;
  }

  .text-3xl {
    font-size: 1.75rem !important;
  }

  .text-2xl {
    font-size: 1.5rem !important;
  }

  .text-xl {
    font-size: 1.25rem !important;
  }
}

/* Responsive Padding */
@media (max-width: 768px) {
  .py-32 {
    padding-top: 4rem !important;
    padding-bottom: 4rem !important;
  }

  .py-20 {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
  }
}

/* Responsive Grid */
@media (max-width: 768px) {
  .grid {
    grid-template-columns: 1fr !important;
  }
}

/* Responsive Images */
img {
  max-width: 100%;
  height: auto;
}

/* Mobile Menu Improvements */
@media (max-width: 768px) {
  #mobile-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    z-index: 50;
  }

  #mobile-menu a {
    display: block;
    padding: 0.75rem 1rem;
  }
}

/* Responsive Card Spacing */
@media (max-width: 768px) {
  .card {
    padding: 1rem;
  }

  .space-y-6>*+* {
    margin-top: 1rem !important;
  }

  .gap-8 {
    gap: 1rem !important;
  }
}

/* Full Width Sections on Mobile */
@media (max-width: 768px) {
  section {
    overflow-x: hidden;
  }
}


/* Footer Styles */
footer {
  background-color: var(--navy) !important;
  color: white !important;
}

footer a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
}

footer a:hover {
  color: var(--accent);
}

footer .grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  footer .grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Footer Logo - No filter needed as logo already has navy background */