/* Lukumo 共通スタイル */
:root {
  --white: #ffffff;
  --sky: #e3f2fb;
  --navy: #1d2b3a;
  --navy-soft: #5d6a78;
  --accent: #236ca8;
  --radius: 18px;
  --wrap: 1080px;
  --font-head: "M PLUS Rounded 1c", "Hiragino Maru Gothic ProN", sans-serif;
  --font-body: "Noto Sans JP", "Hiragino Sans", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--sky);
  color: var(--navy);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.8;
  overflow-x: hidden;
  position: relative;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--accent); }
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 8px;
}
h1, h2, h3 { font-family: var(--font-head); font-weight: 700; line-height: 1.4; margin: 0; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--white); padding: 8px 12px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }

/* ヘッダー */
.site-header { position: relative; z-index: 2; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 14px; padding-bottom: 14px; }
.logo { display: flex; align-items: center; gap: 8px; color: var(--navy); text-decoration: none; font-family: var(--font-head); font-weight: 700; font-size: 20px; flex: none; }
.logo svg { width: 34px; height: 24px; }
.nav { display: flex; gap: 0; justify-content: flex-end; }
.nav a { color: var(--navy); text-decoration: none; font-family: var(--font-head); font-weight: 700; font-size: 13px; padding: 6px 8px; white-space: nowrap; border-radius: 999px; }
.nav a[aria-current="page"] { background: var(--white); }

/* 背景の雲 */
.sky-clouds { position: absolute; inset: 0 0 auto 0; height: 560px; pointer-events: none; overflow: hidden; z-index: 0; }
.sky-clouds svg { position: absolute; fill: var(--white); }
.c1 { width: 140px; top: 70px; left: -20px; }
.c2 { width: 90px; top: 30px; right: 8%; opacity: .9; }
.c3 { width: 150px; top: 150px; right: -50px; }
.c4 { width: 110px; top: 360px; left: 12%; opacity: .8; }

/* ヒーロー */
.hero { position: relative; z-index: 1; padding-bottom: 8px; }
.hero-text { position: relative; z-index: 1; padding-top: 8px; padding-bottom: 20px; }
.eyebrow { margin: 0 0 4px; font-size: 13px; color: var(--navy-soft); font-weight: 700; }
.hero h1 { font-size: 28px; }
.lead { margin: 8px 0 0; font-size: 15px; max-width: 34em; }

/* 雲の島と街 */
.island { position: relative; z-index: 1; background: var(--white); border-radius: 40px 40px 0 0; padding: 20px 12px 8px; }
.island-bottom { position: relative; z-index: 1; display: block; width: 100%; height: 36px; fill: var(--white); margin-top: -1px; }
.town { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 10px; }
.lot { position: relative; }
.lot-link, .lot-static { display: flex; height: 100%; flex-direction: column; align-items: center; text-decoration: none; color: var(--navy); padding: 6px 4px 10px; border-radius: 16px; }
.lot-art { display: block; width: 100%; max-width: 180px; aspect-ratio: 160 / 140; }
.lot-art svg { width: 100%; height: 100%; }
.nametag { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; padding: 3px 12px; border: 2px solid var(--navy); border-radius: 999px; background: var(--white); font-family: var(--font-head); font-weight: 700; font-size: 14px; line-height: 1.5; white-space: nowrap; }
.nametag-dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.nametag-empty { border-style: dashed; color: var(--navy-soft); border-color: var(--navy-soft); font-size: 12px; }
.badge { position: absolute; top: 6px; left: 6px; font-family: var(--font-head); font-weight: 700; font-size: 12px; background: var(--sky); border-radius: 999px; padding: 1px 10px; }
.town-error { grid-column: 1 / -1; padding: 24px; text-align: center; }

/* セクション */
.section { padding: 28px 0; }
.section h2 { font-size: 20px; margin-bottom: 12px; }
.card { background: var(--white); border-radius: var(--radius); padding: 20px; }
.news-list { list-style: none; margin: 0; padding: 0; }
.news-list li { display: flex; gap: 16px; flex-wrap: wrap; }
.news-date { color: var(--navy-soft); font-size: 14px; }
.news-date:empty { display: none; } /* 日付が空欄のあいだは詰めて表示する */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 10px 24px; border-radius: 999px; background: var(--accent); color: var(--white); font-family: var(--font-head); font-weight: 700; text-decoration: none; }
.btn-outline { background: var(--white); color: var(--accent); border: 2px solid var(--accent); }
.more { display: inline-block; margin-top: 8px; font-size: 14px; }

/* フッター */
.site-footer { padding: 32px 0 40px; font-size: 14px; }
.site-footer ul { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; }
.site-footer p { margin: 4px 0; color: var(--navy-soft); }

@media (max-width: 360px) {
  .logo { font-size: 18px; }
  .nav a { padding: 6px 5px; font-size: 12px; }
}

@media (min-width: 768px) {
  .logo { font-size: 22px; }
  .nav a { font-size: 14px; padding: 6px 10px; }
  .hero h1 { font-size: 40px; }
  .lead { font-size: 17px; }
  .hero-text { padding-top: 32px; padding-bottom: 32px; }
  .island { padding: 36px 32px 12px; border-radius: 80px 80px 0 0; }
  .island-bottom { height: 64px; }
  .town { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
  .nametag { font-size: 15px; }
  .c1 { width: 220px; top: 90px; left: 4%; }
  .c3 { width: 260px; top: 40px; right: 12%; }
  .section h2 { font-size: 24px; }
  .two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
}

/* ---- 動き（フェーズ2） ---- */
.lot-link .lot-art svg { transition: transform .2s ease; }
.lot-link:hover .lot-art svg, .lot-link:focus-visible .lot-art svg { transform: translateY(-4px); }
.lot-link:hover .nametag, .lot-link:focus-visible .nametag { background: var(--sky); }
.lot-link:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 16px; }

@media (prefers-reduced-motion: no-preference) {
  .sky-clouds svg { left: 0; right: auto; animation: drift linear infinite; will-change: transform; }
  .sky-clouds .c1 { animation-duration: 140s; animation-delay: -30s; }
  .sky-clouds .c2 { animation-duration: 180s; animation-delay: -120s; }
  .sky-clouds .c3 { animation-duration: 120s; animation-delay: -80s; }
  .sky-clouds .c4 { animation-duration: 160s; animation-delay: -10s; }
}
@keyframes drift {
  from { transform: translateX(-280px); }
  to { transform: translateX(100vw); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .lot-link:hover .lot-art svg, .lot-link:focus-visible .lot-art svg { transform: none; }
}

/* ---- 下層ページ（フェーズ3） ---- */
.page-head { position: relative; z-index: 1; padding-top: 8px; padding-bottom: 20px; }
.page-head h1 { font-size: 26px; }
.crumb { font-size: 14px; margin: 0 0 8px; }
.page-body { position: relative; z-index: 1; padding-bottom: 16px; }
.page-body .card + .card { margin-top: 16px; }
.card h2 { font-size: 18px; margin-bottom: 8px; }
.card p { margin: 0 0 8px; }
.placeholder { color: var(--navy-soft); }

/* 作品ページ */
.work-hero { display: grid; gap: 16px; align-items: center; }
.work-art { width: 160px; margin: 0 auto; }
.status { display: inline-block; font-family: var(--font-head); font-weight: 700; font-size: 13px; background: var(--white); border-radius: 999px; padding: 2px 12px; margin-bottom: 8px; }
.work-desc { margin: 0 0 12px; }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; margin: 0 0 16px; font-size: 15px; }
.facts dt { font-weight: 700; }
.facts dd { margin: 0; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.shots { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.shots.is-wide { grid-template-columns: minmax(0, 1fr); }
.shots img { width: 100%; height: auto; border-radius: 12px; border: 2px solid var(--sky); background: var(--sky); }
.notice { background: var(--white); border-radius: 12px; padding: 12px 16px; }

/* お知らせ一覧 */
.news-list.full li { padding: 12px 0; border-bottom: 2px dashed var(--sky); }
.news-list.full li:last-child { border-bottom: 0; }

/* 404 */
.lost { text-align: center; padding-top: 24px; }
.lost svg { width: 220px; margin: 0 auto 8px; }
.lost h1 { font-size: 24px; margin-bottom: 8px; }

@media (min-width: 768px) {
  .page-head h1 { font-size: 34px; }
  .work-hero { grid-template-columns: 200px 1fr; }
  .work-art { width: 200px; }
  .shots { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .shots.is-wide { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* 作品ページのボタン：幅360px以上で1行に収める（文字の大きさは変えない） */
@media (max-width: 767px) {
  .actions { gap: 8px; flex-wrap: nowrap; }
  .actions .btn { padding-left: 16px; padding-right: 16px; white-space: nowrap; }
}
@media (max-width: 359px) {
  .actions { flex-wrap: wrap; }
}
/* 幅340px未満（とても小さい端末）では、メニューを2行目に回す */
@media (max-width: 339px) {
  .site-header .wrap { flex-wrap: wrap; }
}
