/* ========================================
   Base
======================================== */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;

  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "Hiragino Sans",
    "Yu Gothic",
    sans-serif;

  line-height: 1.8;
  color: #222;
  background: #f5f7fa;
}

a {
  color: #1d4ed8;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
}

/* ========================================
   Header
======================================== */

.site-header {
  background: #111827;
  color: #fff;

  padding: 20px;
}

.site-branding {
  text-align: center;
  margin-bottom: 15px;
}

.site-logo img {
  max-width: 300px;
  height: auto;
}

/* ========================================
   Navigation
======================================== */

.global-nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;

  margin: 0;
  padding: 0;

  list-style: none;
}

.global-nav a {
  color: #fff;
  font-size: 0.95rem;
}

/* ========================================
   Layout
======================================== */

.site-container {
  display: flex;
  gap: 30px;

  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
}

.main-content {
  flex: 1;
  min-width: 0;
}

.sidebar {
  width: 300px;
}

/* ========================================
   Hero
======================================== */

.hero-section {
  background: #fff;

  padding: 40px;
  margin-bottom: 40px;

  border-radius: 10px;
}

.hero-section h1 {
  margin-top: 0;

  font-size: 2.2rem;
  line-height: 1.4;
}

.lead-text {
  font-size: 1.2rem;
  color: #374151;
}

/* ========================================
   Category Grid
======================================== */

.category-grid {
  display: grid;

  grid-template-columns:
    repeat(auto-fit, minmax(260px, 1fr));

  gap: 20px;
}

.category-card {
  background: #fff;

  padding: 25px;

  border-radius: 10px;

  transition: 0.2s;
}

.category-card:hover {
  transform: translateY(-2px);
}

.category-card h3 {
  margin-top: 0;
  margin-bottom: 15px;

  font-size: 1.2rem;
}

/* ========================================
   Sections
======================================== */

.top-category-section,
.blog-section,
.about-section,
.page-content,
.side-section {
  background: #fff;

  padding: 30px;
  margin-bottom: 30px;

  border-radius: 10px;
}

h2 {
  margin-top: 0;

  font-size: 1.6rem;

  border-left: 5px solid #1d4ed8;
  padding-left: 12px;
}

h3 {
  font-size: 1.2rem;
}

/* ========================================
   Sidebar
======================================== */

.side-links {
  margin: 0;
  padding-left: 20px;
}

.side-links li {
  margin-bottom: 10px;
}

.blog-link {
  font-weight: bold;
}

/* ========================================
   Buttons
======================================== */

.blog-button {
  display: inline-block;

  padding: 12px 24px;

  background: #1d4ed8;
  color: #fff;

  border-radius: 6px;

  font-weight: bold;
}

.blog-button:hover {
  opacity: 0.9;
  text-decoration: none;
}

/* ========================================
   Footer
======================================== */

.site-footer {
  background: #111827;
  color: #fff;

  padding: 40px 20px;

  margin-top: 60px;

  text-align: center;
}

.footer-nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;

  margin: 0 0 20px;
  padding: 0;

  list-style: none;
}

.footer-nav a {
  color: #fff;
}

.copyright {
  margin: 0;

  font-size: 0.9rem;
  opacity: 0.7;
}

/* ========================================
   Contact
======================================== */

.contact-mail-image {
  margin-top: 30px;
}

/* ========================================
   Responsive
======================================== */

@media (max-width: 900px) {

  .site-container {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
  }

}

@media (max-width: 600px) {

  .hero-section,
  .top-category-section,
  .blog-section,
  .about-section,
  .page-content,
  .side-section {
    padding: 22px;
  }

  .hero-section h1 {
    font-size: 1.8rem;
  }

  h2 {
    font-size: 1.4rem;
  }

}

.back-category-link {
  margin-top: 40px;
}

.back-category-link a {
  font-weight: bold;
}

/* ========================================
   Breadcrumb
======================================== */

.breadcrumb {
  margin-bottom: 25px;
  font-size: 0.9rem;
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.breadcrumb li::after {
  content: ">";
  margin-left: 8px;
  color: #888;
}

.breadcrumb li:last-child::after {
  content: "";
}

.breadcrumb a {
  color: #555;
}

.formula {
  margin: 30px 0;
  padding: 22px;

  color: #1e3a8a;

  background: #f8fafc;

  border: 1px solid #dbe3ea;
  border-radius: 8px;

  text-align: center;

  font-size: 1.5rem;
  font-weight: bold;

  overflow-x: auto;
}

/* ========================================
   Adsense
======================================== */

.article-ad {
  margin: 45px 0;

  overflow: hidden;
}

.market-flow {
  margin: 40px 0;
  padding: 35px 20px;

  background: #f8fafc;

  border: 1px solid #dbe3ea;
  border-radius: 12px;

  text-align: center;
}

.market-flow-item {
  font-size: 2rem;
  font-weight: bold;
  line-height: 1.7;

  color: #1e3a8a;
}

.market-flow-arrow {
  margin: 18px 0;

  font-size: 2.2rem;

  color: #64748b;
}

/* ========================================
   Order Book Table
======================================== */

.order-book-table {
  width: 100%;

  margin: 35px 0;

  border-collapse: collapse;

  background: #fff;
}

.order-book-table th,
.order-book-table td {
  padding: 14px;

  border: 1px solid #dbe3ea;

  text-align: center;
}

.order-book-table th {
  background: #f8fafc;

  font-weight: bold;
}

/* ========================================
   Comparison Table
======================================== */

.comparison-table {
  width: 100%;

  margin: 35px 0;

  border-collapse: collapse;

  background: #ffffff;

  border: 1px solid #dbe3ea;
}

.comparison-table th,
.comparison-table td {
  padding: 16px 14px;

  border: 1px solid #dbe3ea;

  text-align: left;

  line-height: 1.7;
}

.comparison-table th {
  background: #f8fafc;

  font-weight: bold;
}

.comparison-table tr:nth-child(even) {
  background: #fcfcfd;
}