@charset "UTF-8";
/* M3：明るいサーフェス、トーン別の色、44px以上の操作領域 */
:root {
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  color: #332e2b; background: #fffaf4; font-synthesis: none;
  --primary: #ad493a; --primary-hover: #8f3429; --on-primary: #fff;
  --primary-container: #ffe2d9; --surface: #fff; --surface-alt: #fff1e7;
  --outline: #eaded7; --muted: #716762; --sky: #d7eff6; --butter: #fff0bd;
  --radius: 22px;
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
input:focus-visible, button:focus-visible, a:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid #f7a948; outline-offset: 2px; }
.site-header { background: var(--surface); border-bottom: 1px solid var(--outline); }
.site-header__inner, .site-main, .site-footer__inner { max-width: 1120px; margin: auto; padding-left: 24px; padding-right: 24px; }
.site-header__inner { min-height: 78px; display: flex; align-items: center; gap: 26px; }
.site-header__logo { font-size: 25px; font-weight: 900; letter-spacing: -.06em; text-decoration: none; white-space: nowrap; }
.site-header__logo span:first-child { color: var(--primary); }
.site-header__dot { font-size: 12px; color: #f8af47; margin-left: 6px; }
.site-header__subtitle { font-size: 13px; color: var(--muted); }
.site-header__languages { display: flex; gap: 5px; margin-left: auto; flex-shrink: 0; }
.site-header__languages a { padding: 7px 10px; border-radius: 100px; text-decoration: none; font-size: 12px; font-weight: 700; }
.site-header__languages a[aria-current="page"] { color: var(--primary); background: var(--primary-container); }
.site-main { padding-top: 34px; padding-bottom: 90px; min-height: 70vh; }
.hero { border-radius: 32px; min-height: 324px; background: #ffe4d3; display: flex; overflow: hidden; position: relative; }
.hero__content { padding: 48px 7%; position: relative; z-index: 1; max-width: 660px; }
.hero__eyebrow, .section-kicker { font-size: 11px; font-weight: 900; letter-spacing: .16em; color: var(--primary); }
.hero__title { font-size: clamp(36px, 5vw, 58px); line-height: 1.34; letter-spacing: -.07em; margin: 14px 0; }
.hero__title span { color: var(--primary); }
.hero__text { max-width: 470px; line-height: 1.9; margin: 0; }
.hero__art { position: absolute; right: 2%; bottom: 0; width: 270px; height: 100%; color: #f0a259; }
.hero__sun { position: absolute; font-size: 120px; right: 30px; top: -5px; color: #ffbd62; }
.hero__hill { position: absolute; font-size: 360px; line-height: 1; bottom: -135px; right: -20px; transform: rotate(-25deg); }
.hero__spark { position: absolute; font-size: 48px; top: 120px; right: 210px; color: white; }
.explore, .listing { margin-top: 48px; }
.section-heading { font-size: 26px; letter-spacing: -.04em; margin: 0 0 20px; }
.theme-list { display: flex; flex-wrap: wrap; gap: 10px; }
.theme-chip, .tag { display: inline-block; background: var(--surface); border: 1px solid var(--outline); border-radius: 100px; padding: 10px 16px; text-decoration: none; font-size: 14px; font-weight: 700; }
.theme-chip:hover, .tag:hover { background: var(--butter); }
.theme-chip--active { background: var(--primary); color: var(--on-primary); border-color: var(--primary); }
.search { background: #eaf5f6; padding: 22px; border-radius: var(--radius); margin-top: 26px; }
.search__label { display: block; font-size: 13px; font-weight: 800; margin-bottom: 9px; }
.search__row { display: flex; gap: 10px; }
.search__input, .field__input { background: #fff; border: 1px solid #baa9a1; border-radius: 12px; padding: 12px 14px; min-width: 0; min-height: 46px; }
.search__row .search__input { flex: 1; }
.search__filters { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 16px; }
.search__field { display: grid; gap: 7px; font-size: 12px; font-weight: 800; align-content: end; }
.search__field .search__input { width: 100%; }
.search__footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 20px; }
.search__hint { color: #5c696d; font-size: 12px; }
.button { border: 0; border-radius: 13px; padding: 12px 22px; min-height: 46px; font-weight: 800; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; text-align: center; }
.button--primary { background: var(--primary); color: var(--on-primary); }
.button--primary:hover { background: var(--primary-hover); }
.button--secondary { background: var(--primary-container); color: #7b3027; }
.listing__heading { display: flex; justify-content: space-between; align-items: end; }
.listing__heading .section-heading { margin-bottom: 0; }
.listing__count { color: var(--muted); font-size: 14px; }
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 24px; }
.card { background: #fff; border: 1px solid var(--outline); border-radius: var(--radius); overflow: hidden; box-shadow: 0 3px 12px #533a230a; transition: box-shadow .2s, transform .2s; }
.card:hover { box-shadow: 0 12px 28px #55372320; transform: translateY(-3px); }
.card__link { text-decoration: none; display: block; height: 100%; }
.card__visual { height: 166px; background: #f9d9a6; position: relative; overflow: hidden; }
.card__visual--character { background: #f9d8d2; }
.card__visual--taiwan { background: #f9e2a7; }
.card__visual--rainy { background: #cfeaf4; }
.card__visual--learning { background: #e9dff5; }
.card__image { display: block; width: 100%; height: 100%; object-fit: cover; }
.card__visual-mark { font-size: 160px; line-height: 1; position: absolute; right: 20px; top: -30px; color: #ffffff9c; }
.card__badge { position: absolute; left: 16px; bottom: 16px; background: #fff; border-radius: 50px; padding: 6px 10px; font-size: 11px; font-weight: 900; letter-spacing: .08em; }
.card__body { padding: 20px; }
.card__meta { font-size: 12px; color: var(--muted); margin: 0 0 10px; }
.card__title { font-size: 19px; line-height: 1.5; margin: 0 0 10px; }
.card__summary { font-size: 13px; line-height: 1.75; color: #645d59; margin: 0; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
.card__attributes { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 0; }
.card__attributes span { font-size: 11px; border-radius: 7px; padding: 5px 7px; background: #fff1dd; color: #8b4e24; font-weight: 800; }
.card__more { display: block; color: var(--primary); font-size: 13px; font-weight: 800; margin-top: 16px; }
.empty { padding: 56px 24px; text-align: center; background: var(--surface-alt); border-radius: var(--radius); margin-top: 24px; color: #705e56; }
.empty__symbol { font-size: 48px; color: #eeb872; }
.back-link { display: inline-block; color: var(--primary); font-weight: 800; text-decoration: none; margin-bottom: 20px; }
.detail { background: #fff; padding: clamp(24px, 5vw, 56px); border-radius: 28px; border: 1px solid var(--outline); max-width: 800px; }
.detail__eyebrow { font-size: 13px; color: var(--primary); font-weight: 800; }
.detail__image { margin: 22px 0; }
.detail__image img { display: block; width: 100%; max-height: 430px; object-fit: cover; border-radius: 18px; background: var(--surface-alt); }
.detail__image figcaption { margin-top: 8px; font-size: 11px; color: var(--muted); }
.detail__title { font-size: clamp(26px, 4vw, 40px); line-height: 1.4; margin: 12px 0; }
.detail__lead { line-height: 1.9; color: #544b45; }
.tag-list { display: flex; gap: 8px; flex-wrap: wrap; margin: 24px 0; }
.tag { background: #fff0dc; font-size: 12px; padding: 7px 12px; }
.detail__facts { border-top: 1px solid var(--outline); margin: 30px 0; }
.detail__fact { display: grid; grid-template-columns: 160px 1fr; border-bottom: 1px solid var(--outline); padding: 14px 0; gap: 16px; }
.detail__fact dt { color: var(--muted); font-weight: 800; }
.detail__fact dd { margin: 0; line-height: 1.7; }
.detail__recommend { padding: 18px; border-radius: 14px; background: var(--butter); line-height: 1.8; }
.detail__recommend small { display: block; color: #6d5c42; margin-top: 6px; }
.detail__reference { font-size: 13px; margin-top: 14px; color: var(--primary); }
.detail__source { font-size: 12px; color: var(--muted); line-height: 1.7; margin-top: 18px; }
.site-footer { background: #ffebde; }
.site-footer__inner { padding-top: 34px; padding-bottom: 34px; display: flex; justify-content: space-between; gap: 12px; }
.site-footer__inner span { font-weight: 900; }
.site-footer__inner small { color: var(--muted); }
/* 管理画面：同じコンポーネント構造を使う */
.admin-shell { max-width: 1000px; margin: 30px auto 90px; padding: 0 20px; }
.admin-shell__header { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.admin-panel { background: #fff; border: 1px solid var(--outline); border-radius: var(--radius); padding: 26px; margin-top: 24px; }
.admin-panel__title { margin: 0 0 10px; font-size: 22px; }
.admin-panel__help { color: var(--muted); line-height: 1.8; font-size: 14px; }
.admin-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.admin-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.admin-image { max-width: 480px; background: var(--surface-alt); border-radius: 16px; overflow: hidden; }
.admin-image img { display: block; width: 100%; max-height: 260px; object-fit: contain; }
.field { display: block; margin-top: 16px; }
.field__label { display: block; font-weight: 800; font-size: 14px; margin-bottom: 7px; }
.field__input { display: block; width: 100%; }
.field__input--area { min-height: 210px; resize: vertical; font-family: ui-monospace, monospace; font-size: 13px; line-height: 1.6; }
.field__input--short { min-height: 90px; }
.field__hint { color: var(--muted); font-size: 12px; margin-top: 6px; }
.notice { border-radius: 12px; padding: 13px 16px; background: #e5f4e6; color: #244d2b; margin: 16px 0; }
.notice--error { background: #ffebea; color: #8d2d29; }
.admin-list { width: 100%; border-collapse: collapse; margin-top: 16px; }
.admin-list th, .admin-list td { text-align: left; border-bottom: 1px solid var(--outline); padding: 12px 8px; font-size: 13px; }
.check-row { margin: 18px 0 0; display: flex; gap: 8px; align-items: center; font-weight: 700; }
@media (max-width: 760px) {
  .site-header__subtitle { display: none; }
  .site-main { padding-top: 16px; }
  .hero { min-height: 300px; }
  .hero__content { padding: 38px 28px; }
  .hero__art { opacity: .45; right: -100px; }
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-grid, .search__filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 540px) {
  .site-header__inner, .site-main, .site-footer__inner { padding-left: 16px; padding-right: 16px; }
  .site-header__inner { flex-wrap: wrap; gap: 2px; padding-top: 10px; padding-bottom: 10px; }
  .site-header__languages { margin-left: auto; }
  .card-grid, .search__filters { grid-template-columns: 1fr; }
  .search__footer { align-items: stretch; flex-direction: column; }
  .section-heading { font-size: 23px; }
  .detail__fact { grid-template-columns: 1fr; gap: 2px; }
  .site-footer__inner { display: block; }
  .site-footer__inner small { display: block; margin-top: 8px; }
  .admin-panel { padding: 18px; }
  .admin-list { display: block; overflow-x: auto; }
}
