/* manakuro.com 共通。値は DESIGN_RULES.md の約束から。約束にない色・飾り・影は足さない */
:root {
  --bg: #F2F4F4;   /* 地（お手本の #E6E9EA を明るくした。2026-10-22 西山さん B 案） */
  --ink: #111111;  /* 主：見出し・家 */
  --teal: #0B94AC; /* 副：帯・時刻 */
  --orange: #FF751F; /* 差し：一番言いたい語だけ */
  --white: #FFFFFF;
  --text: #333333;
  --peach: #EEBEA0; /* トップの3つの丸だけ */
  --red: #B61F1F;   /* NET の文字だけ */
  --head: "M PLUS 1p", "Hiragino Kaku Gothic StdN", sans-serif;
  --logo: "Nikokaku", "M PLUS 1p", sans-serif; /* ニコ角はロゴのようなポイントだけに使う（多用するとうるさい。2026-10-22 西山さん） */
  --body: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", sans-serif;
}
/* 見出しの書体：ニコ角 v2（OFL 1.1・作者 Ku-Ku 氏・漢字などは M+ FONTS）。サイトで使う文字だけに絞ったもの（tools/make_font.py で作る） */
@font-face { font-family: "Nikokaku"; src: url("/fonts/nicokaku.woff") format("woff"); font-weight: 400 900; font-display: swap; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; color: var(--text); font-family: var(--body); font-size: 15px; line-height: 1.9; letter-spacing: .08em;
       background:
         linear-gradient(118deg, rgba(255,255,255,.45) 0 22%, transparent 22.1%),
         linear-gradient(205deg, transparent 0 58%, rgba(255,255,255,.35) 58.1% 74%, transparent 74.1%),
         linear-gradient(160deg, rgba(0,0,0,.025) 0 40%, transparent 40.1%),
         var(--bg);
       background-attachment: fixed; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; background: #fff; padding: 8px 12px; z-index: 10; }
.w { max-width: 1040px; margin: 0 auto; padding: 0 20px; }
.hd-font { font-family: var(--head); font-weight: 800; letter-spacing: .02em; color: var(--ink); }

/* ---------- 見出し：2行に分けて中央（チラシの「日本中の仲間と／繋がろう」） ---------- */
.h-big { font-family: var(--head); font-weight: 800; color: var(--ink); font-size: 28px; line-height: 1.45; letter-spacing: .02em; text-align: center; }
.h-mid { font-family: var(--head); font-weight: 800; color: var(--ink); font-size: 22px; line-height: 1.5; letter-spacing: .02em; }
.em { color: var(--orange); }
.lead { margin-top: 14px; }

/* ---------- 区切り：背景の切り替えだけ ---------- */
.sec { padding: 64px 0; }
.sec--teal { background: var(--teal); color: #fff; }
.sec--teal .h-big, .sec--teal .h-mid { color: #fff; }
.sec--tight { padding-top: 24px; }

/* ---------- 白い板（帯の中に1枚だけ） ---------- */
.board { background: var(--white); color: var(--text); border-radius: 40px; padding: 32px 24px; }

/* ---------- ボタン（全体を丸く・影なし） ---------- */
.btn { display: inline-block; font-family: var(--head); font-weight: 800; font-size: 17px; letter-spacing: .04em; text-decoration: none;
       background: var(--ink); color: #fff; border-radius: 999px; padding: 14px 32px; line-height: 1.4; }
.btn--teal { background: var(--teal); }
.btn--white { background: #fff; color: var(--teal); }
.btn--line { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.btns { display: flex; flex-wrap: wrap; gap: 12px; }
.btns--c { justify-content: center; }

/* ---------- ヘッダー ---------- */
.hd { position: relative; z-index: 5; background: #fff; }
.hd__in { max-width: 1040px; margin: 0 auto; padding: 14px 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.hd__logo { display: flex; align-items: center; gap: 8px; text-decoration: none; }
.hd__logo img { width: 44px; }
.hd__logo span { font-family: var(--head); font-weight: 800; font-size: 20px; color: var(--ink); letter-spacing: .02em; line-height: 1; }
.hd__logo b { color: var(--orange); }
.hd__nav { display: flex; align-items: center; gap: 22px; font-family: var(--head); font-weight: 800; font-size: 14px; }
.hd__nav a { text-decoration: none; color: var(--ink); }
.hd__nav a[aria-current="page"] { color: var(--teal); }
.hd__nav .btn { font-size: 14px; padding: 9px 18px; color: #fff; }
.hd__menu { display: none; }
@media (max-width: 860px) {
  .hd__nav { display: none; }
  .hd__menu { display: block; position: relative; }
  .hd__menu summary { white-space: nowrap; list-style: none; cursor: pointer; font-family: var(--head); font-weight: 800; font-size: 14px; color: var(--ink); padding: 6px 2px; }
  .hd__menu summary::-webkit-details-marker { display: none; }
  .hd__menu nav { position: absolute; right: -8px; top: calc(100% + 8px); width: min(300px, calc(100vw - 24px)); background: var(--ink); border-radius: 24px; padding: 18px 22px;
                  display: grid; gap: 4px; font-family: var(--head); font-weight: 800; }
  .hd__menu nav a { color: #fff; text-decoration: none; padding: 8px 0; font-size: 16px; }
  .hd__menu nav .btn { margin-top: 8px; text-align: center; }
}

/* ---------- フッター（主の色の面） ---------- */
.ft { background: var(--ink); color: #cfcfcf; padding: 56px 0 28px; font-size: 13px; }
.ft__cols { display: grid; grid-template-columns: 1.2fr 1fr 1fr 1fr; gap: 28px; }
.ft__logo { display: block; width: 160px; }  /* 黒い地用の白黒反転版（西山さん作） */
.ft__brand p { margin-top: 16px; font-family: var(--head); font-weight: 800; color: #fff; }
.ft__brand address { font-style: normal; line-height: 1.7; margin-top: 2px; }
.ft__sns { display: flex !important; gap: 10px; margin-top: 16px; }
.ft__sns a { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: #fff; color: var(--ink); }
.ft__sns a:hover { background: var(--teal); color: #fff; }
.ft__sns svg { width: 20px; height: 20px; }
.ft h2 { font-family: var(--head); font-weight: 800; font-size: 14px; color: #fff; margin-bottom: 10px; letter-spacing: .04em; }
.ft ul { display: grid; gap: 4px; }
.ft a { color: #cfcfcf; text-decoration: none; }
.ft a:hover { color: #fff; text-decoration: underline; }
.ft__copy { margin-top: 40px; color: #888; font-size: 12px; }
@media (max-width: 860px) {
  .ft__cols { grid-template-columns: 1fr 1fr; }
  .ft__brand { grid-column: 1 / -1; }
}

/* まだ手元にない画像の見本枠（公開前になくす） */
.ph { display: flex; align-items: center; justify-content: center; aspect-ratio: 4 / 3; width: 100%; background: #d5d9db; color: #666; font-size: 12px; text-align: center; padding: 8px; word-break: break-all; }

/* =========================================================
   トップ
   ========================================================= */
/* 1. ヒーロー：左にロゴ、右に家の入口2つ、下に丸3つ、右下から2人 */
.top-hero { position: relative; overflow: hidden; padding: 24px 0 0; }
.top-hero__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 24px; align-items: center; }
.top-hero h1 { margin: 0; }
.top-hero h1 img { width: 100%; max-width: 480px; }
.top-hero__org { font-family: var(--head); font-weight: 800; color: var(--ink); font-size: 14px; margin-top: 18px; letter-spacing: .04em; }
.houses { display: flex; gap: 20px; justify-content: center; }
.house { position: relative; display: block; width: 220px; text-decoration: none; container-type: inline-size; }
.house__shape { display: block; width: 100%; height: auto; fill: var(--ink); }
.house__txt { position: absolute; left: 10%; right: 10%; top: 38%; bottom: 6%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
              font-family: var(--head); font-weight: 800; color: #fff; text-align: center; line-height: 1; }
.house__kind { font-size: 9cqw; letter-spacing: .04em; }
.house__name { font-size: 15cqw; letter-spacing: .06em; }
.house__name i { font-style: normal; display: block; }
.house__name .t { color: #12a8c2; }
.house__name .n { color: #e23a3a; }
.house__go { font-size: 7cqw; color: #fff; margin-top: 4px; white-space: nowrap; }
.circles { display: flex; gap: 18px; margin: 36px 0 0; padding-bottom: 56px; }
.circles li { flex: 0 0 auto; width: 150px; height: 150px; border-radius: 50%; background: var(--peach); display: flex; align-items: center; justify-content: center; text-align: center;
              font-family: var(--head); font-weight: 800; color: var(--ink); font-size: 14px; line-height: 1.6; letter-spacing: .02em; }
.top-hero__chara { position: absolute; right: 4%; bottom: 0; width: 280px; pointer-events: none; }
@media (max-width: 860px) {
  .top-hero__grid { grid-template-columns: 1fr; }
  .top-hero h1 img { max-width: 340px; margin: 0 auto; }
  .top-hero__org { text-align: center; }
  .houses { gap: 14px; }
  .house { width: 46%; max-width: 170px; }
  .house__name { font-size: 22px; }
  .circles { gap: 10px; justify-content: center; padding-bottom: 150px; }
  .circles li { width: min(104px, 29vw); height: min(104px, 29vw); font-size: min(11.5px, 3.3vw); line-height: 1.5; }
  .top-hero__chara { width: 170px; right: 8px; bottom: 0; }
}

/* 2. こんな状況 */
.worries { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px 48px; max-width: 760px; margin: 36px auto 0; }
.worries li { padding-left: 18px; position: relative; font-weight: 500; color: var(--ink); }
.worries li::before { content: ""; position: absolute; left: 0; top: .78em; width: 8px; height: 8px; background: var(--teal); }
.worries-a { margin-top: 40px; text-align: center; }
@media (max-width: 860px) { .worries { grid-template-columns: 1fr; gap: 14px; } }

/* 3. 基地の紹介（写真は角を丸めず端まで） */
.base { display: grid; grid-template-columns: 300px 1fr; gap: 28px 40px; align-items: start; }
.base__logo { width: 260px; }
.base__lead { font-size: 16px; }
.base__facts { margin-top: 18px; display: grid; gap: 2px; }
.base__facts b { font-family: var(--head); font-weight: 800; font-size: 20px; letter-spacing: .02em; }
.sec--teal .base__facts b { color: #fff; }
.sec:not(.sec--teal) .base__facts b { color: var(--teal); }
.base .btns { margin-top: 24px; }
.photos3 { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px; margin-top: 36px; }
.photos3 figure img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.photos3 figcaption { font-size: 12px; margin-top: 6px; }
@media (max-width: 860px) {
  .base { grid-template-columns: 1fr; }
  .base__logo { width: 220px; }
  .photos3 { grid-template-columns: 1fr 1fr; }
  .photos3 figure:first-child { grid-column: 1 / -1; }
}

/* 4. 過ごし方：絵と短い文。箱は使わない */
.ways { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 40px; margin-top: 40px; }
.way { display: grid; grid-template-columns: 150px 1fr; gap: 20px; align-items: center; }
.way img { width: 150px; }
.way h3 { margin-bottom: 6px; }
@media (max-width: 860px) { .ways { grid-template-columns: 1fr; } .way { grid-template-columns: 110px 1fr; } .way img { width: 110px; } }

/* 5. 利用者の声：白い吹き出し（角丸40px＋しっぽ） */
.voices { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 36px 28px; margin-top: 40px; align-items: start; }
.bubble { position: relative; background: #fff; border-radius: 40px; padding: 28px 30px; }
.bubble::after { content: ""; position: absolute; left: 36px; bottom: -18px; width: 34px; height: 24px; background: #fff; clip-path: polygon(0 0, 100% 0, 10% 100%); }
.voices li:nth-child(even) .bubble::after { left: auto; right: 36px; clip-path: polygon(0 0, 100% 0, 90% 100%); }
.bubble h3 { font-family: var(--head); font-weight: 800; color: var(--ink); font-size: 17px; line-height: 1.6; letter-spacing: .02em; margin-bottom: 10px; }
.bubble p { font-size: 14px; }
@media (max-width: 860px) { .voices { grid-template-columns: 1fr; } }

/* 6. 見学：青緑の帯＋白い板 */
.visit { display: grid; grid-template-columns: 1fr 1fr; gap: 32px 48px; margin-top: 32px; padding: 40px 48px; }
.sec--teal .visit h3 { color: var(--teal); }
.visit p { margin-top: 8px; }
.visit .btns { margin-top: 20px; }
.visit { position: relative; }
.visit__chara { position: absolute; right: 48px; bottom: 100%; width: 130px; }
@media (max-width: 860px) { .visit { grid-template-columns: 1fr; padding: 32px 24px; margin-top: 104px; } .visit__chara { width: 88px; right: 24px; } }

/* 7. 管理人 */
.keeper { display: grid; grid-template-columns: 220px 1fr; gap: 36px; align-items: center; max-width: 860px; margin: 0 auto; }
.keeper img { width: 220px; aspect-ratio: 1; object-fit: cover; border-radius: 50%; }
.keeper__role { font-family: var(--head); font-weight: 800; color: var(--ink); font-size: 14px; }
.keeper h2 { margin: 4px 0 14px; }
.keeper p + p { margin-top: 10px; }
.keeper__sns { margin-top: 18px; display: grid; gap: 4px; font-size: 13px; }
.keeper__sns a { font-weight: 700; color: var(--teal); text-decoration: none; margin-right: 8px; }
@media (max-width: 860px) { .keeper { grid-template-columns: 1fr; text-align: left; } .keeper img { width: 180px; margin: 0 auto; } }

/* 8. 応援 */
.support { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }

/* =========================================================
   わくわく（2026-10-22 お試し。?nofx を付けると切って見比べられる）
   1. 数字を大きく  2. 家の入口の反応  3. スクロールで現れる
   ========================================================= */
/* 1. 数字を大きく */
.base__facts .big { font-family: var(--head); font-weight: 800; line-height: 1.1; letter-spacing: .02em; display: block; margin-bottom: 8px; font-size: 22px; }
.base__facts .big small { display: block; font-size: 13px; letter-spacing: .06em; margin-bottom: 4px; }
.base__facts .big em { font-style: normal; }
.fx .base__facts .big { font-size: 34px; }
.fx .base__facts .big em { font-family: "Quicksand", var(--head); font-weight: 700; font-size: 96px; line-height: .9; letter-spacing: -.02em; margin: 0 4px; vertical-align: -6px; }
.fx .sec--teal .base__facts .big em { color: #fff; }
.fx .sec:not(.sec--teal) .base__facts .big em { color: var(--teal); }
.fx .sec:not(.sec--teal) .base__facts .big { color: var(--ink); }
.trip { text-align: center; }
.trip__nums { display: flex; justify-content: center; gap: 48px; margin: 28px 0 12px; font-family: var(--head); font-weight: 800; font-size: 26px; }
.trip__nums span { display: block; font-size: 14px; letter-spacing: .06em; }
.trip__nums em { font-style: normal; font-size: 48px; }
.fx .trip__nums em { font-family: "Quicksand", var(--head); font-weight: 700; font-size: 128px; line-height: .95; letter-spacing: -.03em; margin-right: 4px; }
.trip__txt { max-width: 560px; margin: 0 auto; }
@media (max-width: 860px) {
  .fx .base__facts .big { font-size: 26px; }
  .fx .base__facts .big em { font-size: 72px; }
  .trip__nums { gap: 24px; }
  .fx .trip__nums em { font-size: 84px; }
}

/* 2. 家の入口：のせると少し持ち上がり、お手本の3本線が出る */
.house__mark { position: absolute; left: 74%; top: 2%; width: 17%; color: var(--orange); opacity: 0; transform: scale(.4) rotate(-10deg); transform-origin: 0% 100%; }
.fx .house { transition: transform .25s ease; }
.fx .house__mark { transition: opacity .2s ease, transform .3s cubic-bezier(.2,1.4,.4,1); }
.fx .house:hover, .fx .house:focus-visible { transform: translateY(-8px); }
.fx .house:hover .house__mark, .fx .house:focus-visible .house__mark { opacity: 1; transform: none; }
.fx .house:hover .house__kind { color: var(--orange); }

/* 3. スクロールで現れる（1回だけ・短く） */
.fx .rv { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.fx .rv.in { opacity: 1; transform: none; }
.fx .photos3 .rv:nth-child(2), .fx .voices .rv:nth-child(even) { transition-delay: .12s; }
.fx .photos3 .rv:nth-child(3) { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  .fx .rv { opacity: 1; transform: none; transition: none; }
  .fx .house, .fx .house__mark { transition: none; }
}

/* ---------- ボタンにマウスを重ねたとき：左から色が満ちて、右に矢じりが出る（影・光は使わない） ---------- */
.btn { position: relative; isolation: isolate; overflow: hidden; transition: color .25s ease, padding .25s ease; }
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--teal); border-radius: inherit;
               transform: scaleX(0); transform-origin: left center; transition: transform .3s cubic-bezier(.2,.8,.2,1); }
.btn::after { content: ""; position: absolute; right: 18px; top: 50%; width: 7px; height: 7px; margin-top: -4px;
              border-top: 2.5px solid currentColor; border-right: 2.5px solid currentColor; transform: translateX(-8px) rotate(45deg); opacity: 0;
              transition: opacity .2s ease, transform .3s ease; }
.btn:hover, .btn:focus-visible { padding-right: 44px; padding-left: 28px; }
.btn:hover::before, .btn:focus-visible::before { transform: scaleX(1); }
.btn:hover::after, .btn:focus-visible::after { opacity: 1; transform: translateX(0) rotate(45deg); }
/* 色の組み合わせ（満ちる色） */
.btn--teal::before { background: var(--ink); }
.btn--white::before, .btn--line::before { background: var(--ink); }
.btn--white:hover, .btn--white:focus-visible, .btn--line:hover, .btn--line:focus-visible { color: #fff; }
.hd__nav .btn:hover, .hd__nav .btn:focus-visible { padding-right: 34px; padding-left: 16px; }
.hd__nav .btn::after { right: 13px; width: 6px; height: 6px; }
@media (prefers-reduced-motion: reduce) { .btn, .btn::before, .btn::after { transition: none; } }

/* キャラクターの絵は切り抜かない（体が切れて見えないように、枠の中に全身を収める） */
img[src^="/img/chara/"] { object-fit: contain !important; }

/* トップの NET-BASE の説明は、NET-BASE のページと同じ色（帯はえんじ、強調はロゴの赤）。TAMA-BASE は青緑の帯のまま */
.top-net { --teal: #B61F1F; }
.sec--teal.top-net { background: #8E2F2F; }

/* フッターの Instagram：触れたら Instagram の色に（ブランドの色なので、グラデーションを使わない約束の例外） */
.ft__sns a[aria-label="Instagram"]:hover, .ft__sns a[aria-label="Instagram"]:focus-visible {
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%); color: #fff; }

/* フッターの X：触れたら X の黒に。フッターも黒なので、白いふちで丸を見せる */
.ft__sns a[aria-label="X"]:hover, .ft__sns a[aria-label="X"]:focus-visible { background: #000; color: #fff; box-shadow: inset 0 0 0 2px #fff; }

/* ニコ角を使う場所：ヘッダーのロゴの文字と、トップの家の入口だけ */
.hd__logo span, .house__txt { font-family: var(--logo); }

/* トップの「お知らせ」：線や箱で囲まず、日付と題の並び */
.top-news { padding-bottom: 8px; }
.top-news__in { max-width: 760px; margin: 0 auto; }
.top-news__list { margin-top: 14px; display: grid; gap: 4px; }
.top-news__list a { display: grid; grid-template-columns: 9.5em 1fr; gap: 12px; padding: 10px 0; text-decoration: none; color: var(--text); }
.top-news__list time { font-family: var(--head); font-weight: 800; color: var(--teal); font-size: 14px; letter-spacing: .04em; }
.top-news__list b { font-weight: 500; }
.top-news__list a:hover b { color: var(--teal); text-decoration: underline; }
.top-news__more { margin-top: 10px; text-align: right; font-size: 14px; }
.top-news__more a { color: var(--teal); font-weight: 700; }
@media (max-width: 860px) { .top-news__list a { grid-template-columns: 1fr; gap: 0; } }

/* トップ：まなクロが開くイベント（コドマ！）。写真は角を丸めず、文は横に */
.top-event__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 32px 48px; align-items: center; margin-top: 36px; }
.top-event__photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.top-event__logo { width: 220px; margin-bottom: 10px; }
.top-event__name { font-family: var(--head); font-weight: 800; color: var(--ink); font-size: 20px; letter-spacing: .02em; margin-bottom: 8px; }
.top-event__when { margin-top: 12px; }
.top-event__when b { font-family: var(--head); font-weight: 800; color: var(--teal); font-size: 18px; letter-spacing: .02em; }
.top-event .btns { margin-top: 20px; }
@media (max-width: 860px) { .top-event__grid { grid-template-columns: 1fr; } .top-event__logo { width: 180px; } }
