/*
Theme Name: スマイルキッチン テーマ
Theme URI: https://shimotaka-inc.com
Author: シモタカ合同会社
Author URI: https://shimotaka-inc.com
Description: スマイルキッチン テーマ Ver.01
Version: 1.0
*/

.lesson-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
  padding: 20px;
}

.lesson-card {
  width: 100%;
  max-width: 300px;
  border: 1px solid #ddd;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
}

.lesson-img {
  width: 100%;
  aspect-ratio: 4 / 3; /* ← ここを 1 / 1 にすれば正方形になるよ */
  object-fit: cover;
  display: block;
  border-bottom: 1px solid #eee;
}


.lesson-content {
  padding: 16px;
}

.lesson-title {
  font-size: 18px;
  margin-bottom: 8px;
  color: #333;
}

.lesson-desc {
  font-size: 14px;
  color: #666;
  margin-bottom: 12px;
}

.lesson-meta {
  list-style: none;
  padding: 0;
  margin: 0 0 12px 0;
  font-size: 14px;
  color: #444;
}

.lesson-meta li {
  margin-bottom: 4px;
}

.lesson-btn {
  display: inline-block;
  padding: 8px 12px;
  background: #f4a261;
  color: white;
  text-decoration: none;
  border-radius: 4px;
  font-weight: bold;
  text-align: center;
  transition: background 0.2s ease;
}

.lesson-btn:hover {
  background: #e76f51;
}

.lesson-cat {
  font-size: 13px;
  color: #777;
  margin-bottom: 8px;
}

.lesson-cat a {
  color: #f4a261;
  text-decoration: none;
}

.lesson-cat a:hover {
  text-decoration: underline;
}
.breadcrumb {
  font-size: 14px;
  color: #666;
  margin-bottom: 16px;
}

.breadcrumb a {
  color: #f4a261;
  text-decoration: none;
}

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

.lesson-meta {
  list-style: none;
  padding: 0;
  margin: 16px 0;
  font-size: 14px;
  color: #444;
}
.lesson-meta li {
  margin-bottom: 6px;
}
.lesson-cat a {
  color: #f4a261;
  text-decoration: none;
}
.lesson-cat a:hover {
  text-decoration: underline;
}
.lesson-back {
  font-weight: bold;
}
.lesson-category-area {
  padding: 40px 20px;
  background: #fafafa;
}
.category-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}
.category-card {
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 16px;
  background: #fff;
  width: 300px;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}
.category-card h3 {
  margin-bottom: 10px;
}
.category-card p {
  font-size: 14px;
  color: #666;
}
.category-btn {
  margin-top: 10px;
  display: inline-block;
  padding: 6px 12px;
  background: #f4a261;
  color: #fff;
  border-radius: 4px;
  text-decoration: none;
}
.category-btn:hover {
  background: #e76f51;
}
.category-card {
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 16px;
  background: #fff;
  width: 260px;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}
.category-img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  margin-bottom: 12px;
  object-fit: cover;
  aspect-ratio: 4/3;
}
.line-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: #06C755;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  text-decoration: none;
  z-index: 9999;
  font-size: 16px;
  font-weight: bold;
  box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.15);
}

.line-banner img {
  width: 24px;
  height: 24px;
  margin-right: 10px;
}

/* スマホ専用表示 */
@media screen and (min-width: 768px) {
  .line-banner {
    display: none;
  }
}
