@charset "UTF-8";

/* ===============================
   猫十字 明細ページ専用CSS
   prefix: nd-
   =============================== */

/* ---------- 共通 ---------- */
.nd-page {
  font-size: 1.6rem;
  line-height: 1.8;
  color: #333;
  background: #fffaf3;
}

.nd-page img {
  max-width: 100%;
  height: auto;
}

/* ---------- ヒーロー ---------- */
.nd-hero {
  padding: 4rem 2rem 5rem;
  background: #fff;
  text-align: center;
}

.nd-hero__inner {
  max-width: 1000px;
  margin: 0 auto;
}

.nd-hero__image {
  display: block;
  width: 80%;
  max-width: 520px;
  margin: 0 auto 2rem;
}

.nd-hero__label {
  font-size: 1.2rem;
  letter-spacing: 0.22em;
  color: #999;
  font-weight: 700;
}

.nd-hero__title {
  margin-top: 1rem;
  font-size: 2.4rem;
  line-height: 1.45;
  font-weight: 800;
}

.nd-hero__title::after {
  content: "";
  display: block;
  width: 140px;
  height: 3px;
  background: #009cf5;
  margin: 1.4rem auto 0;
  border-radius: 999px;
}

.nd-hero__text {
  max-width: 760px;
  margin: 2rem auto 0;
  color: #555;
	text-align: left;
}

/*ーーー共通ボタンーーーー*/
.nd-cross-nav {
  display: flex;
  gap: 0.6rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2rem;
  margin-bottom: 1.5rem;
}

.nd-cross-nav__link {
  padding: 0.5rem 1.2rem;
  border-radius: 999px;
  border: 1px solid #ccc;
  font-size: 1.3rem;
  text-decoration: none;
  color: #333;
  background: #fff;
}

.nd-cross-nav__link.is-active {
  background: #000;
  color: #fff;
  border-color: #000;
}

/* ---------- 現在額 ---------- */
.nd-current {
  max-width: 420px;
  margin: 3rem auto 0;
  padding: 2rem;
  border-radius: 18px;
  background: #111;
  color: #fff;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.nd-current__label {
  font-size: 1.4rem;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.75);
}

.nd-current__amount {
  margin-top: 0.4rem;
  font-size: 3.2rem;
  line-height: 1.2;
  font-weight: 900;
}

/* ---------- ボタン ---------- */
.nd-hero__button-wrap {
  margin-top: 2rem;
}

.nd-button {
  display: inline-block;
  padding: 1rem 2rem;
  border-radius: 999px;
  font-size: 1.4rem;
  font-weight: 700;
  text-decoration: none;
  transition: 0.25s ease;
}

.nd-button--ghost {
  border: 1px solid #009cf5;
  color: #009cf5;
  background: #fff;
}

.nd-button--ghost:hover {
  background: #009cf5;
  color: #fff;
}

/* ---------- 年セクション ---------- */
/* 年ナビ全体 */
.nd-year-nav {
  display: flex;
  gap: 0.8rem;
  overflow-x: auto;
  padding: 1rem;
  margin: 1.5rem 0;
  -webkit-overflow-scrolling: touch;
	
}

/* スクロールバー消す（スマホ） */
.nd-year-nav::-webkit-scrollbar {
  display: none;
}

/* 年リンク */
.nd-year-nav__link {
  flex: 0 0 auto;
  padding: 0.6rem 1.2rem;
  border-radius: 999px;
  border: 1px solid #ccc;
  font-size: 1.4rem;
  color: #333;
  text-decoration: none;
  background: #fff;
  transition: all 0.2s ease;
}

.nd-year-nav__link.is-active {
  background: #000;
  color: #fff;
}

/* ホバー */
.nd-year-nav__link:hover {
  background: #f0f0f0;
}

/* アクティブ（選択中） */
.nd-year-nav__link.is-active {
  background: #000;
  color: #fff;
  border-color: #000;
}




.nd-year {
  padding: 5rem 2rem;
}

.nd-year__inner {
  max-width: 1100px;
  margin: 0 auto;
}

.nd-year--blue {
  background: #f1f8ff;
}

.nd-year--red {
  background: #fff3f3;
}

.nd-year__head {
  text-align: center;
  margin-bottom: 3rem;
}

.nd-year__label {
  font-size: 1.2rem;
  letter-spacing: 0.22em;
  color: #999;
  font-weight: 700;
}

.nd-year__title {
  font-size: 4rem;
  line-height: 1;
  font-weight: 900;
}

.nd-year__title::after {
  content: "";
  display: block;
  width: 120px;
  height: 3px;
  background: #009cf5;
  margin: 1.2rem auto 0;
  border-radius: 999px;
}

/* ---------- 年間サマリー ---------- */
.nd-summary {
  display: grid;
  gap: 1rem;
  margin-bottom: 3rem;
}

.nd-summary__item {
  padding: 1.8rem;
  border-radius: 16px;
  background: #fff;
  text-align: center;
  box-shadow: 0 8px 20px rgba(0,0,0,0.05);
}

.nd-summary__item span {
  display: block;
  font-size: 1.3rem;
  color: #777;
  letter-spacing: 0.06em;
}

.nd-summary__item strong {
  display: block;
  margin-top: 0.4rem;
  font-size: 2.2rem;
  font-weight: 900;
}

/* ---------- 明細リスト ---------- */
.nd-entry-list {
  display: grid;
  gap: 1.4rem;
}

/* ---------- 明細カード ---------- */
.nd-entry {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 1.2rem;
  padding: 1.6rem;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(0,0,0,0.05);
  border-left: 6px solid #ddd;
}

.nd-entry--in {
  border-left-color: #009cf5;
}

.nd-entry--out {
  border-left-color: #d40000;
}

.nd-entry--carry {
  border-left-color: #111;
}

.nd-entry__date {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 5.6rem;
  border-radius: 14px;
  background: #f4f4f4;
  font-size: 1.6rem;
  font-weight: 900;
}

.nd-entry__body {
  min-width: 0;
}

.nd-entry__money {
  margin-bottom: 0.4rem;
  font-size: 1.8rem;
  font-weight: 900;
}

.nd-entry__money--in {
  color: #0077c8;
}

.nd-entry__money--out {
  color: #c80000;
}

.nd-entry__text {
  color: #444;
}

.nd-entry__link {
  display: inline-block;
  margin-top: 0.8rem;
  font-size: 1.4rem;
  font-weight: 700;
  color: #009cf5;
  text-decoration: none;
}

.nd-entry__link:hover {
  text-decoration: underline;
}

/* ---------- 注記 ---------- */
.nd-note {
  margin-top: 2rem;
  padding: 1.4rem 1.6rem;
  border-radius: 12px;
  background: rgba(255,255,255,0.7);
  color: #666;
  font-size: 1.4rem;
}

/* ===============================
   タブレット以上
   =============================== */
@media (min-width: 768px) {

  .nd-hero {
    padding: 5rem 2rem 6rem;
  }

  .nd-hero__title {
    font-size: 3rem;
  }

  .nd-current__amount {
    font-size: 4rem;
  }

  .nd-summary {
    grid-template-columns: repeat(3, 1fr);
  }

  .nd-entry {
    grid-template-columns: 9rem 1fr;
    padding: 2rem;
  }

  .nd-entry__date {
    font-size: 1.8rem;
  }

  .nd-entry__money {
    font-size: 2rem;
  }
}

/* ===============================
   PC
   =============================== */
@media (min-width: 1024px) {

  .nd-hero__image {
    max-width: 600px;
  }

  .nd-hero__title {
    font-size: 3.4rem;
  }

  .nd-year {
    padding: 6rem 2rem;
  }

  .nd-entry-list {
    gap: 1.6rem;
  }

  .nd-entry {
    grid-template-columns: 10rem 1fr;
  }
}

/* ===============================
   大画面
   =============================== */
@media (min-width: 1280px) {

  .nd-hero__title {
    font-size: 3.8rem;
  }

  .nd-year__title {
    font-size: 4.8rem;
  }
}

/*ーーーーフッターナビーーーーー*/
.nd-footer-nav {
  display: flex;
  justify-content: center;  /* ← 中央寄せ */
  gap: 1rem;                /* ← ボタン間の余白 */
  margin: 2rem 0;
  flex-wrap: wrap;          /* ← スマホで折り返し */
}
.nd-footer-nav .nd-button {
  min-width: 200px;   /* ← 横幅揃えると綺麗 */
  text-align: center;
}
