@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Noto+Sans+JP:wght@100..900&family=Noto+Serif+JP:wght@200..900&family=Shippori+Mincho&display=swap');


/* ========== ヒーローバナー ========== */


.hero {
  background: linear-gradient(135deg, #0d2555 0%, #1a3a7c 60%, #2251a8 100%);
  padding: 60px 20px 72px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-inner {
  position: relative;
  max-width: var(--max-width);
  margin: 0 auto;
}

.hero-label {
  display: inline-block;
  background: rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.9);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 4px 14px;
  border-radius: 999px;
  margin-bottom: 14px;
  text-transform: uppercase;
}

.hero h1 {
  font-family: var(--font-serif);
  font-family: "Shippori Mincho", serif;
  font-size: clamp(24px, 5vw, 48px);
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
  margin-bottom: 12px;
  letter-spacing: 0.02em;
}

.hero p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.8;
  max-width: 540px;
  margin: 0 auto;
}

/* ========== 注目アンケートバナー ========== */
.featured-wrap {
  max-width: var(--max-width);
  margin: -32px auto 0;
  padding: 0 20px;
  position: relative;
  z-index: 10;
}

.featured-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  display: grid;
  grid-template-columns: 280px 1fr;
  min-height: 200px;
  text-decoration: none;
  color: var(--c-text);
  transition: box-shadow 0.2s, transform 0.2s;
}

.featured-card:hover {
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.14);
  transform: translateY(-2px);
  text-decoration: none;
}

.featured-thumb {
  background: linear-gradient(135deg, #1a3a7c, #2c5cc5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 64px;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}

.featured-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

.featured-thumb .thumb-icon {
  position: relative;
  z-index: 1;
}

.featured-body {
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}

.featured-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #fff3cd;
  color: #92600a;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
  width: fit-content;
  letter-spacing: 0.04em;
}

.featured-title {
  font-size: clamp(16px, 2.5vw, 22px);
  font-weight: 700;
  line-height: 1.4;
  color: var(--c-text);
}

.featured-desc {
  font-size: 13px;
  color: var(--c-muted);
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.featured-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.featured-count {
  font-size: 13px;
  color: var(--c-muted);
  display: flex;
  align-items: center;
  gap: 5px;
}

.featured-count strong {
  color: var(--c-accent);
  font-size: 18px;
  font-weight: 700;
}

.featured-btns {
  display: flex;
  gap: 8px;
  margin-top: 4px;
  flex-wrap: wrap;
}

.featured-btn {
  display: inline-block;
  padding: 9px 20px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: opacity 0.15s;
}

.featured-btn:hover {
  opacity: 0.85;
  text-decoration: none;
}

.featured-btn-daily {
  background: var(--c-accent);
  color: #fff;
}

.featured-btn-weekly {
  background: var(--c-warn-bg);
  color: var(--c-warn);
  border: 1px solid #f5c842;
}

/* ========== テーマ一覧 ========== */
.section-wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 40px 20px 0;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.section-head h2 {
  font-size: 20px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-head h2::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 20px;
  background: var(--c-accent);
  border-radius: 2px;
}

.theme-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.theme-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  color: var(--c-text);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s, transform 0.2s;
  display: flex;
  flex-direction: column;
}

.theme-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  text-decoration: none;
}

.theme-card-thumb {
  height: 140px;
  background: linear-gradient(135deg, #1a3a7c, #2c5cc5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.theme-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

.theme-card-thumb .card-icon {
  position: relative;
  z-index: 1;
}

.theme-card-thumb .featured-ribbon {
  position: absolute;
  top: 10px;
  left: -1px;
  background: #f5a623;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 12px 3px 8px;
  letter-spacing: 0.04em;
  clip-path: polygon(0 0, 100% 0, calc(100% - 6px) 50%, 100% 100%, 0 100%);
  z-index: 2;
}

.theme-card-body {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.theme-card-title {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--c-text);
}

.theme-card-desc {
  font-size: 13px;
  color: var(--c-muted);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.theme-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  border-top: 1px solid var(--c-border);
  margin-top: auto;
}

.theme-today {
  font-size: 12px;
  color: var(--c-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}

.theme-today strong {
  color: var(--c-accent);
  font-size: 15px;
}

.theme-card-badges {
  display: flex;
  gap: 4px;
}

/* ========== FAQ ========== */
.faq-wrap {
  max-width: var(--max-width);
  margin: 72px auto 0;
  padding: 0 20px;
}

.faq-header {
  text-align: center;
  margin-bottom: 28px;
}

.faq-header h2 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 6px;
}

.faq-header p {
  font-size: 13px;
  color: var(--c-muted);
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.faq-item {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  padding: 16px 20px;
  background: none;
  border: none;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 600;
  color: var(--c-text);
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: background 0.12s;
}

.faq-question:hover {
  background: var(--c-bg);
}

.faq-q-icon {
  width: 26px;
  height: 26px;
  background: var(--c-accent);
  color: #fff;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
}

.faq-question-text {
  flex: 1;
}

.faq-arrow {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  transition: transform 0.25s;
  color: var(--c-muted);
}

.faq-item.open .faq-arrow {
  transform: rotate(180deg);
}

.faq-answer {
  display: none;
  padding: 0 20px 18px 58px;
  font-size: 14px;
  color: var(--c-muted);
  line-height: 1.8;
  border-top: 1px solid var(--c-border);
  margin-top: 0;
  padding-top: 14px;
}

.faq-item.open .faq-answer {
  display: block;
}

.faq-a-icon {
  display: inline-block;
  background: var(--c-success-bg);
  color: var(--c-success);
  font-size: 14px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  margin-right: 8px;
  vertical-align: middle;
}

/* ========== 空状態 ========== */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--c-muted);
}

.empty-state .icon {
  font-size: 48px;
  margin-bottom: 12px;
}

.empty-state p {
  font-size: 14px;
}

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

  .featured-thumb {
    height: 160px;
  }

  .featured-body {
    padding: 18px;
  }

  .theme-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
}

@media (max-width: 400px) {
  .theme-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 500px) {
  .site-header .inner {
    flex-direction: column;
padding: 12px 0 8px;
  }
}
