body {
  font-family: Arial, sans-serif;
  background-color: #fff;
  line-height: 1.8;
}


.hero {
  position: relative;
  text-align: center;
  margin-bottom: 20px;
}

.hero-image {
  width: 100%;
  height: auto;
  max-height: 400px;
  object-fit: cover;
}


.hero-text {
  position: absolute;
  bottom: 20px;
  left: 0;
  right: 0;
  color: white;
  background-color: rgba(0, 96, 172, 0.7);
  padding: 20px;
  font-size: 24px;
  font-weight: bold;
}

.hero-overlay {
  background-color: rgba(0, 0, 0, 0.5);
  padding: 40px 20px;
  border-radius: 8px;
  text-align: center;
}

.hero-title {
  font-size: 28px;
  margin: 0;
}

.intro-section {

  max-width: 800px;

}

.time_24,
.reload_24 {
  height: 17px;
}

.meta-info {
  align-items: center;
  color: #555;
  font-size: 13px;
  margin-bottom: 10px;
  display: flex;
  gap: 3px;
}

.intro-text {
  font-size: 16px;
  line-height: 1.8;
}

.banner-area {
  text-align: center;
  margin: 30px auto;
}

.banner-area img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}

.main-column-layout {
  justify-content: center;
  width: 1300px;
  display: flex;
  margin: 0 auto 0 auto;

}

.content-container {
  flex: 3;
  min-width: 300px;
}

.content-column {
  width: 900px;
  margin: 0 20px 0 0;
}

.top-text {
  font-weight: bold;

  font-size: 23px;
  color: #333;
  background-color: #F2F5F7;
  padding: 10px 17px 10px 14px;
  border-bottom: 3px solid #2665A9;
}

.estimate-btn {
  padding: 12px 35px;

}

.sidebar {
  flex: 0 0 300px;
  border-radius: 8px;
}

.sidebar-title {
  background: white;
  text-align: center;
  font-size: 18px;
  margin-bottom: 10px;
  padding: 0;
}

.sidebar-under {
  position: sticky;
  top: 20px;
  /* 画面上からの距離 */
  align-self: flex-start;
  /* flexbox親でも高さ縮まないように */
  height: fit-content;
  /* 中身の高さで止まるように */
}

.sidebarimage {
  width: 300px;
  margin: 20px 0 0 0;
}

h1 {
  background-color: #2665A9;
  color: #fff;
  font-size: 20px;
  padding: 10px;
  margin: 30px 0;
}

h2 {
  background-color: #F2F5F7;
  padding: 10px;
  font-size: 18px;
}

h3 {
  padding-bottom: 5px;
  margin-bottom: 15px;
  font-size: 18px;
  border-bottom: 2px solid #65717b;
}

.highlight {
  background: linear-gradient(transparent 70%, #fffac0 70%);
  /* 薄い黄色の下線風 */
}

.related-links {
  list-style: none;
  padding-left: 0;
}

.related-links li {
  margin: 10px 0;
}

.related-links li a {
  text-decoration: none;
  color: #005bac;
}

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

.related-card-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.related-card {
  display: flex;
  align-items: center;
  background: white;
  border: 1px solid #ddd;
  border-radius: 8px;
  text-decoration: none;
  padding: 10px;
  gap: 10px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s, box-shadow 0.2s;
}

.related-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.related-card img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 5px;
}

.related-text {
  font-size: 14px;
  color: #333;
  line-height: 1.5;
}

.banner-area {
  margin: 40px 0;
  text-align: center;
}

.banner-area img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.toc {
  background: #f4f8ff;
  border: 1px solid #cce;
  padding: 20px;
  margin: 30px 0;
  border-radius: 8px;
}

.toc h2 {
  margin-top: 0;
  background: #f4f8ff;
  font-size: 18px;
  border-bottom: 1px solid #ccc;
}

.toc ul {
  list-style: none;
  padding-left: 0;
}

.toc li {
  margin: 8px 0;
}

.toc-h1 {
  font-weight: bold;
}

.toc-h2 {
  margin-left: 1.5em;
}

.toc a {
  text-decoration: none;
  color: #2c2c2c;
}

.toc a:hover {
  text-decoration: underline;
}

.content-container {
  max-width: 900px;
  margin: 0 auto;
}

.article {
  margin-top: 20px;
}

.article p {
  margin: 1em 0;
}

/* SNSボタン */
.share-buttons {
  margin: 40px 0;
  text-align: center;
}

.sns-button {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 20px;
  text-decoration: none;
  margin: 5px;
  font-weight: bold;
  font-size: 14px;
  color: white;
}

.sns-button.twitter {
  background: #1da1f2;
}

.sns-button.facebook {
  background: #3b5998;
}

.sns-button.line {
  background: #00c300;
}

.article-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
  margin: 40px auto;
  max-width: 1000px;
}

.article-card {
  width: 300px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 10px;
  overflow: hidden;
  text-align: left;
  text-decoration: none;
  color: #333;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: 0.3s;
}

.article-card:hover {
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.article-content {
  padding: 15px;
}

.article-title {
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 10px;
}

.article-date {
  font-size: 12px;
  color: #999;
}

.pagination {
  text-align: center;
  margin: 40px auto;
}

.pagination a {
  display: inline-block;
  padding: 8px 15px;
  margin: 0 5px;
  border: 1px solid #ccc;
  background: #fff;
  color: #333;
  text-decoration: none;
  border-radius: 5px;
}

.pagination a.active {
  background: #f08100;
  color: #000000;
  border-color: #f08100;
}

.pagination a:hover {
  background: #f5f5f5;
}


/* モバイル対応 */
@media screen and (max-width: 600px) {
  .hero-title {
    font-size: 20px;
  }

  .toc {
    font-size: 14px;
  }

  .hero-text {
    display: none;
  }

  .sns-button {
    font-size: 12px;
    padding: 8px 12px;
  }

  .main-column-layout {
    width: auto;
    display: block;
  }

  .content-column {
    width: auto;
    margin: 0 20px 0 20px;
  }

  .sidebar {
    margin: 0 20px 0 20px;
  }

  .sidebarimage {
    width: 100%;
  }

  .sidebar-under {
    text-align: center;
  }

}