@font-face {
  font-family: 'Fairfax HD';
  src: url('/static/fonts/FairfaxHD.woff2') format('woff2'),
       url('/static/fonts/FairfaxHD.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

body {
    font-family: 'Helvetica Neue', 'Arial', 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', 'Meiryo', sans-serif, 'Fairfax HD';
    margin: 0;
    padding: 20px;
    background-color: #def5f5;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 900px;
    margin: 2em auto;
    padding: 20px 40px;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

h1, h2, h3, h4, h5, h6 {
    font-weight: bold;
    margin-top: 1.5em;
    margin-bottom: 0.5em;
}

h1 {
    text-align: center;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

a {
    color: #007acc;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.markdown-body {
    margin-top: 1em;
}

.markdown-body img,
.markdown-body video,
.markdown-body iframe {
  width: 100%;
  max-width: 600px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

hr {
    border: none;
    border-top: 1px solid #ddd;
    margin: 2em 0;
}

ul, ol {
    padding-left: 1.5em;
}

pre {
    background-color: #2d2d2d;
    color: #f2f2f2;
    padding: 1em;
    border-radius: 5px;
    overflow-x: auto;
}

code {
    font-family: 'Menlo', 'Consolas', 'Monaco', monospace;
    background-color: #eee;
    padding: 0.2em 0.4em;
    border-radius: 3px;
}

pre code {
    background-color: transparent;
    padding: 0;
}

details {
    background: #fff;
    border-radius: 12px;
    padding: 10px 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

summary {
    font-size: 1.3rem;
    font-weight: bold;
    cursor: pointer;
    outline: none;
    list-style: none;
}

summary::marker {
    display: none;
}

summary::before {
    content: "▶ ";
    font-size: 1rem;
}

details[open] summary::before {
    content: "▼ ";
}

.post-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
    margin-top: 2em;
}

.post-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.post-card-link:hover {
    text-decoration: none;
}

.post-card-link:hover .post-card {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.post-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.post-card h2 {
    margin-top: 0;
    font-size: 1.6rem;
    border-bottom: none;
    padding-bottom: 0;
}

.post-card p {
    color: #555;
    margin-bottom: 1em;
}

.post-date {
    margin-top: auto;
    text-align: right;
    font-size: 0.85rem;
    color: #888;
    padding-top: 1em;
}

.post-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5em;
  color: #555;
  font-size: 0.9rem;
}

.post-tags {
  display: flex;
  gap: 8px;
}

.tag {
  background-color: #e0e0e0;
  color: #333;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.8rem;
}

.post-card .post-meta {
    margin-bottom: 1em;
}

.post-card .post-date {
    margin-top: 0;
    padding-top: 0;
}

.post-card p {
    margin-bottom: 0;
}

.visitor-counter {
  margin: 1.5em 0;
  font-size: 1.1rem;
}

.counter-images {
  display: inline-block;
  vertical-align: middle;
  line-height: 1;
}

.counter-digit {
  height: 1.2em;
  width: auto;
}

.bbs-form-container, .bbs-posts-container {
  margin-top: 2em;
  padding: 20px;
  background-color: #f9f9f9;
  border-radius: 8px;
  border: 1px solid #eee;
}

.bbs-form-container h2, .bbs-posts-container h2 {
  margin-top: 0;
  border-bottom: 2px solid #eee;
  padding-bottom: 10px;
}

.form-group {
  margin-bottom: 15px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
}

.bbs-form-container button {
  background-color: #007acc;
  color: white;
  padding: 10px 15px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1rem;
}

.bbs-form-container button:hover {
  background-color: #005f99;
}

.bbs-post {
  border-bottom: 1px solid #ddd;
  padding: 15px 0;
}

.bbs-post:last-child {
  border-bottom: none;
}

.bbs-post-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  color: #555;
  margin-bottom: 10px;
}

.bbs-post-name {
  font-weight: bold;
}

.bbs-post-message {
  line-height: 1.7;
}

/* プロフィールエリアのスタイル */
.profile-container {
  display: flex;
  align-items: center;
  margin: 2.5em 0;
  padding: 20px;
  background-color: #f9f9f9;
  border-radius: 12px;
  border: 1px solid #eee;
}

.profile-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin-right: 20px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.profile-info {
  flex-grow: 1;
}

.profile-name {
  margin: 0 0 0.5em 0;
  font-size: 1.5rem;
}

.profile-description {
  margin: 0 0 1em 0;
  color: #555;
}

.social-links a {
  margin-right: 15px;
  color: #007acc;
  font-weight: bold;
}

.social-links a:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  /* スマートフォン表示のときは、bodyの余白をなくす */
  body {
    padding: 0;
    background-color: white;
  }
  
  /* 白いコンテナのスタイルを調整 */
  .container {
    margin: 0;
    padding: 20px;
    background-color: transparent;
    box-shadow: none;
    border-radius: 0;
  }

  .profile-container {
    flex-direction: column;
    text-align: center;
  }

  .profile-icon {
    margin-right: 0;
    margin-bottom: 15px;
  }
}