/**
 * 静的ブログページ用スタイルシート
 * React SPAのBlogListPage/BlogPostPageと同じ見た目を実現
 */

/* === リセット & ベーススタイル === */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: "Roboto", "Hiragino Kaku Gothic ProN", "ヒラギノ角ゴ ProN", "Meiryo", "メイリオ", sans-serif;
  background-color: #ffffff;
  color: rgba(0, 0, 0, 0.87);
}

/* === ヘッダー === */
.static-header-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 75px;
  background-color: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(20px);
  box-shadow: rgba(0, 0, 0, 0.1) 0px 2px 20px 0px;
  z-index: 1100;
}

.static-header-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 16px 24px;
  height: 100%;
  display: flex;
  align-items: center;
}

.static-header-logo {
  width: 150px;
  height: auto;
  margin-left: -20px;
}

.static-header-title {
  color: rgba(0, 0, 0, 0.87);
  font-size: 1.25rem;
  font-weight: 500;
  text-decoration: none;
  display: block;
}

@media (max-width: 900px) {
  .static-header-bar {
    position: static;
    backdrop-filter: none;
    opacity: 1;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  }
}

/* === フッター === */
.static-footer {
  background-color: transparent;
  padding: 24px 16px 40px;
  margin-top: auto;
  padding-bottom: 40px;
}

.static-footer-container {
  max-width: 600px;
  margin: 0 auto;
}

.static-footer-grid {
  display: grid;
  grid-template-columns: repeat(2, auto);
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.static-footer-link {
  color: rgba(0, 0, 0, 0.6);
  text-decoration: none;
  font-size: 0.875rem;
  white-space: nowrap;
  margin: 0 16px;
  cursor: pointer;
}

.static-footer-link:hover {
  opacity: 0.8;
  text-decoration: underline;
}

.static-footer-copyright {
  margin-top: 24px;
  text-align: center;
  color: rgba(0, 0, 0, 0.6);
  font-size: 1rem;
  white-space: nowrap;
}

@media (min-width: 600px) {
  .static-footer-grid {
    grid-template-columns: repeat(4, auto);
  }
}

/* === コンテナ === */
.static-blog-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 24px;
  padding-top: 88px;
}

@media (max-width: 900px) {
  .static-blog-container {
    padding-top: 24px;
  }
}

/* === ブログリストページ === */
.static-blog-header {
  margin-bottom: 32px;
  padding-bottom: 16px;
  border-bottom: 2px solid rgba(255, 173, 128, 0.15);
}

.static-blog-title {
  margin: 0 0 8px 0;
  font-weight: 700;
  font-size: 1.875rem;
  color: rgba(0, 0, 0, 0.87);
}

.static-blog-description {
  margin: 0;
  color: rgba(0, 0, 0, 0.6);
  line-height: 1.7;
}

.static-posts-container {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.static-blog-card {
  overflow: hidden;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  transition: all 0.3s ease-in-out;
}

.static-blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  border-color: rgba(255, 173, 128, 0.2);
}

.static-blog-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.static-blog-card-content {
  padding: 16px;
  transition: background-color 0.3s ease-in-out;
}

.static-blog-card-link:hover .static-blog-card-content {
  background-color: rgba(255, 173, 128, 0.01);
}

.static-blog-tags {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.static-blog-tag {
  display: inline-block;
  background-color: rgba(255, 173, 128, 0.1);
  color: #ff9570;
  padding: 4px 12px;
  border-radius: 16px;
  font-size: 0.75rem;
  font-weight: 500;
  border: 1px solid rgba(255, 173, 128, 0.2);
}

.static-blog-card-title {
  margin: 0 0 16px 0;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.4;
  color: rgba(0, 0, 0, 0.87);
}

.static-blog-card-description {
  margin: 0;
  color: rgba(0, 0, 0, 0.6);
  line-height: 1.7;
  font-size: 1rem;
}

.static-blog-no-posts {
  text-align: center;
  padding: 32px;
}

.static-blog-no-posts p {
  color: rgba(0, 0, 0, 0.6);
  font-size: 1.125rem;
}

/* === ブログ記事ページ === */
.static-blog-back-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  margin-bottom: 24px;
  color: rgba(0, 0, 0, 0.6);
  background-color: transparent;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.875rem;
  text-decoration: none;
  transition: background-color 0.2s;
}

.static-blog-back-button:hover {
  background-color: rgba(0, 0, 0, 0.04);
}

.static-blog-back-button-icon {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.static-blog-paper {
  overflow: hidden;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
}

.static-blog-paper-header {
  padding: 24px 16px;
  background: linear-gradient(180deg, rgba(255, 173, 128, 0.05) 0%, transparent 100%);
}

.static-blog-paper-title {
  margin: 0 0 16px 0;
  font-weight: 700;
  font-size: 1.875rem;
  line-height: 1.3;
  color: rgba(0, 0, 0, 0.87);
}

.static-blog-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  color: rgba(0, 0, 0, 0.6);
  font-size: 0.875rem;
}

.static-blog-meta-item {
  display: flex;
  align-items: center;
  gap: 4px;
}

.static-blog-meta-icon {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.static-blog-divider {
  border: none;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  margin: 0;
}

.static-blog-paper-content {
  padding: 24px 16px;
}

/* === 記事コンテンツスタイル === */
.static-blog-paper-content h1,
.static-blog-paper-content h2 {
  margin-top: 24px;
  margin-bottom: 16px;
  font-weight: 700;
  font-size: 1.5rem;
  line-height: 1.4;
  color: rgba(0, 0, 0, 0.87);
  border-bottom: 2px solid rgba(255, 173, 128, 0.2);
  padding-bottom: 8px;
}

.static-blog-paper-content h3 {
  margin-top: 16px;
  margin-bottom: 8px;
  font-weight: 700;
  font-size: 1.125rem;
  color: rgba(0, 0, 0, 0.87);
}

.static-blog-paper-content h4,
.static-blog-paper-content h5,
.static-blog-paper-content h6 {
  margin-top: 16px;
  margin-bottom: 8px;
  font-weight: 600;
  color: rgba(0, 0, 0, 0.87);
}

.static-blog-paper-content p {
  margin-bottom: 16px;
  line-height: 1.8;
  font-size: 1rem;
  color: rgba(0, 0, 0, 0.6);
}

.static-blog-paper-content ul,
.static-blog-paper-content ol {
  margin-bottom: 16px;
  padding-left: 24px;
}

.static-blog-paper-content li {
  margin-bottom: 8px;
  line-height: 1.8;
  color: rgba(0, 0, 0, 0.6);
}

.static-blog-paper-content strong {
  font-weight: 700;
  color: rgba(0, 0, 0, 0.87);
}

.static-blog-paper-content code {
  background-color: rgba(255, 173, 128, 0.08);
  color: #d85a00;
  padding: 2px 8px;
  border-radius: 4px;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.9em;
  font-weight: 500;
}

.static-blog-paper-content pre {
  background-color: #f5f5f5;
  padding: 16px;
  border-radius: 8px;
  overflow: auto;
  margin-bottom: 16px;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.static-blog-paper-content pre code {
  background-color: transparent;
  color: rgba(0, 0, 0, 0.87);
  padding: 0;
}

.static-blog-paper-content blockquote {
  border-left: 4px solid #ff9570;
  padding-left: 16px;
  padding-top: 8px;
  padding-bottom: 8px;
  margin: 16px 0;
  background-color: rgba(255, 173, 128, 0.03);
  font-style: italic;
  color: rgba(0, 0, 0, 0.6);
}

.static-blog-paper-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-top: 16px;
  margin-bottom: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.static-blog-paper-content a {
  color: #ff9570;
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid rgba(255, 149, 112, 0.3);
  transition: all 0.2s ease-in-out;
}

.static-blog-paper-content a:hover {
  border-bottom-color: #ff9570;
  background-color: rgba(255, 173, 128, 0.05);
}

.static-blog-paper-content hr {
  border: none;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  margin: 24px 0;
}

/* === CTA セクション === */
.static-blog-cta {
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  background: linear-gradient(180deg, transparent 0%, rgba(255, 173, 128, 0.03) 100%);
  text-align: center;
}

.static-blog-cta-title {
  font-weight: 600;
  font-size: 1.25rem;
  margin: 0;
  color: rgba(0, 0, 0, 0.87);
}

.static-blog-cta-description {
  max-width: 600px;
  color: rgba(0, 0, 0, 0.6);
  margin: 0;
}

.static-blog-cta-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: #ffad80;
  color: #ffffff;
  padding: 12px 32px;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(255, 173, 128, 0.2);
  transition: all 0.2s ease-in-out;
  margin-top: 8px;
}

.static-blog-cta-button:hover {
  background-color: #ff9570;
  box-shadow: 0 6px 16px rgba(255, 173, 128, 0.3);
  transform: translateY(-2px);
}

.static-blog-cta-button-icon {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* === Floating Action Button === */
.static-blog-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: #ffad80;
  color: #ffffff;
  padding: 12px 16px;
  border: none;
  border-radius: 24px;
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(255, 173, 128, 0.2);
  transition: all 0.3s ease-in-out;
  z-index: 1000;
}

.static-blog-fab:hover {
  background-color: #ff9570;
  box-shadow: 0 6px 16px rgba(255, 173, 128, 0.3);
  transform: translateY(-2px);
}

.static-blog-fab.hidden {
  opacity: 0;
  visibility: hidden;
}

.static-blog-fab-icon {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* === タブレット以上 === */
@media (min-width: 768px) {
  .static-blog-title {
    font-size: 2.5rem;
  }

  .static-blog-card-content {
    padding: 24px;
  }

  .static-blog-card-title {
    font-size: 1.25rem;
  }

  .static-blog-paper-header {
    padding: 32px;
  }

  .static-blog-paper-title {
    font-size: 2.5rem;
  }

  .static-blog-paper-content {
    padding: 32px;
  }

  .static-blog-paper-content h1,
  .static-blog-paper-content h2 {
    font-size: 1.75rem;
  }

  .static-blog-paper-content h3 {
    font-size: 1.25rem;
  }

  .static-blog-cta {
    padding: 32px 24px;
  }
}

/* === ダークモード対応 === */
@media (prefers-color-scheme: dark) {
  body {
    background-color: #1e1e2f;
    color: rgba(255, 255, 255, 0.87);
  }

  .static-header-bar {
    background-color: rgba(30, 30, 47, 0.8);
  }

  .static-header-title {
    color: #ffffff;
  }

  .static-footer-link {
    color: rgba(255, 255, 255, 0.6);
  }

  .static-footer-copyright {
    color: rgba(255, 255, 255, 0.6);
  }

  /* ブログリスト */
  .static-blog-header {
    border-bottom-color: rgba(255, 173, 128, 0.2);
  }

  .static-blog-title {
    color: #ffffff;
  }

  .static-blog-description {
    color: rgba(255, 255, 255, 0.7);
  }

  .static-blog-card {
    background: linear-gradient(135deg, #2b2b3c 0%, #1e1e2f 100%);
    border-color: rgba(255, 255, 255, 0.1);
  }

  .static-blog-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 173, 128, 0.3);
  }

  .static-blog-card-link:hover .static-blog-card-content {
    background-color: rgba(255, 173, 128, 0.02);
  }

  .static-blog-tag {
    background-color: rgba(255, 173, 128, 0.15);
    color: #ffad80;
    border-color: rgba(255, 173, 128, 0.3);
  }

  .static-blog-card-title {
    color: #ffffff;
  }

  .static-blog-card-description {
    color: #d0d0d0;
  }

  .static-blog-no-posts p {
    color: rgba(255, 255, 255, 0.6);
  }

  /* ブログ記事 */
  .static-blog-back-button {
    color: rgba(255, 255, 255, 0.7);
  }

  .static-blog-back-button:hover {
    background-color: rgba(255, 255, 255, 0.05);
  }

  .static-blog-paper {
    background: linear-gradient(135deg, #2b2b3c 0%, #1e1e2f 100%);
    border-color: rgba(255, 255, 255, 0.1);
  }

  .static-blog-paper-header {
    background: linear-gradient(180deg, rgba(255, 173, 128, 0.08) 0%, transparent 100%);
  }

  .static-blog-paper-title {
    color: #ffffff;
  }

  .static-blog-meta {
    color: rgba(255, 255, 255, 0.7);
  }

  .static-blog-divider {
    border-top-color: rgba(255, 255, 255, 0.1);
  }

  .static-blog-paper-content h1,
  .static-blog-paper-content h2 {
    color: #ffffff;
    border-bottom-color: rgba(255, 173, 128, 0.3);
  }

  .static-blog-paper-content h3 {
    color: #f0f0f0;
  }

  .static-blog-paper-content h4,
  .static-blog-paper-content h5,
  .static-blog-paper-content h6 {
    color: #e0e0e0;
  }

  .static-blog-paper-content p {
    color: #d0d0d0;
  }

  .static-blog-paper-content li {
    color: #d0d0d0;
  }

  .static-blog-paper-content strong {
    color: #ffffff;
  }

  .static-blog-paper-content code {
    background-color: rgba(255, 173, 128, 0.1);
    color: #ffad80;
  }

  .static-blog-paper-content pre {
    background-color: #1a1a2e;
    border-color: rgba(255, 255, 255, 0.1);
  }

  .static-blog-paper-content pre code {
    color: #e0e0e0;
  }

  .static-blog-paper-content blockquote {
    border-left-color: #ffad80;
    background-color: rgba(255, 173, 128, 0.05);
    color: #c0c0c0;
  }

  .static-blog-paper-content img {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  }

  .static-blog-paper-content a {
    color: #ffad80;
    border-bottom-color: rgba(255, 173, 128, 0.3);
  }

  .static-blog-paper-content a:hover {
    border-bottom-color: #ffad80;
    background-color: rgba(255, 173, 128, 0.1);
  }

  .static-blog-paper-content hr {
    border-top-color: rgba(255, 255, 255, 0.1);
  }

  .static-blog-cta {
    background: linear-gradient(180deg, transparent 0%, rgba(255, 173, 128, 0.05) 100%);
  }

  .static-blog-cta-title {
    color: #ffffff;
  }

  .static-blog-cta-description {
    color: #d0d0d0;
  }
}
