/*
Theme Name: GentleStyle Archive
Theme URI: https://example.com/gentlestyle
Author: GentleStyle
Description: Editorial library-style blog theme with dynamic WordPress post rendering.
Version: 1.2.3
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
Text Domain: gentlestyle-archive
*/

html,
body {
  margin: 0;
  padding: 0;
}

body.gentlestyle-body {
  background: #15231c;
  font-family: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", "Times New Roman", serif;
}

.gentlestyle-shell {
  width: 100%;
  max-width: 100%;
  margin: 0;
  border-radius: 0;
}

.gentlestyle-content {
  color: #2c2c2a;
  font-variant-numeric: lining-nums;
}

.gentlestyle-numeric {
  display: inline;
  vertical-align: baseline;
  line-height: inherit;
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Segoe UI", sans-serif;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums lining-nums;
  font-feature-settings: "lnum" 1, "tnum" 1;
}

.gentlestyle-content p {
  margin: 0 0 2rem;
  line-height: 2.1;
  text-align: justify;
}

.gentlestyle-content h2,
.gentlestyle-content h3,
.gentlestyle-content h4 {
  color: #1a1a18;
  margin: 3rem 0 1.2rem;
  line-height: 1.4;
}

.gentlestyle-content ul,
.gentlestyle-content ol {
  margin: 0 0 2rem 1.2rem;
  line-height: 2;
}

.gentlestyle-content blockquote {
  margin: 2.5rem 0;
  padding: 1.25rem 1.5rem;
  border-left: 4px solid #15231c;
  background: rgba(239, 235, 224, 0.5);
  font-style: italic;
}

.gentlestyle-content a {
  color: #15231c;
  text-decoration: underline;
}

.gentlestyle-content img {
  height: auto;
  max-width: 100%;
}

.gentlestyle-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 2rem;
  background: #fcfbf8;
}

.gentlestyle-content th,
.gentlestyle-content td {
  border: 1px solid #d5cfc4;
  padding: 0.75rem 0.8rem;
  text-align: left;
  vertical-align: top;
  font-size: 0.92rem;
  line-height: 1.75;
}

.gentlestyle-content th {
  background: #efebe0;
  font-weight: 700;
  color: #1a1a18;
}

.gentlestyle-content pre {
  margin: 0 0 2rem;
  padding: 1rem;
  overflow-x: auto;
  background: #1a1a18;
  color: #f4f1ea;
  border: 1px solid #2a3b33;
  font-size: 0.82rem;
  line-height: 1.75;
}

.gentlestyle-content code {
  font-family: "SFMono-Regular", Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

.gentlestyle-affiliate-box {
  margin: 2.25rem 0;
  padding: 1.25rem;
  border: 1px solid #d5cfc4;
  background: #fcfbf8;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.03);
}

.gentlestyle-affiliate-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.gentlestyle-affiliate-badge {
  display: inline-block;
  padding: 0.1rem 0.45rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  background: #8b2626;
  color: #fff;
}

.gentlestyle-affiliate-position {
  font-size: 0.75rem;
  color: #8a857a;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.gentlestyle-affiliate-note {
  margin: 0 0 0.9rem;
  color: #4a4741;
  font-size: 0.85rem;
  line-height: 1.8;
}

.gentlestyle-affiliate-button {
  display: inline-block;
  width: 100%;
  box-sizing: border-box;
  text-align: center;
  border: 1px solid #15231c;
  background: #15231c;
  color: #f4f1ea;
  font-weight: 700;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  text-decoration: none;
  padding: 0.85rem 1rem;
  transition: all 0.2s ease;
}

.gentlestyle-affiliate-button:hover {
  background: #f4f1ea;
  color: #15231c;
}

.gentlestyle-conversion-panel {
  margin: 2.5rem 0 0;
  padding: 1.25rem;
  border: 1px solid #d5cfc4;
  background: linear-gradient(180deg, #fcfbf8 0%, #f4f1ea 100%);
}

.gentlestyle-conversion-kicker {
  margin: 0 0 0.45rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: #8a857a;
}

.gentlestyle-conversion-title {
  margin: 0 0 0.8rem;
  font-size: 1.2rem;
  line-height: 1.5;
  color: #1a1a18;
}

.gentlestyle-conversion-body {
  margin: 0 0 1rem;
  color: #4a4741;
  font-size: 0.92rem;
  line-height: 1.9;
}

.gentlestyle-conversion-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.gentlestyle-conversion-link {
  display: inline-block;
  padding: 0.72rem 1rem;
  border: 1px solid #15231c;
  background: #15231c;
  color: #f4f1ea;
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.gentlestyle-conversion-link:hover {
  background: #f4f1ea;
  color: #15231c;
}

.gentlestyle-conversion-link--ghost {
  background: transparent;
  color: #15231c;
}

.gentlestyle-conversion-link--ghost:hover {
  background: #15231c;
  color: #f4f1ea;
}

@media (max-width: 782px) {
  body.admin-bar .min-h-screen {
    min-height: calc(100vh - 46px);
  }
}

@media (max-width: 1024px) {
  .gentlestyle-content {
    font-size: 1rem;
    line-height: 1.95;
  }

  .gentlestyle-content p {
    margin-bottom: 1.5rem;
    line-height: 1.95;
  }

  .gentlestyle-content th,
  .gentlestyle-content td {
    font-size: 0.86rem;
    padding: 0.65rem;
  }
}

@media (max-width: 640px) {
  .gentlestyle-content {
    font-size: 0.95rem;
  }

  .gentlestyle-affiliate-box {
    margin: 1.5rem 0;
    padding: 1rem;
  }

  .gentlestyle-affiliate-button {
    font-size: 0.74rem;
    letter-spacing: 0.08em;
    padding: 0.75rem 0.8rem;
  }

  .gentlestyle-conversion-title {
    font-size: 1.05rem;
  }

  .gentlestyle-conversion-links {
    flex-direction: column;
  }

  .gentlestyle-conversion-link {
    text-align: center;
    width: 100%;
    box-sizing: border-box;
  }
}
