/* ===== ベース設定 ===== */
html {
  overflow-x: auto;
}

body {
  margin: 0;
  font-family: sans-serif;
  line-height: 1.6;
  background-color: whitesmoke;
  color: #333;
  min-width: 1080px;
  /* overflow-x: auto; 削除 */
}

/* ===== 幅固定で中央寄せの共通クラス ===== */
.fixed-width {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  box-sizing: border-box;
}

/* ===== ヘッダー ===== */
.hwrapper {
  background-color: #FDE9FB;
  padding: 0 10px;
}
.hwrapper, .menu, .blogroll, .content-wrapper, .fwrapper {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  box-sizing: border-box;
}

.header-img {
  width: 100%;
  max-height: 250px;
  object-fit: cover;
  display: block;
}

/* ===== メニュー ===== */
.menu {
  display: flex;
  justify-content: center;
  flex-wrap: nowrap;
  overflow-x: auto;
  padding: 0;
  background-color: #F6CCFF;
  border-top: 2px solid #333;
  border-bottom: 2px solid #333;
  scrollbar-width: none;

  /* 追従用追加 */
  position: sticky;   /* スクロールに追従 */
  top: 0;             /* 上部にくっつく */
  z-index: 1000;      /* 他要素より前面に表示 */
}

.menu a {
  text-decoration: none;
  font-size: 20px;
  color: #336699;
  display: block;
  width: 100%;
  height: 100%;
  font-weight: bold;
}

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

.box {
  flex: 1 1 0%;
  text-align: center;
  padding: 35px 0;
  border-left: 1px solid #333;
  border-right: 1px solid #333;
  background-color: #F6CCFF;
  box-sizing: border-box;
}

.box:first-child {
  border-left: none;
}
.box:last-child {
  border-right: none;
}

/* ===== Blogroll ===== */
.home-title {
  width: 100%;
  max-width: 1080px;
  font-size: 40px;
  margin: 30px auto 10px;
  color: #333;
}

.blogroll {
  padding: 0 20px;
  background-color: white;
  border: 1px solid #ccc;
  max-height: 300px;
  overflow-y: auto;
}

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

.blogroll li {
  margin-bottom: 10px;
  font-size: 30px;
  padding-bottom: 10px;
  border-bottom: 1px solid #ccc;
}

.blogroll a {
  text-decoration: none;
  color: #336699;
}
.blogroll a:hover {
  text-decoration: underline;
}

/* ===== 本文＋サイドバー ===== */
.content-wrapper {
  display: flex;
  flex-direction: column; /* ← 縦方向に積む */
  gap: 20px;
  margin: 40px auto;
  width: 100%;
  max-width: 1080px;
  box-sizing: border-box;
  overflow: visible; /* 横スクロールを抑えつつ、意図しない切り捨てを防ぐ */
  padding: 0 10px; /* 両端の余白（必要に応じ調整） */
}


.main {
  width: 100%;
  margin-top: 20px;
  background-color: whitesmoke;
  order: 1; /* 明示的に main を先に */
}

.main-box {
  border: 2px solid #ccc;
  padding: 20px;
  margin-top: 10px;
  background-color: white;
  box-sizing: border-box;
}

.title{
  font-size: 40px;
  font-weight: bold;
}


.home-article p {
  font-size: 30px; /* 好きなサイズに変更 */
}

.read-more {
  display: inline-block;
  color: blue;
  text-decoration: underline;
  cursor: pointer;
}
.read-more:hover {
  color: darkblue;
}

.hidden-keyword {
  display: none;
}

/* ===== 本文構造 ===== */
.article-title {
  max-width: 900px;
  font-size: 50px;
  margin: 10px auto 70px;
  color: #333;
}

.main-danraku,
.main-tsuduki,
.main-owari,
.main-danrakudake {
  font-size: 40px;
  margin: 0 0 280px 0;
}

.main-danraku,
.main-tsuduki,
.main-owari {
  margin-top: 260px;
}

.main-owari,
.main-danrakudake {
  margin-bottom: 380px;
}

.main-kyotyo{
font-size: 60px;
font-weight: bold;
}

.underline {
  text-decoration: underline;
}

.main-img {
  width: 100%;
  margin-top: 250px;
  object-fit: cover;
  display: block;
}

.img-caption {
  text-align: center;
  font-size: 35px;
  margin-bottom: 200px;
  color: #555;
}

/* ===== 目次 ===== */
.toc {
  padding: 20px;
  background-color: #f9f9f9;
  border: 1px solid #ccc;
  margin: 250px 0;
  font-size: 40px;
}

.mokuzi{
font-size: 50px;
}


.toc ul {
  padding-left: 20px;
  font-size:40px;
}

.toc li {
  margin-bottom: 10px;
}

.toc a {
  color: #336699;
  text-decoration: none;
  font-size:40px;

}

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

.subtitle {
  border-left: 3px solid blue;
  padding-left: 8px;
  margin-bottom: 200px;
  background: linear-gradient(to right, whitesmoke 0%, transparent 100%);
  font-size:50px;
}
.subsubtitle {
  padding-left: 8px;
  margin-bottom: 200px;
  font-size:45px;

}

.no-marker {
  list-style: none;
  padding-left: 1em;
}
.no-marker a {
  color: black;
  text-decoration: none;
}
.no-marker a:hover {
  color: blue;
  text-decoration: underline;
}

.video-container {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 のアスペクト比（9 ÷ 16 = 0.5625） */
  margin: 50px 0;
  text-align: center;
  overflow: hidden;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.video-caption {
  font-size: 36px;
  color: #555;
  margin-top: 20px;
}

/* ===== ジャンル展開 ===== */
.category-block {
  margin-bottom: 20px;
  padding: 0;
  border: none;
  background: none;
  box-shadow: none;
  font-size: 30px;
}

input[type="checkbox"] {
  display: none;
}

.category-label::before {
  content: "▶";
  margin-right: 5px;
  transition: transform 0.2s;
}
input[type="checkbox"]:checked + .category-label::before {
  content: "▼";
}
.category-label {
  cursor: pointer;
  font-weight: bold;
  display: block;
  color: #333;
}
.submenu {
  display: none;
  margin-left: 20px;
  list-style-type: none;
  padding: 0;
}
input[type="checkbox"]:checked + .category-label + .submenu {
  display: block;
}
.article {
  margin-bottom: 10px;
  font-size: 30px;
  display: none;
}

.article p {
  font-size: 30px; /* 好きなサイズに変更 */
}

.article.active {
  display: block;
}


/* ===== プライバシーポリシー ===== */
.pri-title {
  width: 100%;
  max-width: 1080px;
  font-size: 30px;
  margin: 30px auto 10px;
  color: #333;
}

.privercy p {
  font-size: 30px; /* 好きなサイズに変更 */
}






/* ===== お問い合わせフォーム ===== */
.contact-form {
  flex: 1;
  padding: 20px;
  background-color: whitesmoke;
}
.contact-form h2 {
  text-align: center;
  margin-bottom: 20px;
}
.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: 5px;
  font-size: 16px;
}
.form-group textarea {
  resize: vertical;
  min-height: 200px;
}
.contact-form button {
  width: 100%;
  padding: 10px;
  background-color: #336699;
  color: #fff;
  font-size: 16px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}
.contact-form button:hover {
  background-color: #264d73;
}




.sidebar {
  padding: 10px;
}

.profile-box {
  display: flex;
  gap: 40px;  /* 20px → 40px に変更 */
  padding: 20px;
  border: 2px solid #ccc;
  background-color: whitesmoke;
  box-sizing: border-box;
  align-items: stretch;
}

.profile-img-wrapper { 
display: flex; 
flex-direction: column; 
justify-content: center; /* これで縦中央 */ 
align-items: center; 
}

/* プロフィール画像 */
.profile-img {
  width: 100%;
  max-width: 190px;    /* 小さめに */
  height: auto;
  border-radius: 10px;
  display: block;
}

/* 名前 */
.namae {
  font-size: 30px;
  font-weight: bold;
  text-align: center;
}

/* 右側のテキスト部分 */
.profile-text {
  flex: 3;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-left: 10px;  /* 左側に余白を追加 */
  font-size: 30px;
  line-height: 1.6;
}

/* 個別テキスト */
.til {
  font-size: 30px;
  margin-bottom: 10px;
}

.spacer {
  height: 80px;
}

/* ===== 検索フォーム ===== */
.search-form input[type="text"] {
  width: calc(100% - 70px); /* ボタンとの隙間を考慮 */
  margin: 50px 0 20px 0;
  padding: 24px 20px;       /* 高さを大きく */
  font-size: 30px;           /* 文字も大きく */
  box-sizing: border-box;
  border-radius: 6px;
  border: 1px solid #ccc;
}

.search-form button {
  padding: 24px 16px;        /* ボタンも大きく */
  font-size: 30px;           /* 文字も大きく */
  margin-left: 5px;
  border-radius: 6px;
  border: 1px solid #333;
  cursor: pointer;
}


/* ===== アーカイブ ===== */
.archive ul {
  padding-left: 20px;
  margin: 0;
  font-size: 30px;
}
.archive li {
  margin-bottom: 5px;
}


/* ===== 関連記事 ===== */

  /* ===== 関連記事カードのデザイン ===== */
   /* 関連記事全体 */
.related-articles-sidebar {
  margin: 40px auto;        /* 上下40px、左右中央 */
  max-width: 1080px;         /* サイドバー最大幅 */
  padding: 0 10px;          /* 横余白 */
  box-sizing: border-box;
}

/* 見出し */
.related-articles-sidebar h3 {
  font-size: 24px;
  border-bottom: 2px solid #333;
  margin-bottom: 20px;
  text-align: center;       /* 見出しも中央揃え */
}

/* 記事リスト */
.related-articles-sidebar ul#relatedList {
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: center;      /* カードを中央揃え */
  padding: 0;
  list-style: none;
}

/* 各カード */
.related-card {
  display: block;
  width: 100%;
  max-width: 1080px;         /* カードの最大幅 */
  background-color: white;
  border: 1px solid #ccc;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  padding: 10px;
  text-decoration: none;
  color: #333;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* ホバー時 */
.related-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

/* タイトル */
.related-card h4 {
  font-size: 20px;
  margin: 0 0 5px 0;
  text-align: left;
}

/* 説明文 */
.related-card p {
  font-size: 16px;
  color: #666;
  margin: 0;
}


.social-link{

  font-size: 30px;
}


/* ===== フッター ===== */
.fwrapper {
  background-color: #FDE9FB;
  padding: 0 10px;
}
.footer {
  margin: auto;
  max-width: 800px;
  padding: 10px;
  text-align: center;
}