/* =========================================================
   nuitto ホームページ 共通スタイル
   色を変えたいときは、下の「色の設定」だけ直せばOK
   ========================================================= */

/* ---- 色の設定（応援チラシと同じ配色） ---- */
:root {
  --cream: #FAF1E0;      /* 背景 */
  --orange: #F08314;     /* メインのオレンジ */
  --orange-dark: #D96F06;
  --peach: #F8DDBB;      /* うすいオレンジ */
  --apricot: #F7C088;
  --line: #F1E3CB;       /* 線・区切り */
  --text: #3A322B;       /* 文字 */
  --text-sub: #6B5F55;
  --white: #FFFFFF;
  --radius: 20px;
  --max: 1080px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--text);
  font-family: "Noto Sans JP", "Hiragino Sans", sans-serif;
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--orange-dark); }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ---- ヘッダー ---- */
.header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(250, 241, 224, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { font-weight: 900; font-size: 28px; color: var(--orange); text-decoration: none; letter-spacing: 0; }
.nav { display: flex; gap: 24px; align-items: center; }
.nav a { color: var(--text); text-decoration: none; font-size: 14px; font-weight: 500; }
.nav a:hover { color: var(--orange); }
.nav .btn-small { background: var(--orange); color: var(--white); padding: 6px 16px; border-radius: 999px; }
.nav .btn-small:hover { background: var(--orange-dark); color: var(--white); }
.menu-toggle { display: none; background: none; border: 0; font-size: 26px; color: var(--text); cursor: pointer; }

/* ---- ファーストビュー ---- */
.hero { padding: 72px 0 56px; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.dots { display: flex; gap: 8px; margin-bottom: 20px; }
.dots span { width: 10px; height: 10px; border-radius: 50%; background: var(--apricot); }
.hero h1 { font-size: clamp(34px, 5.2vw, 56px); line-height: 1.3; margin: 0 0 24px; font-weight: 900; letter-spacing: 0.01em; }
.hero .lead { font-size: 17px; font-weight: 500; margin: 0 0 32px; }
.hero-photo { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; box-shadow: 0 20px 40px -24px rgba(58, 50, 43, 0.35); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.btn {
  display: inline-block; background: var(--orange); color: var(--white);
  font-weight: 700; text-decoration: none; padding: 14px 32px; border-radius: 999px;
}
.btn:hover { background: var(--orange-dark); }
.btn-outline { background: transparent; color: var(--orange-dark); border: 2px solid var(--orange); margin-left: 8px; }
.btn-outline:hover { background: var(--peach); }

/* ---- セクション共通 ---- */
.section { padding: 72px 0; }
.section-white { background: var(--white); }
.section-title { display: flex; align-items: center; gap: 12px; font-size: 26px; font-weight: 900; margin: 0 0 8px; line-height: 1.4; }
.section-title::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--orange); flex: none; }
.section-en { color: var(--orange); font-size: 13px; font-weight: 700; letter-spacing: 0.15em; margin: 0 0 32px 24px; }

/* ---- 想い ---- */
.message { max-width: 760px; }
.message p { margin: 0 0 1.4em; }
.message .strong { font-size: 20px; font-weight: 700; line-height: 1.7; }
.message em { font-style: normal; background: linear-gradient(transparent 62%, var(--peach) 62%); }

/* ---- 取り組み ---- */
.works { display: grid; gap: 24px; }
.work {
  display: grid; grid-template-columns: 1fr 1.3fr; gap: 32px; align-items: center;
  background: var(--cream); border-radius: var(--radius); padding: 28px;
}
.work-photo { border-radius: 14px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--peach); }
.work-photo.placeholder { display: grid; place-items: center; color: var(--orange-dark); font-weight: 700; font-size: 14px; }
.work-photo img { width: 100%; height: 100%; object-fit: cover; }
.work-num { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--orange); color: var(--white); font-weight: 700; font-size: 15px; }
.work h3 { font-size: 22px; margin: 10px 0 4px; line-height: 1.5; }
.work .sub { color: var(--orange-dark); font-weight: 700; font-size: 14px; margin: 0 0 12px; }
.work p { margin: 0 0 10px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; padding: 0; list-style: none; }
.tags li { background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 2px 12px; font-size: 13px; }

/* ---- 来年も、この家があるように ---- */
.yohaku { background: var(--white); border: 2px solid var(--peach); border-radius: var(--radius); padding: 40px; }
.yohaku h2 { font-size: 28px; margin: 0 0 16px; font-weight: 900; }
.yohaku h2 span { color: var(--orange); }
.yohaku p { margin: 0 0 1em; }

/* ---- 応援のかたち ---- */
.support-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 32px; }
.card { background: var(--white); border: 2px solid var(--line); border-radius: var(--radius); padding: 28px 24px; display: flex; flex-direction: column; }
.card h3 { font-size: 19px; line-height: 1.5; margin: 12px 0 4px; }
.card .sub { color: var(--orange-dark); font-weight: 700; font-size: 14px; margin: 0 0 12px; }
.card p { font-size: 15px; margin: 0 0 12px; }
.card .note { font-size: 12px; color: var(--text-sub); line-height: 1.7; }
.card .btn { margin-top: auto; text-align: center; padding: 12px 20px; font-size: 15px; }
.support-foot { text-align: center; font-weight: 700; margin: 32px 0 0; }

/* ---- お知らせ ---- */
.news { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.news li { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 18px 4px; border-bottom: 1px solid var(--line); }
.news time { color: var(--orange-dark); font-weight: 700; font-size: 14px; padding-top: 2px; }

/* ---- 団体概要 ---- */
.about-table { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--radius); overflow: hidden; }
.about-table th, .about-table td { text-align: left; padding: 16px 24px; border-bottom: 1px solid var(--line); vertical-align: top; }
.about-table th { width: 180px; background: var(--peach); font-weight: 700; font-size: 15px; }
.about-table tr:last-child th, .about-table tr:last-child td { border-bottom: 0; }

/* ---- お問い合わせ ---- */
.contact { text-align: center; }
.contact p { margin: 0 0 24px; }
.contact .links { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }

/* ---- フッター ---- */
.footer { border-top: 1px solid var(--apricot); padding: 32px 0; font-size: 13px; color: var(--text-sub); }
.footer .wrap { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.footer .logo { font-size: 24px; }

/* ---- スマホ表示 ---- */
@media (max-width: 820px) {
  body { font-size: 15px; }
  .wrap { padding: 0 16px; }
  .menu-toggle { display: block; }
  .nav {
    display: none; position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; gap: 0; background: var(--cream); border-bottom: 1px solid var(--line);
  }
  .nav.open { display: flex; }
  .nav a { padding: 14px 16px; width: 100%; text-align: center; }
  .nav .btn-small { border-radius: 0; }
  .hero { padding: 40px 0; }
  .hero .wrap { grid-template-columns: 1fr; gap: 28px; }
  .btn-outline { margin: 12px 0 0; }
  .section { padding: 56px 0; }
  .section-title { font-size: 22px; }
  .work { grid-template-columns: 1fr; padding: 20px; gap: 16px; }
  .yohaku { padding: 28px 20px; }
  .yohaku h2 { font-size: 23px; }
  .support-cards { grid-template-columns: 1fr; }
  .news li { grid-template-columns: 1fr; gap: 2px; }
  .about-table th, .about-table td { display: block; width: 100%; padding: 10px 16px; }
  .about-table th { border-bottom: 0; }
}

/* =========================================================
   あゆみページ（history.html）
   ========================================================= */
.page-head { padding: 56px 0 32px; }
.page-head h1 { font-size: clamp(30px, 4.5vw, 44px); font-weight: 900; line-height: 1.35; margin: 0 0 12px; }
.page-head p { margin: 0; max-width: 680px; }
.crumb { font-size: 13px; margin-bottom: 16px; }
.crumb a { color: var(--text-sub); }

/* 数字で見る */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat { background: var(--cream); border-radius: 16px; padding: 20px; }
.stat b { display: block; font-size: 34px; font-weight: 900; color: var(--orange); line-height: 1.2; font-variant-numeric: tabular-nums; }
.stat b small { font-size: 16px; margin-left: 2px; }
.stat span { font-size: 14px; }
.stats-note { font-size: 12px; color: var(--text-sub); margin: 12px 0 0; }

/* 年表 */
.timeline { list-style: none; margin: 0; padding: 0; }
.year { display: grid; grid-template-columns: 110px 1fr; gap: 24px; padding: 28px 0; border-top: 1px solid var(--line); }
.year:first-child { border-top: 0; padding-top: 0; }
.year > h3 { margin: 0; font-size: 26px; font-weight: 900; color: var(--orange); line-height: 1.3; font-variant-numeric: tabular-nums; }
.year > h3 small { display: block; font-size: 12px; color: var(--text-sub); font-weight: 500; }
.events { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.events li { display: grid; grid-template-columns: 56px 1fr; gap: 12px; }
.events time { font-weight: 700; font-size: 14px; color: var(--orange-dark); padding-top: 2px; }
.events .mark { display: inline-block; font-size: 11px; font-weight: 700; background: var(--peach); border-radius: 4px; padding: 0 6px; margin-right: 6px; vertical-align: 2px; }

/* 実績リスト（受賞・助成・講演） */
.record-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.record { background: var(--white); border-radius: var(--radius); padding: 28px; }
.record h3 { font-size: 19px; margin: 0 0 12px; }
.record ul { list-style: none; margin: 0; padding: 0; }
.record li { padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15px; line-height: 1.7; }
.record li:last-child { border-bottom: 0; }
.record time { display: block; font-size: 13px; font-weight: 700; color: var(--orange-dark); }
.record-wide { grid-column: 1 / -1; }
.record-wide ul { columns: 2; column-gap: 40px; }
.record-wide li { break-inside: avoid; }

/* トップページの「あゆみ」導線 */
.history-teaser { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; background: var(--cream); border-radius: var(--radius); padding: 32px; }
.history-teaser h3 { margin: 0 0 6px; font-size: 20px; }
.history-teaser p { margin: 0; }

@media (max-width: 820px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .year { grid-template-columns: 1fr; gap: 12px; }
  .record-grid { grid-template-columns: 1fr; }
  .record-wide ul { columns: 1; }
  .history-teaser { grid-template-columns: 1fr; padding: 24px 20px; }
}
