body {
  margin: 0;
  font-family: "Hiragino Kaku Gothic ProN", Arial, sans-serif;
  line-height: 1.7;
  color: #222;
  background: #fff;
}


/* 中央コンテンツ */
.container {
  width: 90%;
  max-width: 700px;
  margin: 0 auto;
}

.header-logo {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  font-size: 24px;
  font-weight: bold;
  padding: 3px 0;
}


.header-logo a {
  display: flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
}

.header-logo a:hover {
  opacity: 0.8;
}


.header-pr {
  font-size: 12px;
  font-weight: normal;
  color: #777;
  margin-left: auto;
  padding-bottom: 2px;
}


.site-icon {
  width: 24px;
  height: 24px;
  display: block;
}


.pankuzu {
  font-size: 12px;
}



.lp-img {
  max-width: 100%;
  height: auto;
  display: block;
}




/* ヘッダーカテゴリーリスト */
#category-list {
  display: flex;
  width: 100%;
  background: #1a365d;
}

.category-link {
  flex-grow: 1;
  text-align: center;
  padding: 7px 0;
  text-decoration: none;
  color: #fff;
  border-right: 1px solid #ddd;
  white-space: nowrap;
}

.category-link:last-child {
  border-right: none;
}



/* カテゴリindex */
.category-h1 {
  font-size: 22px;
  margin: 40px 0 20px;
  border-left: 4px solid #1a365d;
  padding-left: 10px;
  font-weight: bold;
}


#category-description {
  margin-bottom: 25px;
}



/* 目次 */
.mokuji {
  background: #f7f7f7;
  padding: 20px;
  margin: 40px 0;
}

.mokuji-title {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 15px;
  cursor: pointer;
}

#mokuji-list {
  margin: 0;
  padding-left: 20px;
  display: none;
  list-style-type: decimal;
}

#mokuji-list.open {
  display: block;
}

#mokuji-list ul {
  margin-top: 8px;
}

#mokuji-list li {
  margin-bottom: 8px;
}

#mokuji-list a {
  color: #333;
  text-decoration: none;
}

.mokuji-child {
  padding-left: 20px;
  font-size: 14px;
  list-style-type: disc;
}



/*TOPページ h2*/
.top-h2 {
  font-size: 22px;
  margin-top: 20px;
  margin-bottom: 15px;
  border-left: 4px solid #1a365d;
  padding-left: 10px;
}



/* あわせて読みたい h2 */
.related {
  margin-top: 70px;
  border-top: 1px solid #ddd;
}

.related-h2 {
  font-size: 22px;
  margin: 25px 0; 
  border-left: 4px solid #1a365d;
  padding-left: 10px;
}



/* 記事カード */
.article-card {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #222;
  border: 1px solid #ddd;
  border-radius: 8px;
  margin-bottom: 6px;
  background: #fafafa;
  overflow: hidden;
}

.article-card img {
  width: 120px;
  height: 80px;
  object-fit: cover;
}

.article-card h3 {
  margin: 0;
  padding: 0 15px;
  font-size: 16px;
  border-left: none;
}

.article-card:hover {
  background: #f5f5f5;
}


/* 本文見出し */
article h1 {
  font-size: 30px;
  line-height: 1.4;
  margin-bottom: 20px;
}

article h2 {
  font-size: 22px;
  margin-top: 70px;
  margin-bottom: 20px;
  border-left: 10px solid #1a365d;
  padding-left: 10px;
}

article h3{
  font-size: 18px;
  margin-top: 50px;
  margin-bottom: 15px;
  border-left: 4px solid #1a365d;
  padding-left: 10px;
}



/* 段落 */
p {
  font-size: 16px;
  margin-bottom: 15px;
  line-height: 1.8;
}

.lead {
  font-size: 18px;
  font-weight: bold;
}



/* リスト */
ul {
  padding-left: 20px;
  margin-bottom: 20px;
}

li {
  margin-bottom: 8px;
}



/* CTAボタン */
.article-cta {
  margin-top: 80px;
}

.article-cta-text {
  line-height: 1.6;
  margin: 0 0 5px;
  text-align: center;
}


.cta-large {
  background: #e67e22;
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  text-align: center;
  box-shadow: 0 4px 0 #b45309;
  transition: 0.1s;
}


.cta-large {
  display: block;
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  box-sizing: border-box;

  padding: 18px 20px;
  font-size: 18px;
}


.cta-large:hover {
  transform: translateY(4px);
  box-shadow: none;
}


/* グレーBOX */
.gray-box {
  border: 1px solid #ddd;
  padding: 16px;
  border-radius: 8px;
  background: #fafafa;
  margin: 20px 0;
}

.gray-box p {
  margin: 0 0 10px;
  font-size: 16px;
  line-height: 1.7;
  color: #333;
}

.gray-box p:last-child {
  margin-bottom: 0;
  font-size: 14px;
  color: #666;
}



/*フッター*/
.footer {
  text-align: center;
  margin-top: 60px;
  padding: 20px 0;
  font-size: 12px;
  color: #999;
}

.footer p {
  font-size: 12px;
  margin: 0 0 8px;
}

.footer a {
  color: inherit;
  text-decoration: none;
}

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



/*/////////////////////////////////////////////*/

/* スマホ対応 */
@media screen and (max-width: 768px) {

.header-logo{
    font-size: 18px;
    font-weight: bold;
  }

.site-icon {
  width: 20px;
  height: 20px;
  display: block;
}


#category-list {
    width: 100vw;
    margin-left: calc(50% - 50vw);
  }


.category-link {
    font-size: 0.9rem;
    padding: 7px 0;
  }


.article-card h3 {
    font-size: 14px;
}


article h1 {
  font-size: 24px;
  line-height: 1.4;
  margin-bottom: 20px;
}

.container {
    padding: 25px 0;
  }

}