/* ===================== FOOTER ===================== */
footer {
  background: var(--asagi-2); color: var(--ink);
  padding: 72px 0 32px;
  border-top: 3px solid var(--asagi);
}
footer .container { color: var(--ink); }
.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(44,44,60,0.15);
}
.foot-brand .brand { color: var(--ink); }
.foot-brand .brand-mark { background: white; border-color: var(--asagi); box-shadow: 3px 3px 0 var(--asagi); }
.foot-brand .brand-name { color: var(--ink); }
.foot-brand .brand-name small { color: rgba(44,44,60,0.55); }
.foot-brand p {
  margin: 18px 0 0;
  font-size: 13.5px;
  line-height: 1.85;
  color: rgba(44,44,60,0.7);
  max-width: 320px;
}
.foot-col h5 {
  margin: 4px 0 18px;
  font-family: 'Zen Maru Gothic', sans-serif;
  font-weight: 900; font-size: 14px;
  letter-spacing: 0.05em;
  padding-bottom: 8px;
  border-bottom: 2px dashed rgba(44,44,60,0.2);
}
.foot-col ul {
  list-style: none;
  margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 10px;
}
.foot-col ul li a {
  font-size: 13.5px;
  font-weight: 600;
  color: rgba(44,44,60,0.7);
  transition: color .15s ease;
}
.foot-col ul li a:hover { color: var(--shu); }
.foot-bottom {
  margin-top: 28px;
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px; flex-wrap: wrap;
  font-size: 12.5px;
  color: rgba(44,44,60,0.45);
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .entries, .entries-feature { grid-template-columns: 1fr; }
  .cats { grid-template-columns: repeat(2, 1fr); }
  .systems { grid-template-columns: 1fr; }
  .results-strip { grid-template-columns: 1fr 1fr; }
  .result { border-right: 0; border-bottom: 2px dashed var(--ink); }
  .result:nth-child(2n) { border-right: 0; }
  .result:nth-last-child(-n+2) { border-bottom: 0; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .entry-big { grid-template-columns: 1fr; }
  .entry-big .b-art { width: 160px; height: 160px; justify-self: center; }
  .char-trio { gap: 12px; }
  .char-trio .char-card { flex: 0 0 200px; width: 200px; }
  .char-card h3 { font-size: 20px; }
  .char-card.main h3 { font-size: 22px; }
  .scenes { grid-template-columns: repeat(2, 1fr); }
  .hero-art .name-tag { display: none; }
  .hero-art .mini-char { width: 72px; }
  .hero-art .mini-char.mc1 { left: 0; bottom: 0; }
  .hero-art .mini-char.mc2 { right: 0; bottom: 0; }
}

/* =========================================================
   CLOUD TITLE — section heading, pill style with side icon
   ========================================================= */
.cloud-title {
  margin: 0 auto 56px;
  max-width: 720px;
  text-align: center;
  display: flex; flex-direction: column; align-items: center;
}
.cloud-title .ct-char { display: none; }
.cloud-title .ct-pill {
  position: relative;
  display: inline-flex; align-items: center; gap: 16px;
  padding: 18px 32px;
  background: white;
  border: 2.5px solid var(--ink);
  border-radius: 999px;
  box-shadow: 5px 5px 0 var(--ink);
  font-family: 'Zen Maru Gothic', sans-serif;
  font-weight: 900;
  font-size: clamp(22px, 3vw, 32px);
  color: var(--ink);
  line-height: 1.2;
}
.cloud-title .ct-icon {
  width: 44px; height: 44px;
  border: 2.5px solid var(--ink);
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 20px;
  flex-shrink: 0;
  background: var(--sakura);
  box-shadow: 2px 2px 0 var(--ink);
}
.cloud-title.color-sakura   .ct-icon { background: var(--sakura); }
.cloud-title.color-asagi    .ct-icon { background: var(--asagi); }
.cloud-title.color-matcha   .ct-icon { background: var(--matcha); }
.cloud-title.color-yamabuki .ct-icon { background: var(--yamabuki); }
.cloud-title.color-fuji     .ct-icon { background: var(--fuji); }
.cloud-title.color-kohaku   .ct-icon { background: var(--kohaku); }
.cloud-title .ct-text { white-space: nowrap; }
.cloud-title .ct-cta { display: none; }
.cloud-title .ct-dots {
  display: block;
  width: 80px; height: 6px;
  margin: 24px auto 14px;
  background-image: radial-gradient(circle, rgba(31,29,46,0.35) 2px, transparent 2.5px);
  background-size: 14px 6px;
  background-repeat: repeat-x;
}
.cloud-title .ct-sub {
  color: var(--ink-2); font-size: 16px; line-height: 1.85;
  margin: 0; max-width: 600px;
}

/* =========================================================
   CLOUD ENTRY — navigation cards. Picture-on-top card with cloud-style title pill below.
   ========================================================= */
.cloud-entry {
  display: flex; flex-direction: column;
  text-decoration: none; color: inherit;
  background: white;
  border: 1.5px solid rgba(61,48,96,0.12) !important;
  border-radius: 28px;
  box-shadow: 0 4px 14px rgba(61,48,96,0.07) !important;
  overflow: hidden;
  position: relative;
  transition: transform .14s ease, box-shadow .14s ease;
}
.cloud-entry:hover { transform: translate(-3px,-3px); box-shadow: 8px 8px 0 var(--ink); }

.cloud-entry .ce-char {
  position: relative;
  width: 100%;
  aspect-ratio: 1/1;
  background: var(--paper);
  border-bottom: 2.5px solid var(--ink);
  overflow: hidden;
}
.cloud-entry.c-sakura   .ce-char { background: var(--sakura-2); }
.cloud-entry.c-asagi    .ce-char { background: var(--asagi-2); }
.cloud-entry.c-matcha   .ce-char { background: var(--matcha-2); }
.cloud-entry.c-yamabuki .ce-char { background: var(--yamabuki-2); }
.cloud-entry.c-fuji     .ce-char { background: var(--fuji-2); }
.cloud-entry.c-kohaku   .ce-char { background: var(--yamabuki-2); }

.cloud-entry .ce-char img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center top;
  transition: transform .3s ease;
}
.cloud-entry:hover .ce-char img { transform: scale(1.04); }

/* no-character variant: large illustrated glyph (kanji/icon) */
.cloud-entry.no-char .ce-char {
  display: grid; place-items: center;
  position: relative;
  background: var(--paper);
}
.cloud-entry.no-char .ce-char::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(31,29,46,0.12) 1px, transparent 0);
  background-size: 22px 22px;
}
.cloud-entry.no-char .ce-char img { display: none; }
.cloud-entry.no-char .ce-glyph {
  position: relative;
  width: 60%; aspect-ratio: 1/1;
  background: white;
  border: 2.5px solid var(--ink);
  border-radius: 50%;
  box-shadow: 5px 5px 0 var(--ink);
  display: grid; place-items: center;
  font-family: 'Zen Maru Gothic', sans-serif;
  font-weight: 900;
  font-size: clamp(72px, 12vw, 140px);
  color: var(--ink);
  z-index: 1;
  line-height: 1;
}

/* Title pill at bottom */
.cloud-entry .ce-pill {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 20px 22px 4px;
  background: white;
  font-family: 'Zen Maru Gothic', sans-serif;
  font-weight: 900;
  font-size: 20px;
  color: var(--ink);
}
.cloud-entry .ce-icon {
  width: 40px; height: 40px;
  border: 2.5px solid var(--ink);
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 19px;
  flex-shrink: 0;
  background: var(--sakura);
  box-shadow: 2px 2px 0 var(--ink);
}
.cloud-entry.c-sakura   .ce-icon { background: var(--sakura); }
.cloud-entry.c-asagi    .ce-icon { background: var(--asagi); }
.cloud-entry.c-matcha   .ce-icon { background: var(--matcha); }
.cloud-entry.c-yamabuki .ce-icon { background: var(--yamabuki); }
.cloud-entry.c-fuji     .ce-icon { background: var(--fuji); }
.cloud-entry.c-kohaku   .ce-icon { background: var(--kohaku); }
.cloud-entry .ce-text { line-height: 1.25; }
.cloud-entry .ce-cta {
  width: 32px; height: 32px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  display: grid; place-items: center;
  font-size: 14px; font-weight: 900;
  transition: transform .2s ease;
}
.cloud-entry:hover .ce-cta { transform: rotate(-45deg); }
.cloud-entry .ce-dots { display: none; }
.cloud-entry .ce-sub {
  margin: 0;
  padding: 6px 22px 22px;
  color: var(--ink-2); font-size: 13.5px; line-height: 1.75;
  background: white;
}

@media (max-width: 980px) {
  .cloud-title .ct-pill { font-size: 20px; padding: 14px 22px; gap: 10px; max-width: calc(100vw - 48px); }
  .cloud-title .ct-icon { width: 36px; height: 36px; font-size: 16px; }
}
@media (max-width: 640px) {
  /* 見出し画像 スマホで縮小 */
  .midashi-img {
    max-width: min(260px, 80vw) !important;
  }
}


