@charset "UTF-8";

/* ============================================================================
   app.css — 年賀状作成ツール固有のページ装飾。
   エディタ本体の見た目は ../engine/card-editor.css が持つ。
   ========================================================================== */

/* ------------------------------------------------------------- アプリバー */

.nj-appbar {
  background: #fff;
  border-bottom: 1px solid #e6e2dd;
}

.nj-appbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  max-width: 1600px;
  margin: 0 auto;
  padding: 12px 20px;
}

.nj-brand { display: flex; align-items: center; gap: 12px; }

.nj-brand-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: #fdeceb;
  color: #d0342c;
}

.nj-brand-text h1 {
  margin: 0;
  font-size: 1.24rem;
  font-weight: 700;
  color: #d0342c;
  letter-spacing: .01em;
}

.nj-brand-text p {
  margin: 2px 0 0;
  font-size: 0.8rem;
  color: #6b6560;
}

.nj-appbar-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

.nj-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border: 1px solid #f3dfae;
  border-radius: 999px;
  background: #fdf7e6;
  color: #8a6a2f;
  font-size: 0.82rem;
  font-weight: 600;
}

.nj-badge::before { content: "💡"; }

.nj-save-state { font-size: 0.78rem; color: #6b6560; min-width: 8em; }

.nj-icon-btn,
.nj-ghost-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  min-height: 38px;
  border: 1.5px solid #e6e2dd;
  border-radius: 9px;
  background: #fff;
  color: #4a443f;
  font-size: 0.86rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: border-color .15s, color .15s;
}

.nj-icon-btn { width: 38px; padding: 0; justify-content: center; border-radius: 50%; font-size: 1rem; }

.nj-icon-btn:hover,
.nj-ghost-btn:hover { border-color: #d0342c; color: #d0342c; }

/* --------------------------------------------------------------- 解説セクション */

.nj-section { padding: 2.6rem 0 0.4rem; }

.nj-section > h2 {
  margin: 0 0 1.4rem;
  font-size: 1.35rem;
  color: #2f2a26;
  text-align: center;
}

.nj-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}

.nj-grid article {
  padding: 1.15rem 1.25rem;
  border: 1px solid #ece8e2;
  border-radius: 12px;
  background: #fff;
}

.nj-grid article > span {
  display: inline-block;
  margin-bottom: .5rem;
  padding: 3px 10px;
  border-radius: 999px;
  background: #fdeceb;
  color: #d0342c;
  font-size: .72rem;
  font-weight: 700;
}

.nj-grid article h3 { margin: 0 0 .4rem; font-size: .98rem; color: #2f2a26; }
.nj-grid article p { margin: 0; font-size: .86rem; line-height: 1.75; color: #5c5651; }

.nj-steps {
  counter-reset: nj-step;
  list-style: none;
  max-width: 780px;
  margin: 0 auto;
  padding: 0;
}

.nj-steps li {
  counter-increment: nj-step;
  position: relative;
  padding: 1rem 1.25rem 1rem 3.4rem;
  border: 1px solid #ece8e2;
  border-radius: 12px;
  background: #fff;
}

.nj-steps li + li { margin-top: .7rem; }

.nj-steps li::before {
  content: counter(nj-step);
  position: absolute;
  left: 1.1rem;
  top: 1rem;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #d0342c;
  color: #fff;
  font-size: .84rem;
  font-weight: 700;
  line-height: 26px;
  text-align: center;
}

.nj-steps strong { display: block; font-size: .96rem; color: #2f2a26; }
.nj-steps span { display: block; margin-top: .25rem; font-size: .85rem; line-height: 1.7; color: #5c5651; }

.nj-steps-compact li { padding: .7rem .9rem .7rem 3rem; }
.nj-steps-compact li::before { top: .75rem; left: .8rem; }

.nj-outro { padding-bottom: 3rem; }

.nj-related {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: .9rem;
  max-width: 880px;
  margin: 0 auto;
}

.nj-related a {
  display: block;
  padding: 1rem 1.1rem;
  border: 1px solid #ece8e2;
  border-radius: 12px;
  background: #fff;
  text-decoration: none;
  transition: transform .15s, box-shadow .15s;
}

.nj-related a:hover { transform: translateY(-2px); box-shadow: 0 4px 14px rgba(0,0,0,.07); }
.nj-related strong { display: block; font-size: .92rem; color: #2f2a26; }
.nj-related span { display: block; margin-top: .2rem; font-size: .8rem; color: #6b6560; }

/* ---------------------------------------------------------------- 狭い画面 */

@media (max-width: 720px) {
  .nj-appbar-inner { padding: 10px 14px; gap: 10px; }
  .nj-brand-icon { width: 36px; height: 36px; }
  .nj-brand-text h1 { font-size: 1.08rem; }
  .nj-brand-text p { font-size: .74rem; }
  .nj-save-state { display: none; }
  .nj-badge { font-size: .74rem; padding: 5px 10px; }
  .nj-ghost-btn { font-size: .8rem; padding: 7px 10px; }
  .nj-section { padding-top: 2rem; }
  .nj-section > h2 { font-size: 1.15rem; }
}
