@charset "UTF-8";

html {
  font-size: 100%;
}

body {
  color: #666666;
  font-family: "Noto Sans JP", "Roboto", sans-serif;
  font-weight: 500;
  background-color: #f9f9f9;
  line-height: 1.6;
  margin: 0;
  padding: 0;
}

main {
  padding: 0 2rem;
}

a {
  color: #2997ab;
  text-decoration: none;
}

a:hover {
  opacity: 0.7;
}

.post-content h2 {
  font-size: 24px;
  line-height: 1.1em;
  margin-bottom: 40px;
  margin-top: 2rem;
}

.post-content h3 {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.1em;
  margin-bottom: 20px;
  margin-top: 2rem;
}

.post {
  max-width: 800px;
  margin: 20px auto;
  background: #fff;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
}

.post-title {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  color: #222222;
}

.post-meta {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 1.5rem;
}

.category {
  margin-left: 1rem;
  padding: 0.2rem 0.5rem;
  background: #eee;
  border-radius: 5px;
}

.post-content img {
  display: block;
  margin: 1.5rem auto;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.related-posts h4 {
  margin-top: 3rem;
  font-size: 1.2rem;
}

.related-posts li a {
  color: #2997ab;
  text-decoration: none;
}

.related-posts li a:hover {
  text-decoration: none;
}

.post-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 3em;
  padding-top: 2em;
  border-top: 1px solid #ddd;
  font-size: 0.9em;
}
.post-nav a {
  background-color: #f5f5f5;
  padding: 10px 15px;
  border-radius: 8px;
  text-decoration: none;
  color: #333;
  transition: background-color 0.2s;
}
.post-nav a:hover {
  background-color: #e0e0e0;
}

.post-tags {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  display: inline-block;
  background-color: #f5f5f5;
  color: #666;
  font-size: 0.85rem;
  padding: 4px 10px;
  border-radius: 20px;
  border: 1px solid #ccc;
  transition: all 0.2s ease;
  text-decoration: none;
}

.quote {
  border-left: 4px solid #ccc;
  background-color: #f5f5f5;
  padding: 1rem 1.5rem;
  margin: 2rem 0;
  font-style: normal; /* ← ここで斜体をOFFにする！ */
  font-size: 1rem;
  line-height: 1.7;
  position: relative;
}

.quote::before {
  content: "“";
  font-size: 2.5rem;
  color: #ccc;
  position: absolute;
  top: -10px;
  left: 10px;
}

.quote-name {
  display: block;
  margin-top: 1rem;
  text-align: right;
  font-size: 0.9rem;
  color: #666;
}

/* ul用 */
.post-content ul {
  margin: 2rem 0;
  padding-left: 2rem;
  list-style-type: disc;
}

.post-content ul li {
  list-style-type: disc;
  display: list-item;
  margin-bottom: 1rem;
  line-height: 1;
}

/* ol用 */
.post-content ol {
  list-style-type: decimal;
  padding-left: 2rem;
  margin: 2rem 0;
}

.post-content ol li {
  list-style-type: decimal;
  display: list-item;
  margin-bottom: 1rem;
  line-height: 1;
}

.video-wrapper {
  display: flex;
  justify-content: center;
  margin: 2rem 0;
}

.video-wrapper iframe {
  max-width: 100%;
  border-radius: 8px; /* お好みで */
}

/*---------------
スマートフォン
----------------*/

@media screen and (max-width: 767px) {
  main {
    padding-top: 60px;
  }

  .post-content h2 {
    font-size: 20px;
  }

  .post-content h3 {
    font-size: 18px;
  }

  .post-title {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    padding-top: 60px;
    color: #222222;
  }
}
