/* ==========================================================================
   ねはる 公式サイト — スタイルシート

   テーマ：「ジャンクコーナー」を、清潔感のある・かわいい方向で
     カッターマットの方眼 / ラベルライターのテープ / ジャンク品の値札 / 手書きPOP
   色はテーマカラーの緑が主役。ロゴだけ緑→青のグラデーション。

   目次
     1. 色・フォント
     2. ベース
     3. 共通パーツ（container / セクション見出し / ラベルテープ / 挿絵の枠）
     4. ヘッダー・Follow Me
     5. タイトル（hero）
     6. Info（値札）
     7. About（大きな値札）
     8. Movie（ボタンもここ）
     9. フッター（リンク集）
    10. お知らせのポップアップ
    11. ローディング
    12. スマホ / 動きを減らす設定
   ========================================================================== */


/* 1. 色・フォント
   ------------------------------------------------------------------------ */
:root {
  --green:      #1f8a52;  /* テーマカラー */
  --green-pale: #e4f1e8;
  --blue:       #2b8fd8;  /* ロゴのグラデーション先 */
  --logo-grad:  linear-gradient(100deg, #26b863 0%, #1fa07f 45%, #2b8fd8 100%);

  --paper:      #f5f4ee;  /* 地の色 */
  --ink:        #1d2621;  /* 文字 */
  --ink-2:      #4b5650;
  --ink-3:      #858e88;
  --grid:       rgba(31, 138, 82, .09);
  --grid-bold:  rgba(31, 138, 82, .18);

  --mint:       #eaf6ef;  /* About・フッターの背景 */
  --line:       #d6e7dc;  /* 枠線・罫線 */
  --tag-green:  #22a35a;  /* 値札の緑帯 */
  --tag-green-dark: #137a3f;
  --red:        #e0412f;  /* 値札の値段・赤ペン */
  --pop:        #ffe94d;  /* 手書きPOP の紙 */
  --pop-red:    #d93a2b;
  --radius:     14px;

  --font:       'Zen Maru Gothic', 'Hiragino Maru Gothic ProN', sans-serif; /* 本文（丸ゴシック） */
  --font-hand:  'Yomogi', 'Zen Maru Gothic', cursive;                       /* 手書き */
  --font-dot:   'DotGothic16', 'Zen Maru Gothic', monospace;                /* ラベル・数字 */
  --font-title: 'Fredoka', 'Zen Maru Gothic', sans-serif;                   /* Info / About などの見出し */

  --container: 1160px;
  --gutter: clamp(20px, 5vw, 56px);
}


/* 2. ベース
   ------------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.9;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
ul { list-style: none; padding: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }


/* 3. 共通パーツ
   ------------------------------------------------------------------------ */
.container {
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* セクション見出し：太めの丸い英字 + ラベルテープ + SDキャラ */
.section-title {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px;
  margin-bottom: 56px;
}
.section-title h2 { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 20px; font-weight: 400; }
.section-title__en {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: clamp(52px, 7vw, 92px);
  line-height: 1;
  letter-spacing: .01em;
  padding-bottom: .06em;                 /* グラデーションが文字の下で切れないように */
  background: var(--logo-grad);          /* ロゴと同じ 緑→青 */
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.section-title__sd { width: clamp(120px, 16vw, 200px); flex-shrink: 0; }

/* ラベルライターのテープ */
.dymo {
  display: inline-block;
  padding: 3px 14px 3px 18px;
  background: var(--green);
  color: #fff;
  font-family: var(--font-dot);
  font-size: 15px;
  letter-spacing: .3em;
  line-height: 1.6;
  text-shadow: 0 1px 0 rgba(0, 0, 0, .35);
  transform: rotate(-3deg);
  /* 両端をハサミで切ったようにギザギザに */
  clip-path: polygon(0 0, 100% 0, 97% 25%, 100% 50%, 97% 75%, 100% 100%, 0 100%, 3% 75%, 0 50%, 3% 25%);
}
.empty { color: var(--ink-3); }

/* 挿絵がまだ無いときの「ここに置いてね」枠 */
.img-slot {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  min-height: 160px;
  padding: 16px;
  border: 2px dashed var(--green);
  background: repeating-linear-gradient(-45deg, rgba(31, 138, 82, .05) 0 10px, transparent 10px 20px);
  color: var(--green);
  text-align: center;
}
.img-slot b { font-family: var(--font-dot); font-weight: 400; font-size: 14px; }
.img-slot span { font-size: 12px; line-height: 1.6; color: var(--ink-2); }


/* 4. ヘッダー・Follow Me
   ------------------------------------------------------------------------ */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
  padding-inline: var(--gutter);
  transition: background .3s;
}
.site-header.is-scrolled { background: rgba(245, 244, 238, .94); border-bottom: 1px dashed var(--grid-bold); }
/* ヘッダーの文字はすべてロゴと同じ 緑→青 のグラデーション */
.site-header__home,
.site-nav a,
.mobile-menu a {
  background: var(--logo-grad);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  text-decoration: none;
}
.site-header__home {
  font-family: var(--font-hand); font-size: 28px; line-height: 1.2;   /* ロゴと同じ手書き体 */
  opacity: 0; transition: opacity .3s;          /* スクロールしてから出す（ヒーローのロゴと重複させない） */
}
.site-header.is-scrolled .site-header__home { opacity: 1; }
.site-nav { display: flex; gap: 28px; }
.site-nav a {
  position: relative;
  font-family: var(--font-title); font-weight: 600; font-size: 19px; letter-spacing: .02em;
}
.site-nav a::after {                            /* ホバーで下にグラデーションの線 */
  content: ''; position: absolute; left: 0; right: 0; bottom: -3px;
  height: 3px; border-radius: 3px;
  background: var(--logo-grad);
  transform: scaleX(0); transform-origin: left;
  transition: transform .25s ease;
}
.site-nav a:hover::after { transform: scaleX(1); }

.menu-button { display: none; position: relative; width: 44px; height: 44px; }
.menu-button span:not(.visually-hidden) {
  position: absolute; left: 10px; right: 10px; height: 2px; background: var(--ink);
  transition: transform .3s, top .3s;
}
.menu-button span:nth-child(1) { top: 17px; }
.menu-button span:nth-child(2) { top: 26px; }
.menu-button[aria-expanded="true"] span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.menu-button[aria-expanded="true"] span:nth-child(2) { top: 21px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 64px 0 auto; z-index: 49;
  display: grid;
  padding: 8px var(--gutter) 24px;
  background: var(--paper);
  border-bottom: 2px solid var(--ink);
}
.mobile-menu a { padding: 10px 0; font-family: var(--font-title); font-weight: 600; font-size: 28px; border-bottom: 1px dashed var(--grid-bold); }

/* 画面右端の「Follow Me」（参考サイトと同じく縦並び） */
.follow {
  position: fixed; right: 18px; top: 50%; z-index: 40;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  padding: 16px 8px;
  background: #fff;                  /* 純白の帯 */
  border-radius: 999px;
  box-shadow: 0 6px 20px rgba(31, 138, 82, .12);
  transform: translateY(-50%);
}
.follow__label {
  writing-mode: vertical-rl;
  font-family: var(--font-title); font-weight: 600; font-size: 14px; letter-spacing: .12em;
  background: linear-gradient(180deg, #26b863, #2b8fd8);   /* ロゴと同じ 緑→青（縦書きなので上→下） */
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.follow__label::after {
  content: ''; display: block; width: 2px; height: 32px; margin: 10px auto 0;
  border-radius: 2px;
  background: linear-gradient(180deg, #26b863, #2b8fd8);
}
/* アイコンは各サービスの公式ロゴカラー（画像は cdn.simpleicons.org の色そのまま） */
.follow a {
  display: grid; place-items: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  text-decoration: none;
  transition: transform .2s, background .2s;
}
.follow a:hover { transform: scale(1.15) rotate(-8deg); background: var(--mint); }
.follow a span { font-family: var(--font-title); font-weight: 700; font-size: 17px; }
.follow__booth span { color: #fc4d50; }      /* BOOTH はアイコンが無いので文字をロゴカラーに */


/* 5. タイトル（hero）
   ------------------------------------------------------------------------ */
.hero {
  position: relative;
  min-height: clamp(640px, 100svh, 1000px);
  overflow: hidden;
  background-color: var(--paper);
  background-image:
    linear-gradient(var(--grid-bold) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-bold) 1px, transparent 1px),
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 100px 100px, 100px 100px, 20px 20px, 20px 20px;
}
/* 下端の定規の目盛り */
.hero::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 22px;
  background:
    repeating-linear-gradient(90deg, var(--ink) 0 1px, transparent 1px 50px) bottom / 100% 22px no-repeat,
    repeating-linear-gradient(90deg, var(--ink) 0 1px, transparent 1px 10px) bottom / 100% 10px no-repeat;
  opacity: .35;
}

.hero__inner {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  align-items: end;
  min-height: clamp(640px, 100svh, 1000px);
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding: 96px calc(var(--gutter) + 40px) 0 var(--gutter);
}
.hero__title { align-self: center; padding-bottom: 8vh; }

/* ロゴ（画像が無い間の文字ロゴ） */
.hero__logo { font-weight: 400; line-height: 1; }
.logo-text {
  display: inline-block;
  padding: 0 .08em .12em;
  font-family: var(--font-hand);
  font-size: clamp(96px, 14vw, 210px);
  letter-spacing: -.02em;
  white-space: nowrap;
  background: var(--logo-grad);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  transform: rotate(-4deg);
}
.hero__logo-img { width: min(100%, 640px); }

.hero__tagline {
  margin-top: 28px;
  font-family: var(--font-dot);
  font-size: clamp(15px, 1.5vw, 20px);
  letter-spacing: .04em;
  line-height: 1.7;
}
.hero__tagline span { background: #fff; box-decoration-break: clone; -webkit-box-decoration-break: clone; padding: 2px 8px; }

.hero__figure { position: relative; align-self: end; }
.hero__standing { width: 100%; max-height: 88svh; object-fit: contain; object-position: bottom; cursor: pointer; -webkit-user-drag: none; user-select: none; }
.hero__standing.is-poke { animation: poke .35s ease; }   /* クリックで表情が変わるときに、ぴょこっと */
@keyframes poke { 40% { transform: translateY(-10px) scale(1.01); } }
.hero__figure .img-slot { height: min(78svh, 780px); }

/* 手書きPOP */
.pop {
  position: absolute; left: -12%; bottom: 14%;
  padding: 18px 20px 14px;
  white-space: nowrap;
  background: var(--pop);
  font-family: var(--font-hand);
  text-align: center;
  transform: rotate(-7deg);
  transform-origin: 50% 0;
}
.pop::before {                      /* 上に貼ったマスキングテープ */
  content: ''; position: absolute; left: 50%; top: -12px;
  width: 80px; height: 24px;
  background: rgba(240, 230, 200, .85);
  transform: translateX(-50%) rotate(3deg);
}
.pop__big { font-size: 34px; line-height: 1.2; color: var(--pop-red); }
.pop__small { font-size: 15px; }
.pop__no { margin-top: 6px; padding-top: 6px; border-top: 1px dashed var(--ink); font-family: var(--font-dot); font-size: 12px; }

/* 散らばるパーツ */
.hero__parts { position: absolute; inset: 0; pointer-events: none; }
.part { position: absolute; fill: none; stroke: var(--green); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; opacity: .55; }
.part--screw    { width: 34px; left: 6%;  top: 18%; transform: rotate(-25deg); }
.part--nut      { width: 44px; left: 46%; top: 12%; }
.part--resistor { width: 120px; left: 8%; bottom: 12%; transform: rotate(12deg); }
.part--resistor .band { stroke: var(--blue); }
.part--led      { width: 30px; right: 36%; bottom: 30%; transform: rotate(18deg); }

.hero__scroll {
  position: absolute; left: var(--gutter); bottom: 40px; z-index: 2;
  font-family: var(--font-hand); font-size: 18px; text-decoration: none;
}
.hero__scroll::after { content: ' ↓'; display: inline-block; animation: bob 1.6s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(5px); } }

/* ── 読み込み時の演出（JS が .is-ready を付けると動く） ── */
.js .logo-text, .js .hero__logo-img { clip-path: inset(0 100% 0 0); }
.js .hero__tagline, .js .pop, .js .hero__figure > :first-child { opacity: 0; }

.hero.is-ready .logo-text,
.hero.is-ready .hero__logo-img { animation: write 1.3s cubic-bezier(.6, .05, .3, 1) .2s forwards; }
@keyframes write { to { clip-path: inset(0 -5% 0 0); } }   /* 左から右へ“書かれる” */

.hero.is-ready .hero__figure > :first-child { animation: rise .9s cubic-bezier(.2, .8, .2, 1) .5s forwards; }
@keyframes rise { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }

.hero.is-ready .hero__tagline { animation: show 0s 1.3s forwards; }
@keyframes show { to { opacity: 1; } }

.hero.is-ready .pop { animation: drop .9s cubic-bezier(.3, 1.5, .5, 1) 1.6s forwards, swing 4s ease-in-out 2.6s infinite; }
@keyframes drop { from { opacity: 0; transform: translateY(-60px) rotate(-20deg); } to { opacity: 1; transform: rotate(-7deg); } }
@keyframes swing { 0%, 100% { transform: rotate(-7deg); } 50% { transform: rotate(-3deg); } }

/* タイピング中のカーソル */
.typing::after { content: '▌'; animation: blink .8s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }



/* 6. Info — 画像つきカード（リンクの埋め込み風）
   ------------------------------------------------------------------------ */
.info { padding: 130px 0 150px; background: #fff; }

.info__cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 32px 28px;
}
.info-card {
  display: flex; flex-direction: column;
  height: 100%;
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  transition: transform .35s cubic-bezier(.3, 1.6, .5, 1), box-shadow .35s, border-color .2s;
}
.info-card:hover { transform: translateY(-6px); border-color: var(--green); box-shadow: 0 14px 30px rgba(31, 138, 82, .14); }

.info-card__image { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--mint); }
.info-card__blur {
  position: absolute; inset: -20%;
  background: center / cover no-repeat;
  filter: blur(24px) saturate(1.2);
  opacity: .6;
}
.info-card__image img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: contain;
  transition: transform .5s ease;
}
.info-card:hover .info-card__image img { transform: scale(1.04); }
.info-card__noimage {             /* 画像の無い記事 */
  position: absolute; inset: 0;
  display: grid; place-items: center;
  background-image: radial-gradient(rgba(31, 138, 82, .18) 1.4px, transparent 1.6px);
  background-size: 18px 18px;
  font-family: var(--font-hand); font-size: 44px;
  color: var(--green);
  opacity: .7;
}

.info-card__body { display: flex; flex-direction: column; gap: 8px; flex: 1; padding: 18px 20px 18px; }
.info-card__meta { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--ink-3); }
.info-card__tag {
  padding: 1px 10px;
  border-radius: 999px;
  background: var(--mint);
  color: var(--green);
  font-weight: 700; font-size: 12px;
}
.info-card__title { font-weight: 700; font-size: 17px; line-height: 1.6; }
.info-card__more { margin-top: auto; padding-top: 4px; color: var(--green); font-weight: 700; font-size: 14px; text-align: right; }
.info-card__more i { display: inline-block; font-style: normal; transition: transform .25s; }
.info-card:hover .info-card__more i { transform: translateX(5px); }

.more-button {
  display: block; margin: 56px auto 0;
  padding: 10px 28px;
  border: 2px solid var(--green); border-radius: 999px;
  color: var(--green); font-weight: 700;
}
.more-button:hover { background: var(--green); color: #fff; }


/* 6.5 Schedule — 配信カレンダー（方眼の上に、値札っぽいカード）
   ------------------------------------------------------------------------ */
.schedule {
  padding: 130px 0 140px;
  background-color: var(--paper);
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 20px 20px;
}
.schedule__grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 32px; align-items: start; }
.schedule__side { display: grid; gap: 32px; }

/* つぎの配信 / いま配信中 */
.next-card {
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 10px 26px rgba(31, 138, 82, .10);
}
.next-card__head {                        /* 値札と同じ、緑の帯に白抜き文字 */
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 6px 12px 4px;
  background: var(--tag-green);
  border-bottom: 3px solid var(--tag-green-dark);
  color: #fff;
  font-weight: 900; font-size: 22px; letter-spacing: .06em;
  -webkit-text-stroke: 4px var(--tag-green-dark);
  paint-order: stroke fill;
}
.next-card.is-live .next-card__head { background: var(--red); border-bottom-color: #a92a1c; -webkit-text-stroke-color: #a92a1c; }
.next-card__dot { width: 12px; height: 12px; border-radius: 50%; background: #fff; animation: blink-dot 1.2s ease-in-out infinite; }
@keyframes blink-dot { 50% { opacity: .3; } }

.next-card__body { display: grid; gap: 6px; padding: 20px 24px 24px; }
.next-card__when { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; }
.next-card__date {
  font-family: var(--font-title); font-weight: 700; font-size: 60px; line-height: 1;
  background: var(--logo-grad);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.next-card__dow { font-weight: 700; color: var(--ink-2); }
.next-card__time { margin-left: auto; font-family: var(--font-title); font-weight: 600; font-size: 22px; }
.next-card__title { font-weight: 900; font-size: 20px; line-height: 1.5; overflow-wrap: anywhere; }
.next-card.is-live .next-card__title { font-size: 26px; }
.next-card__meta { display: flex; align-items: baseline; gap: 12px; color: var(--ink-2); font-size: 14px; }
.next-card__until { margin-left: auto; color: var(--red); font-style: italic; font-weight: 900; font-size: 22px; }
.next-card__desc { font-size: 13px; color: var(--ink-3); }
.next-card__button { justify-self: start; margin-top: 10px; }
.next-card.is-live .next-card__button { background: var(--red); box-shadow: 0 4px 0 #a92a1c; }

/* このあとの予定 */
.upcoming__title { margin-bottom: 12px; font-weight: 900; font-size: 17px; }
.upcoming__empty { font-size: 14px; color: var(--ink-3); }
.upcoming__list { display: grid; gap: 10px; }
.upcoming-row {
  display: flex; align-items: center; gap: 14px;
  padding: 8px 18px 8px 8px;
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  text-decoration: none;
  transition: transform .25s cubic-bezier(.3, 1.6, .5, 1), border-color .2s;
}
a.upcoming-row:hover { transform: translateY(-3px); border-color: var(--green); }
.upcoming-row__date {
  display: flex; align-items: baseline; justify-content: center; gap: 3px; flex-shrink: 0;
  min-width: 76px; padding: 8px 10px;
  border-radius: 999px;
  background: var(--green); color: #fff;
  font-family: var(--font-title); font-weight: 700; font-size: 19px; line-height: 1;
}
.upcoming-row__date small { font-family: var(--font); font-size: 11px; }
.upcoming-row--blue .upcoming-row__date { background: var(--blue); }
.upcoming-row__info { min-width: 0; }
.upcoming-row__name { display: block; font-weight: 700; line-height: 1.4; overflow-wrap: anywhere; }
.upcoming-row__meta { display: block; font-size: 12px; color: var(--ink-3); }

/* カレンダー */
.calendar {
  padding: 22px 22px 18px;
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 26px rgba(31, 138, 82, .10);
}
.calendar__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.calendar__month {
  font-family: var(--font-title); font-weight: 700; font-size: 30px; line-height: 1;
  background: var(--logo-grad);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.calendar__nav {
  display: grid; place-items: center;
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--mint); color: var(--green);
  font-size: 26px; line-height: 1; font-weight: 700;
  transition: background .2s, color .2s;
}
.calendar__nav:hover { background: var(--green); color: #fff; }
.calendar__weekdays, .calendar__grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px; }
.calendar__weekdays span { padding: 6px 0; text-align: center; font-size: 12px; font-weight: 700; color: var(--ink-3); }
.calendar__weekdays span:first-child { color: var(--red); }
.calendar__weekdays span:last-child  { color: var(--blue); }

.cal-day {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  height: 56px;
  font-family: var(--font-title); font-weight: 600; font-size: 17px;
}
.cal-day.is-blank { visibility: hidden; }
.cal-day.is-sun { color: var(--red); }
.cal-day.is-sat { color: var(--blue); }
.cal-day.is-past { opacity: .4; }
.cal-day:disabled { cursor: default; }
.cal-day__num { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; transition: background .2s, color .2s, transform .25s cubic-bezier(.3, 1.6, .5, 1); }
.cal-day.is-today .cal-day__num { box-shadow: inset 0 0 0 2px var(--green); }
.cal-day.has-event .cal-day__num { background: var(--mint); color: var(--green); }
.cal-day.has-event.is-blue .cal-day__num { background: #e6f1fb; color: var(--blue); }
.cal-day.has-event:hover .cal-day__num { transform: scale(1.12); }
.cal-day.is-selected .cal-day__num { background: var(--logo-grad) !important; color: #fff !important; }
.cal-day__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.cal-day.is-blue .cal-day__dot { background: var(--blue); }

.calendar__detail { display: grid; gap: 8px; margin-top: 12px; padding-top: 14px; border-top: 1.5px dashed var(--line); }
.calendar__hint { font-size: 13px; color: var(--ink-3); text-align: center; }
.cal-event {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 16px;
  border-radius: 12px;
  background: var(--mint);
  text-decoration: none;
}
.cal-event.is-blue { background: #e6f1fb; }
.cal-event__time { font-family: var(--font-title); font-weight: 700; font-size: 18px; color: var(--green); }
.cal-event.is-blue .cal-event__time { color: var(--blue); }
.cal-event__title { flex: 1; min-width: 0; font-weight: 700; overflow-wrap: anywhere; }
.cal-event__platform { font-size: 12px; color: var(--ink-3); }
a.cal-event:hover .cal-event__title { color: var(--green); }


/* 7. About — ミントの水玉 + 大きな値札
   ------------------------------------------------------------------------ */
.about {
  padding: 110px 0 120px;
  background-color: var(--mint);
  background-image: radial-gradient(rgba(31, 138, 82, .16) 1.4px, transparent 1.6px);
  background-size: 22px 22px;
}
.about__inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: start; }

/* Vroid は上に。腰で切れている絵なので、白い角丸の枠に入れて下端をそろえる */
.about__visual {
  position: sticky; top: 90px;          /* 値札を読んでいる間もついてくる */
  display: flex; align-items: flex-end; justify-content: center;
  padding-top: 24px;
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
}
.about__vroid { width: 100%; max-height: 560px; object-fit: contain; object-position: bottom; }
.about__visual .img-slot { width: 100%; height: 480px; border: 0; }

.junk-card {
  position: relative;
  max-width: 520px;
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 14px 34px rgba(31, 138, 82, .12);
  transform: rotate(1deg);
}
.junk-card::before {                      /* テープ */
  content: ''; position: absolute; left: 50%; top: -14px; z-index: 1;
  width: 110px; height: 26px;
  background: rgba(158, 216, 184, .7);
  border-radius: 3px;
  transform: translateX(-50%) rotate(3deg);
}
.junk-card__head {
  padding: 10px 16px 6px;
  background: var(--tag-green);
  border-bottom: 4px solid var(--tag-green-dark);
  border-radius: calc(var(--radius) - 2px) calc(var(--radius) - 2px) 0 0;
  color: #fff;
  font-weight: 900;
  font-size: clamp(44px, 6vw, 64px);
  line-height: 1.1;
  letter-spacing: .04em;
  text-align: center;
  -webkit-text-stroke: 6px var(--tag-green-dark);
  paint-order: stroke fill;
}
.junk-card__body { display: grid; gap: 16px; padding: 22px 26px 20px; }
.junk-card__field p { font-family: var(--font-hand); font-size: 24px; line-height: 1.4; padding-bottom: 4px; border-bottom: 1px solid var(--line); }
.junk-card__field--name p { font-size: 40px; }
.junk-card__top { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 12px; }
.junk-card__sd { width: 120px; margin: -10px -6px -6px 0; }   /* 品名の横の「商品写真」 */
.junk-card__top .img-slot { width: 120px; min-height: 120px; padding: 6px; }
.junk-card__pair { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.junk-card__blank { color: var(--ink-3); }
.junk-card__field small { font-size: 11px; color: var(--ink-3); line-height: 1.4; }

/* □チェック欄（.is-checked で赤ペンのチェック） */
.junk-card__checks { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 14px; color: var(--ink-2); }
.junk-card__checks li { position: relative; padding-left: 19px; }
.junk-card__checks li::before {
  content: ''; position: absolute; left: 0; top: 50%;
  width: 14px; height: 14px;
  border: 1.5px solid var(--ink-2);
  border-radius: 2px;
  transform: translateY(-50%);
}
.junk-card__checks .is-checked::after {
  content: '✓'; position: absolute; left: 1px; top: 50%;
  font-family: var(--font-hand); font-size: 22px; line-height: 1; color: var(--red);
  transform: translateY(-62%) rotate(-8deg);
}
.junk-card__memo {               /* 罫線ノートみたいな手書きメモ */
  font-family: var(--font-hand); font-size: 17px; line-height: 2;
  background: repeating-linear-gradient(transparent 0 calc(2em - 1px), var(--line) calc(2em - 1px) 2em);
}
.junk-card__price {
  display: flex; align-items: baseline; gap: 10px;
  padding-top: 6px;
  border-top: 1px dashed var(--line);
  color: var(--red);
  font-weight: 900; font-style: italic; font-size: 52px; line-height: 1.1;
}
.junk-card__price span { color: var(--tag-green); font-style: normal; font-size: 46px; }
.junk-card__price small { margin-left: auto; font-size: 12px; font-style: normal; font-weight: 500; color: var(--ink-2); }
.junk-card__foot {
  padding: 8px 16px;
  background: var(--tag-green);
  border-radius: 0 0 calc(var(--radius) - 2px) calc(var(--radius) - 2px);
  color: #fff; font-size: 12px; font-weight: 700;
}


/* 8. Movie
   ------------------------------------------------------------------------ */
.movie { padding: 140px 0 120px; background: #fff; }

.tabs { display: flex; gap: 10px; margin-bottom: 36px; }
.tabs__tab {
  padding: 6px 22px;
  border: 2px solid var(--green); border-radius: 999px;
  color: var(--green); font-weight: 700; letter-spacing: .1em;
  transition: background .2s, color .2s;
}
.tabs__tab[aria-selected="true"] { background: var(--green); color: #fff; }

.videos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; gap: 40px 28px; }
.video:first-child { grid-column: span 2; grid-row: span 2; }   /* 1本目だけ大きく */
.video { display: flex; flex-direction: column; gap: 8px; text-decoration: none; }
.video__thumb { position: relative; display: block; aspect-ratio: 16 / 9; }
.video__thumb img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  border-radius: var(--radius); background: var(--mint);
  transition: transform .35s cubic-bezier(.3, 1.6, .5, 1);
}
.video:hover .video__thumb img { transform: scale(1.03) rotate(-.6deg); }
.video__thumb::before {                   /* 角のテープ */
  content: ''; position: absolute; left: -8px; top: 10px; z-index: 1;
  width: 64px; height: 20px;
  background: rgba(158, 216, 184, .75);
  border-radius: 3px;
  transform: rotate(-35deg);
}
.video__rank {
  position: absolute; right: -10px; top: -14px; z-index: 1;
  display: grid; place-items: center;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--red); color: #fff;
  font-weight: 900; font-style: italic; font-size: 22px;
  border: 3px solid #fff;
  transform: rotate(10deg);
}
.video__title { font-weight: 700; line-height: 1.6; }
.video:first-child .video__title { font-size: 20px; }
.video:hover .video__title { color: var(--green); }
.video__meta { font-size: 12px; color: var(--ink-3); }

.button {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 999px;
  background: var(--green); color: #fff;
  font-weight: 700; text-decoration: none;
  box-shadow: 0 4px 0 var(--tag-green-dark);
  transition: transform .15s, box-shadow .15s;
}
.button:hover { transform: translateY(2px); box-shadow: 0 2px 0 var(--tag-green-dark); }
.movie__channel { margin-top: 48px; }
.movie__empty-sd { width: 150px; margin-bottom: -8px; }
.movie__empty {
  display: grid; justify-items: center; gap: 20px;
  padding: 64px 24px;
  border: 2px dashed var(--line); border-radius: var(--radius);
  background: var(--mint);
  font-family: var(--font-hand); font-size: 22px;
}


/* 9. フッター（リンク集）
   ------------------------------------------------------------------------ */
.site-footer {
  padding-top: 120px;
  background-color: var(--mint);
  background-image: radial-gradient(rgba(31, 138, 82, .16) 1.4px, transparent 1.6px);
  background-size: 22px 22px;
}
.site-footer__inner { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 40px; align-items: end; padding-bottom: 72px; }

.links { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.link-chip {
  display: flex; align-items: center; gap: 14px;
  padding: 10px 20px 10px 10px;
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  text-decoration: none;
  transition: transform .3s cubic-bezier(.3, 1.6, .5, 1), border-color .2s;
}
.link-chip:hover { transform: translateY(-4px) rotate(-1deg); border-color: var(--green); }
.link-chip__icon {
  display: grid; place-items: center; flex-shrink: 0;
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--green); color: #fff; font-weight: 900;
}
.link-chip--x         .link-chip__icon { background: #111; }
.link-chip--youtube   .link-chip__icon { background: #ff2a3a; }
.link-chip--twitch    .link-chip__icon { background: #9146ff; }
.link-chip--instagram .link-chip__icon { background: linear-gradient(135deg, #feda75, #d62976 55%, #4f5bd5); }
.link-chip--booth     .link-chip__icon { background: #fc4d50; }
.link-chip__text { display: grid; min-width: 0; line-height: 1.4; }
.link-chip__name { font-weight: 700; }
.link-chip__url { font-size: 12px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.site-footer__sd .img-slot { min-height: 240px; border-radius: var(--radius); }
.site-footer__sd-img { width: 100%; }

/* 緑の帯の上に寝転がってる */
.site-footer__lying { max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding-inline: var(--gutter); }
.site-footer__lying-img { width: clamp(180px, 22vw, 280px); margin-bottom: -6px; }
.site-footer__lying .img-slot { width: 260px; min-height: 90px; }

.site-footer__bottom {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px var(--gutter);
  background: var(--green);
  color: #fff; font-size: 13px;
}
.site-footer__logo { font-family: var(--font-hand); font-size: 26px; line-height: 1; }
.site-footer__bottom a { text-decoration: none; }
.site-footer__bottom a:hover { text-decoration: underline; }


/* 10. お知らせのポップアップ
   ------------------------------------------------------------------------ */
.info-dialog {
  width: min(680px, calc(100% - 24px));
  max-height: calc(100dvh - 48px);
  margin: auto; padding: 0;
  border: 0; border-radius: 20px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 24px 60px rgba(23, 67, 47, .25);
}
.info-dialog::backdrop { background: rgba(23, 67, 47, .45); }
.info-dialog[open] { animation: pop-in .35s cubic-bezier(.3, 1.5, .5, 1); }
@keyframes pop-in { from { opacity: 0; transform: scale(.94) translateY(12px); } }
.info-dialog__panel { max-height: calc(100dvh - 48px); overflow-y: auto; padding: 28px clamp(20px, 5vw, 44px) 44px; }
.info-dialog__close {
  float: right; margin-left: 16px;
  padding: 4px 14px; border-radius: 999px;
  background: var(--mint); color: var(--green); font-weight: 700; font-size: 14px;
}
.info-dialog__meta { font-size: 14px; color: var(--ink-3); }
.info-dialog__meta span { color: var(--green); font-weight: 700; }
.info-dialog__title { margin-top: 6px; font-size: clamp(22px, 3.4vw, 28px); font-weight: 900; line-height: 1.5; }
.info-dialog__image { margin-top: 20px; width: 100%; max-height: 360px; object-fit: contain; background: var(--mint); border-radius: 12px; }
.info-dialog__text { margin-top: 20px; line-height: 2; white-space: pre-line; overflow-wrap: anywhere; }


/* 11. ローディング（「ねはる」を手書き）
   ------------------------------------------------------------------------ */
.loader {
  position: fixed; inset: 0; z-index: 100;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  background: var(--paper);
  cursor: pointer;
  animation: loader-out .5s ease 3s forwards;   /* JS が無くても自動で消える */
}
.loader.is-done { display: none; }
@keyframes loader-out { to { opacity: 0; visibility: hidden; } }
.loader__word { width: min(72vw, 440px); fill: none; stroke-width: 9; stroke-linecap: round; stroke-linejoin: round; }
.loader__word path {
  opacity: 0;                       /* 書き始めるまでは見せない（丸い線端の点が出ないように） */
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: draw var(--t) ease-in-out var(--d) forwards;
}
@keyframes draw { from { opacity: 1; stroke-dashoffset: 1; } to { opacity: 1; stroke-dashoffset: 0; } }
.loader__text { font-family: var(--font-hand); color: var(--ink-3); }


/* 12. スマホ / 動きを減らす設定
   ------------------------------------------------------------------------ */
@media (max-width: 1000px) {
  .follow { display: none; }
  .hero__inner { padding-right: var(--gutter); }
}

@media (max-width: 760px) {
  .site-nav { display: none; }
  .menu-button { display: block; }
  .site-header { background: rgba(245, 244, 238, .94); }
  .site-header__home { opacity: 1; }

  .hero__inner { grid-template-columns: 1fr; padding-top: 104px; gap: 24px; }
  .hero__title { padding-bottom: 0; }
  .hero__figure { margin-inline: auto; width: min(100%, 420px); }
  .hero__figure .img-slot { height: min(60svh, 560px); }
  .pop { left: -4px; bottom: 10%; }
  .pop__big { font-size: 26px; }
  .part--nut { left: 78%; top: 10%; }
  .part--led { display: none; }
  .hero__scroll { display: none; }

  .section-title { margin-bottom: 40px; }
  .info { padding: 88px 0 100px; }

  .schedule { padding: 88px 0 96px; }
  .schedule__grid { grid-template-columns: 1fr; }
  .next-card__date { font-size: 48px; }
  .calendar { padding: 16px 12px 14px; }
  .cal-day { height: 48px; font-size: 15px; }
  .cal-day__num { width: 32px; height: 32px; }

  .about { padding: 88px 0 96px; }
  .about__inner { grid-template-columns: 1fr; gap: 32px; }
  .about__visual { position: static; order: -1; }   /* スマホでは Vroid がいちばん上 */
  .about__vroid { max-height: 380px; }
  .about__visual .img-slot { height: 320px; }
  .junk-card__sd { width: 96px; }
  .junk-card__body { padding: 18px 18px 16px; }
  .junk-card__field--name p { font-size: 32px; }
  .junk-card__price { font-size: 40px; }

  .movie { padding: 96px 0 88px; }
  .videos { grid-template-columns: 1fr; }
  .video:first-child { grid-column: auto; grid-row: auto; }

  .site-footer { padding-top: 88px; }
  .site-footer__inner { grid-template-columns: 1fr; padding-bottom: 48px; }
  .site-footer__sd { width: 200px; justify-self: end; }
  .site-footer__bottom { flex-wrap: wrap; justify-content: center; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition: none !important; }
  .loader { display: none; }
}
