/* ============================================================
   夢の壁
   ------------------------------------------------------------
   デザインにあった「ハート数」と「人気の夢 TOP3」は作っていない。
   見た人が押せる形にするとDBを更新する導線が必要になり、
   「すべて手動で入力する」という運用方針から外れるため。
   下部のセクションは、その分を投稿導線に振り替えている。

   イラスト（.ph--dream）は管理画面からアップロードする。
   未設定のときは ph() がプレースホルダを返すので、
   カードの形は崩れない。
   ============================================================ */

/* ------------------------------------------------------------
   ヒーロー
   ------------------------------------------------------------ */
.page-hero--sky {
  position: relative;
  padding: 40px 0 0;
  background: linear-gradient(180deg, #cfe9fb 0%, #eaf6fe 55%, #fdfaf2 100%);
  text-align: center;
}
.page-hero--sky .page-hero__inner { position: relative; z-index: 2; }
.page-hero--sky .page-lead { padding-bottom: 90px; }

.sky-hero__eyebrow { font-size: 15px; }
.sky-hero__title {
  font-size: clamp(38px, 6vw, 62px);
  letter-spacing: .18em;
  margin: 4px 0 10px;
}
/* 見出しの下の波線 */
.sky-hero__title::after {
  content: ""; display: block;
  width: 232px; height: 8px; margin: 10px auto 0;
  background: radial-gradient(circle at 6px 8px, transparent 5px, var(--blue-light) 5px 6px, transparent 6px);
  background-size: 12px 8px;
  opacity: .8;
}

/* 気球。装飾なので、狭い画面では外側から順に消す */
.dream-sky { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.ph--balloon { position: absolute; width: 62px; height: 84px; }
.ph--balloon-1 { top: 18px;  left: 4%;   width: 52px; height: 70px; }
.ph--balloon-2 { top: 6px;   left: 14%; }
.ph--balloon-3 { top: 10px;  right: 13%; }
.ph--balloon-4 { top: 40px;  right: 3%;  width: 46px; height: 62px; }

/* 街並み。ヒーローの下辺に敷く */
.dream-town { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; pointer-events: none; }
.ph--town { display: block; width: 100%; height: 74px; object-fit: cover; object-position: bottom; }

/* ------------------------------------------------------------
   みんなの夢
   ------------------------------------------------------------ */
.dreams { background: #fdfaf2; padding: 34px 0 56px; }
.dreams__inner { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }

.dreams__head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.dreams__title { font-size: 18px; font-weight: 900; color: var(--blue); white-space: nowrap; }
.dreams__rule {
  flex: 1; height: 2px;
  background: repeating-linear-gradient(90deg, var(--blue-light) 0 8px, transparent 8px 14px);
}
.ph--plane { width: 26px; height: 26px; color: var(--blue); flex: none; }

.dreams__layout { display: grid; grid-template-columns: 268px minmax(0, 1fr); gap: 20px; align-items: start; }
.dreams__side { display: grid; gap: 20px; }

/* ------------------------------------------------------------
   投稿パネル
   ------------------------------------------------------------ */
.dream-cta {
  background: var(--blue-light);
  border-radius: var(--radius);
  padding: 22px 20px 24px;
  color: #fff;
}
.ph--dream-pen {
  width: 54px; height: 54px; border-radius: 50%;
  background: #fff; color: var(--blue-light);
  display: grid; place-items: center; font-size: 24px;
  margin-bottom: 12px;
}
.dream-cta__title { font-size: 21px; font-weight: 900; line-height: 1.45; }
.dream-cta__text  { font-size: 12px; line-height: 1.9; margin: 14px 0 18px; }
.dream-cta__btn   { width: 100%; justify-content: space-between; }

/* 黄色ボタン。style.css には blue しか無かったのでここで足す */
.btn--yellow {
  background: var(--yellow); color: var(--ink);
  box-shadow: 0 3px 0 #d9a300;
}
.btn--yellow:hover { background: #ffd257; transform: translateY(2px); box-shadow: 0 1px 0 #d9a300; }

/* ------------------------------------------------------------
   夢の壁について
   ------------------------------------------------------------ */
.dream-about {
  position: relative;
  background: #fff; border-radius: var(--radius);
  padding: 20px; box-shadow: var(--shadow-sm, 0 2px 10px rgba(0, 0, 0, .06));
}
.dream-about__title { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 900; }
.ph--leaf { width: 20px; height: 20px; flex: none; }
.dream-about__text { font-size: 12px; line-height: 2; margin-top: 12px; color: var(--ink-soft); }
.ph--clover { position: absolute; right: 14px; bottom: 12px; width: 26px; height: 26px; opacity: .8; }

/* ------------------------------------------------------------
   夢のカード
   ------------------------------------------------------------ */
.dream-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  list-style: none;
}
.dream-card {
  background: #fff; border-radius: var(--radius-sm);
  padding: 14px; box-shadow: 0 2px 10px rgba(0, 0, 0, .06);
  display: flex; flex-direction: column; gap: 8px;
}
.dream-card__art {
  display: grid; place-items: center;
  width: 100%; aspect-ratio: 1 / 1;
  border-radius: 50%; overflow: hidden;
  margin-bottom: 4px;
}
.ph--dream { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }

/* イラストの背景色。DBの color と対応する。
   トップページの付箋（.note--*）と同じキーを使う */
.dream-card__art--yellow { background: radial-gradient(circle at 50% 45%, #fff6cf, #ffe38a); }
.dream-card__art--pink   { background: radial-gradient(circle at 50% 45%, #ffe6ef, #ffc2d8); }
.dream-card__art--blue   { background: radial-gradient(circle at 50% 45%, #e2f1ff, #b9dcfb); }
.dream-card__art--green  { background: radial-gradient(circle at 50% 45%, #e6f8e9, #bfe9c7); }
.dream-card__art--orange { background: radial-gradient(circle at 50% 45%, #ffeed9, #ffd0a1); }
.dream-card__art--purple { background: radial-gradient(circle at 50% 45%, #f0e8fb, #d5bff0); }

.dream-card__title { font-size: 13px; font-weight: 900; line-height: 1.5; }
.dream-card__body  { font-size: 11px; line-height: 1.8; color: var(--ink-soft); }
.dream-card__meta  {
  font-size: 10px; color: var(--ink-soft);
  margin-top: auto; padding-top: 6px; border-top: 1px dashed var(--line, #e5e8ec);
}

.dreams__empty {
  background: #fff; border: 2px dashed #dbe4ec; border-radius: var(--radius);
  padding: 48px 20px; text-align: center; color: var(--ink-soft); font-size: 13px;
}

/* ------------------------------------------------------------
   もっと見る
   ------------------------------------------------------------ */
.dreams__more { text-align: center; margin-top: 26px; }
.btn--ghost {
  background: #fff; color: var(--blue);
  border: 2px solid var(--blue-light); box-shadow: none;
  min-width: 200px; justify-content: center;
}
.btn--ghost:hover { background: var(--sky); }
.btn--ghost[disabled] { opacity: .6; cursor: default; }
.dream-more__arrow { font-weight: 900; margin-left: 6px; }
/* 読み上げ用。件数の通知は画面には出さない */
.dream-more__msg {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

/* ------------------------------------------------------------
   みんなの夢が未来をつくる
   ------------------------------------------------------------ */
.dream-future { background: #fdfaf2; padding: 0 0 60px; }
.dream-future__inner {
  max-width: var(--container); margin: 0 auto;
  padding: 30px var(--gutter) 34px;
  background: var(--sky); border-radius: var(--radius);
}
.dream-future__title {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  font-size: clamp(19px, 2.4vw, 25px); font-weight: 900; color: var(--blue);
  letter-spacing: .06em; margin-bottom: 22px;
}
.dream-future__spark { color: var(--yellow); font-size: .8em; }
.dream-future__body {
  display: grid; grid-template-columns: minmax(0, 1fr) 220px;
  gap: 24px; align-items: center;
}
.dream-future__text p { font-size: 13px; line-height: 2; margin-bottom: 14px; }
.ph--dream-tree { width: 100%; height: auto; max-height: 200px; object-fit: contain; }

/* ------------------------------------------------------------
   レスポンシブ
   ------------------------------------------------------------ */
@media (max-width: 900px) {
  .dreams__layout { grid-template-columns: 1fr; }
  .dreams__side { grid-template-columns: 1fr 1fr; }
  .dream-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ph--balloon-1, .ph--balloon-4 { display: none; }
}

@media (max-width: 640px) {
  .dreams__side { grid-template-columns: 1fr; }
  .dream-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dream-future__body { grid-template-columns: 1fr; }
  .ph--dream-tree { max-height: 150px; justify-self: center; }
  .page-hero--sky .page-lead { padding-bottom: 60px; }
  .ph--town { height: 48px; }
  .ph--balloon { width: 44px; height: 60px; }
}
