/* ===== 基本設定 ===== */
body {
  font-family: "Segoe UI", "Hiragino Sans", "Meiryo", sans-serif;
  margin: 0;
  color: #333;
  background: #fff;
  line-height: 1.7;
}

/* ===== ヘッダー＆ナビ ===== */
.site-header {
  text-align: center;
  padding: 20px 0 10px;
  background: #fff;
  border-bottom: 3px solid #dc143c;
}

.site-header h1 {
  margin: 0 0 10px;
  font-size: 1.6em;
  color: #333;
}

.main-nav ul {
  display: flex;
  justify-content: center;
  list-style: none;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
}

.main-nav ul li {
  margin: 5px 10px;
}

.main-nav ul li a {
  text-decoration: none;
  padding: 8px 15px;
  border-radius: 20px;
  font-weight: bold;
  color: #333;
  transition: 0.3s;
  border: 1px solid transparent;
}

.main-nav ul li a:hover,
.main-nav ul li a.active {
  border-color: #dc143c;
  color: #dc143c;
}

/* ===== 2カラム構成 ===== */
.container {
  display: flex;
  flex-wrap: wrap;
  max-width: 1100px;
  margin: 40px auto;
  padding: 0 20px;
}

main {
  flex: 1;
  min-width: 0;
}

aside {
  width: 280px;
  margin-left: 40px;
}

/* ===== サイドバー ===== */
aside h3 {
  border-bottom: 2px solid #dc143c;
  padding-bottom: 5px;
  margin-bottom: 15px;
}

aside ul {
  list-style: none;
  padding: 0;
}

aside ul li {
  margin-bottom: 10px;
}

aside ul li a {
  color: #dc143c;
  text-decoration: none;
}

aside ul li a:hover {
  text-decoration: underline;
}

/* ===== トップページ（グレー系＋オレンジ） ===== */
.theme-default body {
  background: #f5f5f5; /* ページ全体の薄いグレー背景 */
}

.theme-default main h2 {
  color: #000000; /* 見出しはオレンジ */
}

.theme-default main {
  border-top: 3px solid #dc143c; /* 区切りラインもオレンジ */
  background: #ffffff; /* コンテンツ部分は白背景 */
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

/* ===== 各ページテーマ ===== */
.theme-table main h2 { color: #E65100; }
.theme-box main h2 { color: #0277BD; }
.theme-button main h2 { color: #2E7D32; }
.theme-speech main h2 { color: #6A1B9A; }

.theme-table main { border-top: 3px solid #F57C00; }
.theme-box main { border-top: 3px solid #29B6F6; }
.theme-button main { border-top: 3px solid #43A047; }
.theme-speech main { border-top: 3px solid #8E24AA; }

/* ===== フッター ===== */
footer {
  text-align: center;
  padding: 30px 0;
  background: #fafafa;
  border-top: 1px solid #eee;
  color: #777;
  margin-top: 40px;
}

/* ===== トップページ用（カード型レイアウト） ===== */
.theme-default {
  background-color: #FFFFFF;
}

.theme-default main {
  background: #fff;
  padding: 20px 25px;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.theme-default main h2 {
  color: #F57C00;
  text-align: center;
  margin-bottom: 30px;
}

/* ===== カードレイアウト ===== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 25px;
  margin-top: 30px;
}

.card {
  background: #fff;
  border-radius: 12px;
  padding: 25px 20px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.05);
  transition: 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.08);
}

.card h3 {
  margin-top: 0;
  font-size: 1.2em;
}

.card p {
  color: #555;
  font-size: 0.95em;
  margin: 10px 0 20px;
  line-height: 1.6;
}

/* ===== カードのボタン ===== */
.card-btn {
  display: inline-block;
  padding: 8px 20px;
  border-radius: 30px;
  text-decoration: none;
  color: #fff;
  font-weight: bold;
  transition: 0.3s;
}

/* ===== カラー別カード ===== */
.card-orange { border-top: 5px solid #F57C00; }
.card-orange .card-btn { background: #F57C00; }
.card-orange .card-btn:hover { background: #E65100; }

.card-blue { border-top: 5px solid #039BE5; }
.card-blue .card-btn { background: #039BE5; }
.card-blue .card-btn:hover { background: #0277BD; }

.card-green { border-top: 5px solid #43A047; }
.card-green .card-btn { background: #43A047; }
.card-green .card-btn:hover { background: #2E7D32; }

.card-purple { border-top: 5px solid #8E24AA; }
.card-purple .card-btn { background: #8E24AA; }
.card-purple .card-btn:hover { background: #6A1B9A; }

/* ===== レスポンシブ補強 ===== */
@media (max-width: 900px) {
  .card-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 600px) {
  .card-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== レスポンシブ ===== */
@media (max-width: 900px) {
  .container {
    flex-direction: column;
  }
  aside {
    width: 100%;
    margin: 30px 0 0;
  }
}

/* フッターリンクKEN-BLOG */
.backlink {
  margin-bottom: 15px;
  text-align: center;
}
.btn-link {
  display: inline-block;
  background: #E53935;
  color: #fff;
  text-decoration: none;
  padding: 8px 18px;
  border-radius: 25px;
  transition: 0.3s;
}
.btn-link:hover {
  background: #B71C1C;
}

/* パンくずリスト */
.breadcrumb {
  font-size: 0.9em;
  margin: 10px 0 20px;
  color: #666;
}
.breadcrumb a {
  color: #E53935;
  text-decoration: none;
}
.breadcrumb a:hover {
  text-decoration: underline;
}
