/* ===========================
   先生のためのAIパーク — みろんイラストベース
   =========================== */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* イラストから抽出した色 */
  --cream:        #F5EDD8;
  --cream-dark:   #EDE0C4;
  --pink-muted:   #D4A0A0;
  --pink-light:   #F2DDD9;
  --sage:         #8FAF8A;
  --sage-light:   #C8DCC5;
  --sky:          #A8C8E0;
  --sky-light:    #D4E8F4;
  --brown:        #8B6555;
  --brown-light:  #C4A882;
  --navy:         #2C3E6B;

  /* テキスト */
  --text-dark:    #2A2218;
  --text-mid:     #5A4A38;
  --text-muted:   #8A7A6A;
  --white:        #FFFFFF;

  --font-serif: 'Noto Serif JP', 'Hiragino Mincho ProN', serif;
  --font-sans:  'Noto Sans JP', 'Hiragino Kaku Gothic ProN', sans-serif;

  --r-sm:  8px;
  --r-md:  14px;
  --r-lg:  20px;
  --r-xl:  28px;
  --r-full: 9999px;

  --shadow-sm: 0 2px 8px rgba(44,30,20,.10);
  --shadow-md: 0 4px 20px rgba(44,30,20,.14);
  --shadow-lg: 0 8px 40px rgba(44,30,20,.18);

  --nav-h: 64px;
  --max-w: 1100px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--cream);
  color: var(--text-dark);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--brown); text-decoration: none; }
img { max-width: 100%; display: block; }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }

/* ===== ナビゲーション ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  height: var(--nav-h);
  background: rgba(245,237,216,.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(139,101,85,.12);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--cream-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid rgba(139,101,85,.18);
}

.logo-copy {
  font-family: var(--font-serif);
  font-size: .95rem;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.2;
}

.logo-copy small {
  display: block;
  font-family: var(--font-sans);
  font-size: .6rem;
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: .04em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 2px;
}

.site-nav a {
  padding: 6px 13px;
  border-radius: var(--r-sm);
  font-size: .875rem;
  color: var(--text-mid);
  transition: background .15s, color .15s;
}

.site-nav a:hover {
  background: var(--cream-dark);
  color: var(--text-dark);
}

.nav-cta {
  background: var(--sage) !important;
  color: var(--white) !important;
  font-weight: 700 !important;
  padding: 7px 18px !important;
  border-radius: var(--r-sm) !important;
  box-shadow: 0 2px 8px rgba(143,175,138,.3);
  transition: background .15s, transform .15s !important;
}

.nav-cta:hover {
  background: #7A9E75 !important;
  transform: translateY(-1px);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-dark);
  border-radius: 2px;
}

/* ===== 新着通知バー ===== */
.new-bar {
  background: linear-gradient(90deg, #7c3aed 0%, #db2777 100%);
  padding: 0;
  overflow: hidden;
}
.new-bar-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 8px 20px;
  flex-wrap: wrap;
}
.new-bar-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: white;
  text-decoration: none;
  font-size: .82rem;
  font-weight: 600;
  white-space: nowrap;
  opacity: .95;
  transition: opacity .15s;
}
.new-bar-item:hover { opacity: 1; text-decoration: underline; }
.new-bar-badge {
  background: rgba(255,255,255,.25);
  border-radius: 99px;
  padding: 1px 8px;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: 1px;
}
.new-bar-sep {
  color: rgba(255,255,255,.35);
  font-size: .8rem;
}

/* ===== ヒーロー：イラストマップ ===== */
.hero {
  position: relative;
  width: 100%;
}

/* カテゴリボタン行 */
.room-nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  background: var(--cream-dark);
  border-top: 1px solid rgba(139,101,85,.12);
}

.room-nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 18px 12px;
  text-decoration: none;
  color: var(--text-mid);
  border-right: 1px solid rgba(139,101,85,.12);
  transition: background .18s, color .18s;
  text-align: center;
}
.room-nav-btn:last-child { border-right: none; }
.room-nav-btn:hover {
  background: rgba(139,101,85,.10);
  color: var(--brown);
}
.room-nav-icon {
  font-size: 1.5rem;
  line-height: 1;
}
.room-nav-label {
  font-size: .75rem;
  font-weight: 700;
  line-height: 1.4;
}

.hero-illust-wrap {
  position: relative;
  width: 100%;
  /* イラスト全体を見せる（「みろんを探せ」の猫スポットが全部はまる必要があるため切らない） */
  aspect-ratio: 16 / 9;
  max-height: 80vh;
}

.hero-illust-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

/* タイトルオーバーレイ */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(245,237,216,.82) 0%,
    rgba(245,237,216,.65) 38%,
    rgba(245,237,216,.0) 62%
  );
  display: flex;
  align-items: center;
  padding: 0 5%;
}

.hero-text {
  max-width: 480px;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,.75);
  border: 1.5px solid rgba(139,101,85,.2);
  border-radius: var(--r-full);
  padding: 5px 14px;
  font-size: .75rem;
  font-weight: 700;
  color: var(--brown);
  margin-bottom: 18px;
  backdrop-filter: blur(4px);
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4.5vw, 3.6rem);
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-dark);
  margin-bottom: 14px;
}

.hero-title .accent {
  color: var(--brown);
  position: relative;
  display: inline-block;
}

.hero-sub {
  font-size: clamp(.85rem, 1.5vw, 1rem);
  color: var(--text-mid);
  line-height: 1.75;
  margin-bottom: 28px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: var(--r-md);
  font-weight: 700;
  font-size: .9rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s, background .15s;
  line-height: 1;
}

.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

.btn-primary {
  background: var(--brown);
  color: var(--white);
  box-shadow: 0 3px 12px rgba(139,101,85,.3);
}
.btn-primary:hover { background: #7A5545; }

.btn-ghost {
  background: rgba(255,255,255,.75);
  color: var(--text-dark);
  border: 1.5px solid rgba(139,101,85,.25);
  backdrop-filter: blur(4px);
}
.btn-ghost:hover { background: rgba(255,255,255,.95); }

/* 部屋ホバーエリア */
.room-map {
  position: absolute;
  inset: 0;
}

.room-hotspot {
  position: absolute;
  cursor: pointer;
  border-radius: var(--r-lg);
  transition: background .25s;
}

.room-hotspot:hover {
  background: transparent;
}

/* 部屋の位置（イラストに合わせた %） */
.room-classroom  { top: 2%;  left: 2%;  width: 40%; height: 46%; }
.room-staffroom  { top: 46%; left: 2%;  width: 44%; height: 52%; }
.room-library    { top: 2%;  right: 2%; width: 38%; height: 46%; }
.room-sciencelab { top: 46%; right: 2%; width: 44%; height: 52%; }

/* ホバー時にイラスト下部に表示する固定ラベルエリア */
.room-hint {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(to top, rgba(30,22,14,.72) 0%, transparent 100%);
  pointer-events: none;
  opacity: 0;
  transition: opacity .25s;
}
.room-hint.visible { opacity: 1; }
.room-hint-arrow {
  font-size: .9rem;
  color: rgba(255,255,255,.7);
}
.room-hint-text {
  font-size: .88rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: .02em;
}
.room-hint-sub {
  font-size: .75rem;
  color: rgba(255,255,255,.6);
  margin-left: auto;
}

/* 旧 .room-label は非表示（削除のかわり） */
.room-label {
  display: none;
  pointer-events: none;
  letter-spacing: .02em;
  backdrop-filter: blur(4px);
}

/* ===== バッジ ===== */
.trust-bar {
  background: var(--cream);
  border-bottom: 1px solid rgba(139,101,85,.08);
  padding: 14px 0;
}

.trust-inner {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: .82rem;
  color: var(--text-mid);
  font-weight: 600;
}

.trust-item .t-icon { font-size: 1rem; }

/* ===== セクション共通 ===== */
.section { padding: 80px 0; }

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--sage);
  background: var(--sage-light);
  border-radius: var(--r-full);
  padding: 4px 12px;
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.3;
  margin-bottom: 10px;
}

.section-desc {
  font-size: .95rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 44px;
  max-width: 560px;
}

/* ===== セクション区切り ===== */
.section-divider {
  width: 100%;
  height: 40px;
  background: linear-gradient(180deg, var(--cream-dark) 0%, var(--white) 100%);
}

/* 波形SVG区切り（ヒーロー→アプリ間） */
.wave-divider {
  width: 100%;
  overflow: hidden;
  line-height: 0;
  background: var(--white);
}
.wave-divider svg {
  display: block;
  width: 100%;
  height: 20px;
}

/* ===== 新着スポット ===== */
.new-arrivals-section {
  background: none;
  padding: 0;
}

.new-arrivals-row {
  display: flex;
  align-items: center;
  min-width: 0;
}

.new-arrivals-list {
  overflow: hidden;
  min-width: 0;
  width: 100%;
  padding: 12px 0;
  /* 両端をふわっとフェード＝右から出て左へ消える流れを演出 */
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 4%, #000 96%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 4%, #000 96%, transparent 100%);
}
.na-track {
  display: flex;
  gap: 12px;
  width: max-content;
  will-change: transform;
}
.na-track .na-card {
  flex: 0 0 auto;
  width: 312px;
  padding: 12px 16px;
}
.na-track .na-thumb {
  width: 64px;
  height: 64px;
}
.na-track .na-title { font-size: .95rem; }
.na-track .na-catch { font-size: .78rem; }
.na-new {
  position: absolute;
  top: 6px;
  right: 8px;
  background: linear-gradient(135deg, #E96BAE, #7C4DC4);
  color: #fff;
  font-size: .58rem;
  font-weight: 800;
  letter-spacing: .05em;
  padding: 2px 7px;
  border-radius: 999px;
  box-shadow: 0 1px 4px rgba(233,107,174,.45);
  animation: naNewPulse 2s ease-in-out infinite;
}
@keyframes naNewPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(233,107,174,.5); }
  50%      { box-shadow: 0 0 0 4px rgba(233,107,174,0); }
}

.na-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: white;
  border: 1.5px solid var(--cream-dark);
  border-radius: 14px;
  padding: 12px 14px;
  text-decoration: none;
  color: inherit;
  transition: all .18s;
  box-shadow: 0 2px 8px rgba(139,101,85,.06);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(139,101,85,.08);
}
.na-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #E89BB0, #B79DDB, #9DC3E8);
  border-radius: 14px 14px 0 0;
}
.na-card:hover {
  border-color: var(--brown-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(139,101,85,.12);
}

.na-thumb {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  flex-shrink: 0;
  overflow: hidden;
}

.na-body {
  flex: 1;
  min-width: 0;
}
.na-title {
  font-size: .88rem;
  font-weight: 700;
  color: #2d2016;
  margin-bottom: 2px;
  white-space: normal;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-height: 1.3;
}
.na-catch {
  font-size: .72rem;
  color: var(--brown-light);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.na-arrow {
  font-size: .85rem;
  color: var(--brown-light);
  flex-shrink: 0;
}

@media (max-width: 600px) {
  .new-arrivals-row { gap: 10px; }
  .new-arrivals-list .na-card { width: 218px; }
}

/* ===== 教科で探す ===== */
.subject-section { padding: 32px 0 8px; }
.subject-section .section-title { margin-bottom: 16px; }
.subject-chips { display: flex; flex-wrap: wrap; gap: 12px; }
.subject-chip {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1.5px solid rgba(255,255,255,.65);
  border-radius: 999px; padding: 11px 22px 11px 18px;
  font-weight: 700; font-size: .98rem; color: var(--text-dark);
  text-decoration: none; transition: transform .18s, box-shadow .18s;
  box-shadow: 0 2px 8px rgba(139,101,85,.08);
}
.subject-chip .se { font-size: 1.15rem; line-height: 1; }
.subject-chip:hover { transform: translateY(-2px); box-shadow: 0 7px 18px rgba(139,101,85,.16); }
.subject-chip.s-eng { background: linear-gradient(135deg, var(--sky-light), #BBD9EE); }
.subject-chip.s-jpn { background: linear-gradient(135deg, var(--pink-light), #ECC7C7); }
.subject-chip.s-sci { background: linear-gradient(135deg, var(--sage-light), #ACCEA6); }
.subject-chip.s-soc { background: linear-gradient(135deg, #F7E7CB, var(--cream-dark)); }
.subject-chip.s-art { background: linear-gradient(135deg, #ECE4F6, #D9CDF1); }
.subject-chip.s-etc { background: linear-gradient(135deg, #EFF1F3, #DFE3E7); }

/* ===== アプリカード ===== */
.apps-section {
  background: var(--white);
  padding: 80px 0;
  position: relative;
}

/* 上部に薄い装飾ライン */
.apps-section::before {
  content: '';
  position: absolute;
  top: 0; left: 5%; right: 5%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(139,101,85,.15), transparent);
}

.apps-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 36px;
  gap: 16px;
  flex-wrap: wrap;
}

.view-all {
  font-size: .85rem;
  font-weight: 700;
  color: var(--brown);
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  transition: gap .15s;
}
.view-all:hover { gap: 8px; }

.apps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.app-card {
  background: var(--cream);
  border: 1px solid rgba(139,101,85,.12);
  border-radius: var(--r-xl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--text-dark);
  transition: box-shadow .2s, transform .2s;
  position: relative;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(139,101,85,.08);
}

.app-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-5px);
}

/* ストレッチリンク：カード全体をタップ可能にする（スマホ対応） */
.app-card-link {
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: var(--r-xl);
}

/* ボタン類はリンクの上に重なるようにする */
.app-btn-open,
.app-btn-dl {
  position: relative;
  z-index: 1;
}

.app-thumb {
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
}

.app-thumb.bg-sky    { background: linear-gradient(135deg, var(--sky-light), var(--sky)); }
.app-thumb.bg-pink   { background: linear-gradient(135deg, var(--pink-light), #E8B8B8); }
.app-thumb.bg-sage   { background: linear-gradient(135deg, var(--sage-light), var(--sage)); }
.app-thumb.bg-cream  { background: linear-gradient(135deg, var(--cream), var(--cream-dark)); }
.app-thumb.bg-brown  { background: linear-gradient(135deg, #E8D5C0, var(--brown-light)); }
.app-thumb.bg-purple { background: linear-gradient(135deg, #EDE8F5, #D8CCF0); }
.app-thumb.bg-orange { background: linear-gradient(135deg, #FFF7F3, #F5C5A3); }
.app-thumb.bg-green  { background: linear-gradient(135deg, #E8F5E9, #A5D6A7); }
.app-thumb.bg-navy   { background: linear-gradient(135deg, #E8EEF7, #C8D8EC); }
.app-thumb.bg-wine   { background: linear-gradient(135deg, #F9EEF2, #E8B8CC); }
.app-thumb.bg-blue   { background: linear-gradient(135deg, #EFF6FF, #BFDBFE); }

.app-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.app-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }

.tag {
  font-size: .68rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: var(--r-full);
}

.tag-student  { background: var(--sky-light);  color: #2A5A8A; }
.tag-teacher  { background: var(--sage-light);  color: #3A6A35; }
.tag-material { background: var(--pink-light);  color: #8A3A3A; }
.tag-english  { background: #EDE0F5;            color: #6A3A8A; }
.tag-science  { background: var(--sky-light);   color: #1A5A6A; }
.tag-japanese { background: var(--pink-light);  color: #8A2A4A; }
.tag-homeroom { background: #EDE8F5;            color: #5A2A8A; }
.tag-social   { background: #E8EEF7;            color: #1E3A5F; }

.app-title {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 7px;
  color: var(--text-dark);
}

.app-desc {
  font-size: .85rem;
  color: var(--text-muted);
  line-height: 1.65;
  flex: 1;
}

.app-footer {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid rgba(139,101,85,.10);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.app-btn-open {
  font-size: .8rem;
  font-weight: 700;
  color: var(--brown);
  text-decoration: none;
  padding: 5px 12px;
  border-radius: var(--r-full);
  border: 1.5px solid var(--brown);
  transition: background .15s, color .15s;
  white-space: nowrap;
}
.app-btn-open:hover {
  background: var(--brown);
  color: var(--white);
}

/* NEWバッジ */
.app-new-badge {
  display: inline-flex;
  align-items: center;
  font-size: .72rem;
  font-weight: 800;
  color: white;
  background: linear-gradient(135deg, #E96BAE, #7C4DC4);
  border-radius: var(--r-full);
  padding: 2px 9px;
  white-space: nowrap;
  letter-spacing: 1px;
  box-shadow: 0 2px 6px rgba(239,68,68,.35);
  animation: newPulse 2.4s ease-in-out infinite;
}
@keyframes newPulse {
  0%, 100% { box-shadow: 0 2px 6px rgba(239,68,68,.35); }
  50%       { box-shadow: 0 2px 12px rgba(239,68,68,.6); }
}

/* ダウンロード可バッジ（タグ行に表示） */
.app-dl-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: .72rem;
  font-weight: 600;
  color: #5A8AA8;
  background: rgba(90,138,168,.10);
  border: 1px solid rgba(90,138,168,.28);
  border-radius: var(--r-full);
  padding: 2px 8px;
  white-space: nowrap;
}

.app-btn-dl {
  font-size: .78rem;
  font-weight: 600;
  color: #5A8AA8;
  text-decoration: none;
  padding: 5px 12px;
  border-radius: var(--r-full);
  border: 1.5px solid rgba(90,138,168,.35);
  background: rgba(90,138,168,.08);
  transition: background .15s, color .15s, border-color .15s;
  white-space: nowrap;
}
.app-btn-dl:hover {
  background: rgba(90,138,168,.18);
  color: #3A6A88;
  border-color: rgba(90,138,168,.55);
}

.app-card-soon {
  opacity: .72;
  cursor: default;
  pointer-events: none;
}

/* ===== 目的別ブロック ===== */
.purpose-block {
  padding-bottom: 52px;
  margin-bottom: 52px;
  border-bottom: 1px solid rgba(139,101,85,.10);
}
.purpose-block:last-child {
  padding-bottom: 0;
  margin-bottom: 0;
  border-bottom: none;
}
.purpose-block-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}
.purpose-block-title-area {
  display: flex;
  align-items: center;
  gap: 14px;
}
.purpose-block-icon {
  font-size: 1.75rem;
  line-height: 1;
  flex-shrink: 0;
}
.purpose-block-title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-dark);
  margin: 0 0 3px;
  line-height: 1.3;
}
.purpose-block-sub {
  display: block;
  font-size: .8rem;
  color: var(--text-muted);
  line-height: 1.4;
}
.purpose-block-more {
  font-size: .82rem;
  font-weight: 700;
  color: var(--brown);
  white-space: nowrap;
  text-decoration: none;
  flex-shrink: 0;
  transition: opacity .15s;
}
.purpose-block-more:hover { opacity: .7; }

/* ===== 感想フォーム誘導 ===== */
.feedback-cta {
  margin-top: 28px;
  background: linear-gradient(135deg, rgba(143,175,138,.14), rgba(168,200,224,.18));
  border: 1px solid rgba(139,101,85,.12);
  border-radius: var(--r-lg);
  padding: 22px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.feedback-cta-compact {
  margin: 0 0 28px;
  background: var(--white);
}

.feedback-cta-label {
  font-size: .72rem;
  font-weight: 700;
  color: var(--sage);
  margin-bottom: 4px;
}

.feedback-cta-title {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.feedback-cta p {
  font-size: .84rem;
  color: var(--text-mid);
  line-height: 1.65;
}

.feedback-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: var(--r-full);
  background: var(--brown);
  color: var(--white);
  font-size: .86rem;
  font-weight: 700;
  white-space: nowrap;
  transition: background .15s, transform .1s;
}

.feedback-cta-btn:hover {
  background: #6B4A3A;
  color: var(--white);
  transform: translateY(-1px);
}
.app-card-soon .app-thumb { filter: grayscale(30%); }
.app-btn-soon {
  font-size: .78rem;
  font-weight: 700;
  color: var(--text-muted);
  background: var(--cream-dark);
  border-radius: var(--r-full);
  padding: 6px 14px;
  letter-spacing: .03em;
}
.app-card-dev {
  opacity: .7;
  filter: grayscale(40%);
}
.app-card-dev .app-thumb { filter: grayscale(50%); }
.app-badge-dev {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  color: #fff;
  background: #94a3b8;
  border-radius: var(--r-full);
  padding: 3px 10px;
  letter-spacing: .04em;
  margin-right: 4px;
  vertical-align: middle;
}

.app-platform {
  font-size: .7rem;
  color: var(--text-muted);
  background: rgba(139,101,85,.08);
  padding: 3px 8px;
  border-radius: var(--r-full);
  margin-left: auto;
}

.section-more { text-align: center; margin-top: 44px; }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  border: 2px solid rgba(139,101,85,.3);
  color: var(--brown);
  padding: 12px 32px;
  border-radius: var(--r-md);
  font-weight: 700;
  font-size: .9rem;
  text-decoration: none;
  transition: background .15s, border-color .15s, transform .15s;
}

.btn-outline:hover {
  background: var(--cream);
  border-color: var(--brown);
  transform: translateY(-2px);
}

/* ===== 作者について ===== */
.about-section {
  padding: 80px 0;
  background: var(--cream-dark);
  position: relative;
  overflow: hidden;
}

/* 水彩風の背景装飾（右下に薄いにじみ） */
.about-section::before {
  content: '';
  position: absolute;
  bottom: -60px;
  right: -60px;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212,168,136,.18) 0%, transparent 70%);
  pointer-events: none;
}
.about-section::after {
  content: '';
  position: absolute;
  top: -40px;
  left: 10%;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(143,175,138,.12) 0%, transparent 70%);
  pointer-events: none;
}

.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-text {
  font-size: .95rem;
  color: var(--text-mid);
  line-height: 1.9;
  margin-bottom: 28px;
}

.about-card {
  background: var(--white);
  border-radius: var(--r-xl);
  padding: 32px;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(139,101,85,.10);
  position: relative;
  z-index: 1;
}

.about-profile {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(139,101,85,.10);
}

.profile-ava {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  flex-shrink: 0;
}

.profile-name { font-weight: 700; font-size: .95rem; color: var(--text-dark); }
.profile-role { font-size: .8rem; color: var(--sage); font-weight: 600; margin-top: 2px; }

.about-chips { display: flex; flex-wrap: wrap; gap: 7px; }

.chip {
  background: var(--cream);
  border: 1px solid rgba(139,101,85,.15);
  border-radius: var(--r-full);
  padding: 5px 12px;
  font-size: .78rem;
  font-weight: 600;
  color: var(--text-mid);
}

/* ===== お知らせ ===== */
.news-section {
  background: var(--cream);
  padding: 72px 0;
  position: relative;
}

/* 上部の区切りライン */
.news-section::before {
  content: '';
  position: absolute;
  top: 0; left: 5%; right: 5%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(139,101,85,.15), transparent);
}

.news-list {
  border-top: 1px solid rgba(139,101,85,.12);
  margin-top: 32px;
}

.news-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(139,101,85,.08);
  text-decoration: none;
  color: var(--text-dark);
}

.news-row:hover .news-title { color: var(--brown); }

.news-date {
  font-size: .78rem;
  color: var(--text-muted);
  white-space: nowrap;
  min-width: 88px;
}

.news-badge {
  font-size: .68rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 5px;
  white-space: nowrap;
}

.badge-new    { background: var(--sage-light);  color: #3A6A35; }
.badge-update { background: var(--sky-light);   color: #2A5A8A; }
.badge-info   { background: var(--cream-dark);  color: var(--text-muted); }
.badge-note   { background: #E8F0D8;            color: #3A5A1A; }

.news-title { font-size: .9rem; transition: color .15s; }

/* ===== フッター ===== */
.site-footer {
  background: var(--text-dark);
  color: rgba(255,255,255,.65);
  padding: 56px 0 28px;
}

.footer-body {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
}

.footer-logo .logo-copy { color: var(--white); }
.footer-logo .logo-copy small { color: rgba(255,255,255,.35); }

.footer-tagline {
  font-size: .82rem;
  line-height: 1.7;
  color: rgba(255,255,255,.45);
  margin-top: 10px;
}

.footer-col-title {
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: rgba(255,255,255,.35);
  margin-bottom: 14px;
}

.footer-links { list-style: none; display: flex; flex-direction: column; gap: 9px; }

.footer-links a {
  font-size: .85rem;
  color: rgba(255,255,255,.6);
  transition: color .15s;
}
.footer-links a:hover { color: var(--white); }

.footer-bottom {
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,.08);
  display: flex;
  justify-content: space-between;
  font-size: .75rem;
  color: rgba(255,255,255,.3);
}

/* ===== モバイル ===== */
@media (max-width: 768px) {
  .site-nav {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0; right: 0;
    background: var(--cream);
    flex-direction: column;
    padding: 12px 16px 20px;
    border-bottom: 1px solid rgba(139,101,85,.12);
    box-shadow: var(--shadow-md);
    z-index: 100;
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 10px 16px; width: 100%; }
  .hamburger { display: flex; }

  .hero-illust-wrap { aspect-ratio: 1/1; max-height: none; }
  .hero-overlay {
    background: linear-gradient(
      180deg,
      rgba(245,237,216,.9) 0%,
      rgba(245,237,216,.75) 55%,
      rgba(245,237,216,.0) 100%
    );
    align-items: flex-start;
    padding: 24px 20px;
  }
  .hero-title { font-size: 1.7rem; }
  .hero-actions { margin-bottom: 8px; }

  .room-hotspot { display: none; }
  .room-nav { grid-template-columns: 1fr; }
  .room-nav-btn { border-right: none; border-bottom: 1px solid rgba(139,101,85,.12); }
  .room-nav-btn:last-child { border-bottom: none; }
  .room-nav-btn { padding: 14px 8px; }
  .room-nav-icon { font-size: 1.3rem; }
  .room-nav-label { font-size: .7rem; }

  .apps-grid { grid-template-columns: 1fr; }
  .feedback-cta { flex-direction: column; align-items: flex-start; }
  .feedback-cta-btn { width: 100%; }
  .about-inner { grid-template-columns: 1fr; gap: 28px; }
  .footer-body { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; gap: 6px; text-align: center; }
  .trust-inner { gap: 20px; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; }
  .btn { justify-content: center; }
}

/* ===== イースターエッグ：みろんを探せ ===== */

.cat-map {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 10;
}

.cat-spot {
  position: absolute;
  width: 8%;
  aspect-ratio: 1;
  border-radius: 50%;
  cursor: pointer;
  pointer-events: all;
  /* outline: 2px solid red; */ /* デバッグ用 */
}

.cat-spot:hover {
  background: rgba(255, 255, 255, .12);
}

.cat-spot.found {
  /* 見つけた猫にほんのりきらきら */
  animation: catGlow 1.5s ease-out forwards;
}

@keyframes catGlow {
  0%   { box-shadow: 0 0 0 0 rgba(255,220,100,.7); background: rgba(255,220,100,.25); }
  60%  { box-shadow: 0 0 0 18px rgba(255,220,100,.0); background: rgba(255,220,100,.08); }
  100% { box-shadow: none; background: transparent; }
}

/* 吹き出し */
.cat-bubble {
  position: absolute;
  background: #fffdf7;
  border: 2px solid var(--brown-light);
  border-radius: 14px;
  padding: 10px 14px;
  font-size: .82rem;
  font-weight: 600;
  color: var(--text-dark);
  max-width: 190px;
  min-width: 120px;
  line-height: 1.6;
  box-shadow: 0 4px 18px rgba(44,30,20,.18);
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -100%) scale(.85);
  transition: opacity .2s, transform .2s;
  z-index: 30;
  white-space: pre-wrap;
  text-align: center;
}

.cat-bubble.visible {
  opacity: 1;
  transform: translate(-50%, -100%) scale(1);
}

/* 吹き出しの三角 */
.cat-bubble::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 8px solid transparent;
  border-top-color: var(--brown-light);
  border-bottom: none;
}

.cat-bubble::before {
  content: '';
  position: absolute;
  top: calc(100% - 2px);
  left: 50%;
  transform: translateX(-50%);
  border: 7px solid transparent;
  border-top-color: #fffdf7;
  border-bottom: none;
  z-index: 1;
}

/* 下側に出すとき：吹き出しは下へ伸び、尻尾は上向き */
.cat-bubble.below { transform: translate(-50%, 0) scale(.85); }
.cat-bubble.below.visible { transform: translate(-50%, 0) scale(1); }
.cat-bubble.below::after {
  top: auto;
  bottom: 100%;
  border: 8px solid transparent;
  border-bottom-color: var(--brown-light);
  border-top: none;
}
.cat-bubble.below::before {
  top: auto;
  bottom: calc(100% - 2px);
  border: 7px solid transparent;
  border-bottom-color: #fffdf7;
  border-top: none;
}

/* 「残り○匹」バッジ */
.cat-counter {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(255,255,255,.85);
  border: 1.5px solid var(--brown-light);
  border-radius: var(--r-full);
  padding: 5px 12px;
  font-size: .72rem;
  font-weight: 700;
  color: var(--brown);
  backdrop-filter: blur(4px);
  pointer-events: none;
  z-index: 20;
  opacity: 0;
  transition: opacity .3s;
}

.cat-counter.visible { opacity: 1; }

/* 全員発見モーダル */
.cat-complete {
  position: fixed;
  inset: 0;
  background: rgba(30, 22, 14, .55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s;
}

.cat-complete.show {
  opacity: 1;
  pointer-events: all;
}

.cat-complete-inner {
  background: var(--cream);
  border: 2px solid var(--brown-light);
  border-radius: var(--r-xl);
  padding: 40px 48px;
  text-align: center;
  box-shadow: var(--shadow-lg);
  max-width: 360px;
  width: 90%;
  animation: catPop .45s cubic-bezier(.34, 1.56, .64, 1) both;
}

@keyframes catPop {
  from { transform: scale(.7); opacity: 0; }
  to   { transform: scale(1);  opacity: 1; }
}

.cat-complete-emoji {
  font-size: 3rem;
  margin-bottom: 16px;
}

.cat-complete-msg {
  font-family: var(--font-serif);
  font-size: 1rem;
  line-height: 2;
  color: var(--text-dark);
  margin-bottom: 24px;
}

.cat-complete-sub {
  font-size: .8rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.cat-complete-close {
  background: var(--brown);
  color: #fff;
  border: none;
  border-radius: var(--r-md);
  padding: 10px 32px;
  font-weight: 700;
  font-size: .9rem;
  cursor: pointer;
  transition: background .15s;
}

.cat-complete-close:hover { background: #7A5545; }
