/* 構成の考え方：地上（青空のゲーム画面）から、地中（暗い管理画面）へ降りていく。
   昔らしさはドットで、最先端感は暗い背景・ネオン・端末風の表示で出す。
   DotGothic16は16pxの倍数で最もくっきりするので、文字サイズは16/32/48を基準にする。 */
:root {
  --bg: #12141a;
  --bg-2: #1a1a2e;
  --panel: #1d2036;
  --line: #2b2a44;
  --text: #f4f2ea;
  --sub: #b4b8c6;
  --orange: #ff9a1f;
  --red: #ff5228;
  --lime: #b9f23c;
  --teal: #19e3c8;

  --dot: "DotGothic16", "MS Gothic", monospace;
  --en: "Silkscreen", "DotGothic16", monospace;
  --wide: 1120px;
  --fire: linear-gradient(90deg, var(--orange), var(--red));
  /* 角を階段状に欠く、ドットの角丸 */
  --pix: polygon(0 8px, 4px 8px, 4px 4px, 8px 4px, 8px 0, calc(100% - 8px) 0, calc(100% - 8px) 4px, calc(100% - 4px) 4px, calc(100% - 4px) 8px, 100% 8px, 100% calc(100% - 8px), calc(100% - 4px) calc(100% - 8px), calc(100% - 4px) calc(100% - 4px), calc(100% - 8px) calc(100% - 4px), calc(100% - 8px) 100%, 8px 100%, 8px calc(100% - 4px), 4px calc(100% - 4px), 4px calc(100% - 8px), 0 calc(100% - 8px));
}

*, *::before, *::after { box-sizing: border-box; }
/* hidden を付けたものは、display の指定があっても必ず隠す（送信後のフォームなど） */
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--dot);
  font-size: 16px;
  line-height: 2;
  letter-spacing: .04em;
  /* 1px太らせて、ドットのまま読みやすくする */
  text-shadow: .3px 0 0 currentColor;
}
img { display: block; max-width: 100%; height: auto; image-rendering: pixelated; }
a { color: inherit; }
a:focus-visible { outline: 3px solid var(--lime); outline-offset: 2px; }
h1, h2, h3, p, dl, dd, ol, ul { margin: 0; padding: 0; }
h1, h2, h3 { font-weight: 400; }
ol, ul { list-style: none; }

.wrap { max-width: calc(var(--wide) + 40px); margin-inline: auto; padding-inline: 20px; }

/* 暗い面の方眼 */
.grid-bg {
  background-color: var(--bg);
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 32px 32px;
}

/* パネル：外側がネオンの枠、::before が中の面 */
.win {
  position: relative;
  clip-path: var(--pix);
  background: linear-gradient(135deg, var(--teal), #5a3475 55%, var(--orange));
  padding: clamp(20px, 2.6vw, 30px);
}
.win::before {
  content: "";
  position: absolute;
  inset: 3px;
  background: var(--panel);
  clip-path: var(--pix);
}
.win > * { position: relative; z-index: 1; }

.label {
  display: inline-block;
  font-family: var(--en);
  font-size: 16px;
  line-height: 1;
  letter-spacing: .1em;
  text-shadow: none;
  color: var(--teal);
}
.label::before { content: "> "; color: var(--lime); }
.heading {
  font-size: clamp(32px, 4.4vw, 48px);
  line-height: 1.35;
  letter-spacing: .04em;
  text-wrap: balance;
  margin-top: 12px;
  text-shadow: 1.5px 0 0 currentColor, -.5px 0 0 currentColor, 0 1px 0 currentColor;
}
.heading em { font-style: normal; color: var(--orange); }

/* ヘッダー */
.site-head { position: fixed; inset: 12px 0 auto; z-index: 20; pointer-events: none; }
.site-head .wrap { max-width: 1320px; }
.head-bar {
  pointer-events: auto;
  position: relative;
  clip-path: var(--pix);
  background: var(--fire);
}
.head-bar::before {
  content: "";
  position: absolute;
  inset: 3px;
  clip-path: var(--pix);
  background: rgb(18 20 26 / .94);
}
.head-in {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 8px 12px 8px 20px;
}
.brand img { height: 50px; width: auto; }
.site-nav { display: flex; align-items: center; gap: clamp(16px, 2.2vw, 30px); }
.site-nav ul { display: flex; gap: clamp(16px, 2.2vw, 30px); }
.site-nav li a { display: grid; justify-items: center; text-decoration: none; }
.site-nav .en {
  font-family: var(--en);
  font-size: 16px;
  line-height: 1.2;
  letter-spacing: .05em;
  text-shadow: none;
  transform: skewX(-8deg);
}
.site-nav .ja { font-size: 12px; line-height: 1.5; color: var(--sub); text-shadow: none; }
.site-nav li a:hover .en { color: var(--lime); }
.site-nav li.is-hot .en { color: var(--lime); }
.cta {
  display: inline-block;
  font-size: 16px;
  line-height: 1;
  padding: 15px 22px;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
  background: var(--fire);
  clip-path: var(--pix);
  text-shadow: 1px 0 0 currentColor;
}
.cta:hover { filter: brightness(1.12); }

/* ヒーロー */
.hero {
  position: relative;
  overflow: hidden;
  --hero-h: max(min(56.2vw, 100svh), 680px);
  --focus: 50%;
  background: var(--bg);
  height: var(--hero-h);
}
/* 絵と人物を同じ箱に入れ、画面幅が変わっても人物が畑からずれないようにする */
.stage {
  position: absolute;
  bottom: 0;
  left: var(--focus);
  width: max(100%, calc(var(--hero-h) * 1.7796));
  aspect-ratio: 557 / 313;
  transform: translateX(calc(var(--focus) * -1));
}
.hero-art { width: 100%; height: 100%; }
.digger {
  position: absolute;
  bottom: 12%;
  background-repeat: no-repeat;
  background-size: 400% 100%;
  image-rendering: pixelated;
}
.digger--boy { left: 34.2%; width: 9.34%; aspect-ratio: 52 / 61; background-image: url("dig_boy.png"); }
.digger--girl { left: 78.1%; width: 8.44%; aspect-ratio: 47 / 61; background-image: url("dig_girl.png"); }
/* 畑で働くメンバー。コマは横に並んだ画像で、背景の位置をずらして動かす */
.actor { position: absolute; left: var(--x); bottom: var(--y); height: var(--h); aspect-ratio: var(--ar); }
.actor i { display: block; width: 100%; height: 100%; background-repeat: no-repeat; background-size: 100% 100%; image-rendering: pixelated; }
.actor i.is-anim { background-size: 200% 100%; }
.cloud { position: absolute; width: 180px; left: 0; pointer-events: none; }
.cloud--a { top: 13%; }
.cloud--b { top: 8%; width: 120px; }
.hero-copy { position: absolute; inset: 0; padding-top: clamp(92px, 7.2vw, 108px); }
.hero-copy .wrap { position: relative; display: grid; gap: 16px; justify-items: start; }
.hero h1 { display: grid; gap: clamp(10px, 1vw, 14px); }
.hero-logo { width: clamp(220px, 21vw, 341px); }
.hero-catch { width: clamp(330px, 62vw, 960px); }
.bands { display: grid; gap: 6px; justify-items: start; }
.bands p {
  color: #17181d;
  background: #fff;
  font-size: clamp(16px, 1.3vw, 18px);
  line-height: 1.5;
  padding: 3px 12px;
  text-shadow: .8px 0 0 currentColor;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.bands .key { color: #fff; background: var(--fire); font-size: clamp(18px, 1.6vw, 22px); }

/* 手前の道を走るブルドーザー */
.dozer {
  position: absolute;
  left: 6%;
  bottom: 1%;
  width: 11.2%;
  aspect-ratio: 80 / 78;
  background: url("dozer.png") no-repeat 0 0 / 200% 100%;
  image-rendering: pixelated;
}

/* 端末風の表示：畑を見守るコマンド画面 */
.term {
  position: absolute;
  /* 広い画面では、真ん中の家に重ならないよう画面の右端に寄せる */
  right: min(20px, calc(604px - 50vw));
  top: 230px;
  width: 320px;
  clip-path: var(--pix);
  background: rgb(10 14 22 / .88);
  box-shadow: inset 0 0 0 2px rgb(25 227 200 / .35);
  padding: 10px 16px 14px;
  font-size: 14px;
  line-height: 1.75;
  letter-spacing: .02em;
  text-shadow: none;
  white-space: nowrap;
  /* 走査線 */
  background-image: repeating-linear-gradient(to bottom, rgb(255 255 255 / .04) 0 1px, transparent 1px 3px);
}
.term-bar { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; padding-bottom: 6px; border-bottom: 1px dashed rgb(25 227 200 / .3); }
.term-bar .term-dots { margin: 0; }
.term-title { color: var(--sub); font-family: var(--en); font-size: 11px; letter-spacing: .08em; }
.term-live { margin-left: auto; color: var(--red); font-family: var(--en); font-size: 11px; }
.term-live::before { content: "■ "; }
.term .k { color: var(--teal); }
.term .v { color: var(--text); }
.term .bar { color: var(--lime); letter-spacing: -.06em; }
.term .up { color: var(--lime); }
.term .down { color: var(--orange); }
.term-line.is-wait { visibility: hidden; }
.term-dots { display: flex; gap: 6px; margin-bottom: 6px; }
.term-dots i { width: 8px; height: 8px; background: var(--red); }
.term-dots i:nth-child(2) { background: var(--orange); }
.term-dots i:nth-child(3) { background: var(--lime); }
.term .prompt { color: var(--orange); }
.term .val { color: var(--lime); }
.term .cmt { color: var(--sub); }
.term-type::after { content: "█"; color: var(--teal); margin-left: 2px; }

/* 空のテクノロジー：横切る人工衛星と、夜だけ出る光の星座 */
.sat {
  position: absolute;
  top: 17%;
  left: 0;
  width: 32px;
  height: 16px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 8' shape-rendering='crispEdges'%3E%3Crect x='0' y='2' width='5' height='4' fill='%2319e3c8'/%3E%3Crect x='11' y='2' width='5' height='4' fill='%2319e3c8'/%3E%3Crect x='2' y='2' width='1' height='4' fill='%230e8f80'/%3E%3Crect x='13' y='2' width='1' height='4' fill='%230e8f80'/%3E%3Crect x='5' y='3' width='6' height='2' fill='%23b4b8c6'/%3E%3Crect x='6' y='1' width='4' height='6' fill='%23f4f2ea'/%3E%3Crect x='7' y='0' width='1' height='1' fill='%23ff5228'/%3E%3C/svg%3E") no-repeat center / contain;
  transform: translateX(-60px);
  pointer-events: none;
}
/* 衛星のうしろに残る光のすじ */
.sat::after {
  content: "";
  position: absolute;
  right: 100%;
  top: 50%;
  width: 140px;
  height: 2px;
  background: repeating-linear-gradient(to right, transparent 0 4px, rgb(25 227 200 / .7) 4px 8px);
  -webkit-mask-image: linear-gradient(to right, transparent, #000);
  mask-image: linear-gradient(to right, transparent, #000);
}
.constel { position: absolute; top: 96px; right: 30%; width: 220px; display: none; pointer-events: none; }
.constel polyline { fill: none; stroke: rgb(25 227 200 / .45); stroke-width: 1; stroke-dasharray: 3 3; }
.constel rect { fill: var(--teal); }
[data-time="night"] .constel { display: block; }

/* 時間帯ごとの色合わせ。人物と雲は夕方の光で描いてあるので、明るさを合わせる */
[data-time="night"] .digger, [data-time="night"] .actor i, [data-time="night"] .dozer { filter: brightness(.72) saturate(.85) hue-rotate(-12deg); }
[data-time="night"] .cloud { filter: brightness(.55) saturate(.7); }
[data-time="day"] .cloud { filter: grayscale(1) brightness(3.4); }
[data-time="morning"] .cloud { filter: hue-rotate(-30deg) brightness(1.6) saturate(.8); }
[data-time="day"] .sat::after, [data-time="morning"] .sat::after { background: repeating-linear-gradient(to right, transparent 0 4px, rgb(255 255 255 / .85) 4px 8px); }

/* MV直下：提供サービスの流れる帯 */
.ticker { overflow: hidden; background: var(--fire); border-block: 4px solid #17181d; color: #17181d; }
.ticker-track { display: flex; width: max-content; }
.ticker ul { display: flex; flex: none; }
.ticker li {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 12px 0 12px 28px;
  font-size: clamp(18px, 1.7vw, 24px);
  line-height: 1.4;
  white-space: nowrap;
  text-shadow: .8px 0 0 currentColor;
}
.ticker li::after { content: ""; width: 12px; height: 12px; background: #fff; box-shadow: 4px 4px 0 #17181d; }
.ticker:hover .ticker-track { animation-play-state: paused; }

/* About */
.about { padding-block: clamp(48px, 7vw, 88px) clamp(32px, 4vw, 48px); }
.about-box { display: grid; grid-template-columns: minmax(0, 1fr) 200px; gap: 32px; align-items: end; padding: clamp(24px, 4vw, 44px); }
.about-text p:not(.label) { margin-top: 16px; max-width: 38em; }
.about-text .like { color: var(--lime); }
.about-art img { width: 196px; margin-inline: auto; }

/* メンバー */
.members { padding-block: clamp(32px, 4vw, 48px) clamp(56px, 8vw, 96px); }
.members-head { text-align: center; }
.members-lead { margin-top: 10px; color: var(--sub); }
/* PC は 3枚＋3枚 */
.member-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 32px; max-width: 960px; margin-inline: auto; }
.member { position: relative; display: flex; flex-direction: column; clip-path: var(--pix); background: var(--c); padding: 12px; color: #1b1a22; text-shadow: none; }
.member::before { content: ""; position: absolute; inset: 4px; background: #fffaf0; clip-path: var(--pix); }
.member > * { position: relative; }
.m-art { display: flex; align-items: flex-end; justify-content: center; aspect-ratio: 120 / 104; padding-top: 8px; background-size: 100% 100%; image-rendering: pixelated; clip-path: var(--pix); }
.m-art img { height: 88%; width: auto; min-width: 0; }
.m-art { position: relative; }
.m-art.is-temp img { animation: none !important; }
.m-art--pair { gap: 4%; }
.m-art--pair img { height: 82%; max-width: 44%; object-fit: contain; object-position: bottom; }
.m-badge { position: absolute; top: 8px; left: 8px; padding: 2px 8px 2px 6px; color: #1b1a22; background: var(--lime); font-size: 12px; line-height: 1.6; letter-spacing: .04em; clip-path: var(--pix); }
.m-badge::before { content: "★ "; color: #1b1a22; }
.m-job { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 14px; line-height: 1.6; text-shadow: .3px 0 0 currentColor; }
.m-job span { padding: 0 7px; color: #fff; background: #1b1a22; font-family: var(--en); font-size: 11px; line-height: 1.8; letter-spacing: .06em; }
.m-name { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 21px; line-height: 1.4; letter-spacing: .04em; text-shadow: .5px 0 0 currentColor; }
.m-name::before { content: ""; flex: none; width: 10px; height: 10px; background: var(--c); }
.member .m-info { margin-top: auto; padding-top: 12px; }
.m-word { margin-top: 4px; font-size: 14.5px; line-height: 1.7; text-shadow: .3px 0 0 currentColor; }
.m-role { align-self: flex-start; margin-top: 12px; padding: 3px 10px; color: #fff; background: var(--c); font-size: 16px; line-height: 1.5; text-shadow: .5px 0 0 currentColor; clip-path: var(--pix); }
.m-role small { font-size: 12px; margin-left: 2px; }
.m-info { display: grid; gap: 10px; margin-top: 10px; }
.m-info dt { display: inline-block; padding: 0 7px; color: #fff; background: #1b1a22; font-family: var(--en); font-size: 11px; line-height: 1.8; letter-spacing: .06em; }
.m-info dd { margin-top: 3px; font-size: 14.5px; line-height: 1.7; letter-spacing: .01em; text-shadow: .3px 0 0 currentColor; }
.m-dots { display: none; justify-content: center; gap: 10px; margin-top: 16px; }
.m-dots button { width: 14px; height: 14px; padding: 0; border: 0; background: #4b4a63; cursor: pointer; }
.m-dots button[aria-current="true"] { background: var(--orange); }
.m-dots button:focus-visible { outline: 3px solid var(--lime); outline-offset: 2px; }
.m-hint { display: none; margin-top: 8px; text-align: center; font-size: 14px; color: var(--sub); }
/* できること */
.services { background: var(--bg-2); padding-block: clamp(56px, 8vw, 96px); }
.item-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 30px; }
.item-list > li { display: flex; }
.item { flex: 1; display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 18px; align-items: start; text-decoration: none; }
.item img { width: 84px; height: 84px; clip-path: var(--pix); }
.item h3 { font-size: clamp(20px, 2vw, 24px); line-height: 1.4; text-shadow: 1px 0 0 currentColor; }
.item p { line-height: 1.85; margin-top: 4px; color: var(--sub); }
.item .item-no { margin: 0 0 2px; font-family: var(--en); font-size: 12px; line-height: 1.4; letter-spacing: .1em; color: var(--teal); text-shadow: none; }
.item-more { display: inline-block; margin-top: 10px; color: var(--orange); font-size: 14px; line-height: 1.5; }
a.item:hover { filter: brightness(1.15); }
a.item:hover h3, a.item:focus-visible h3 { color: var(--lime); }
.services-lead { margin-top: 12px; color: var(--sub); }
.services-foot { margin-top: 32px; text-align: center; }

/* ---------- 下層ページ ---------- */
.sub-hero { padding-block: clamp(128px, 14vw, 168px) clamp(48px, 6vw, 72px); border-bottom: 4px solid var(--orange); }
.crumbs { display: flex; flex-wrap: wrap; gap: 4px 0; margin-bottom: 24px; font-size: 14px; line-height: 1.6; color: var(--sub); text-shadow: none; }
.crumbs li:not(:last-child)::after { content: "▶"; margin-inline: 10px; font-size: 10px; color: var(--orange); vertical-align: 2px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--lime); }
.sub-hero h1.heading { font-size: clamp(32px, 5vw, 56px); }
.sub-hero-in { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 28px); }
.sub-icon { flex: none; width: clamp(72px, 9vw, 104px); height: auto; clip-path: var(--pix); }
.sub-catch { margin-top: 24px; font-size: clamp(20px, 2.4vw, 28px); line-height: 1.5; color: var(--orange); text-shadow: 1px 0 0 currentColor; }
.sub-lead { margin-top: 16px; max-width: 46em; }
.group-jump { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.group-jump a, .other-list a {
  display: inline-block;
  padding: 8px 16px;
  line-height: 1.5;
  text-decoration: none;
  background: var(--panel);
  border: 3px solid var(--line);
}
.group-jump a::before { content: "▼ "; color: var(--orange); font-size: 12px; }
.group-jump a:hover, .other-list a:hover { border-color: var(--lime); color: var(--lime); }

.sec { padding-block: clamp(56px, 8vw, 96px); }
.sec.is-alt { background: var(--bg-2); }
.sec-lead { margin-top: 12px; max-width: 46em; color: var(--sub); }
.svc-group .heading em { font-size: .66em; }

.worry-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 28px; }
.worry-list p { line-height: 1.8; }
.worry-list p::before { content: "?"; display: block; width: 32px; height: 32px; margin-bottom: 10px; font-family: var(--en); line-height: 32px; text-align: center; color: #17181d; background: var(--orange); text-shadow: none; }

.do-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 28px; }
.do-no { font-family: var(--en); font-size: 24px; line-height: 1; color: var(--teal); text-shadow: none; }
.do-grid h3 { margin-top: 10px; font-size: clamp(20px, 2vw, 24px); line-height: 1.4; color: var(--lime); text-shadow: 1px 0 0 currentColor; }
.do-grid p:last-child { margin-top: 6px; line-height: 1.85; }

.flow-list { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-top: 28px; counter-reset: flow; }
.flow-no { font-family: var(--en); font-size: 12px; line-height: 1.4; letter-spacing: .1em; color: var(--teal); text-shadow: none; }
.flow-list h3 { margin-top: 6px; font-size: 20px; line-height: 1.4; color: var(--orange); text-shadow: 1px 0 0 currentColor; }
.flow-list h3 small { display: block; font-size: 13px; color: var(--sub); text-shadow: none; }
.flow-list p:last-child { margin-top: 8px; font-size: 14.5px; line-height: 1.75; }

.cta-box { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: clamp(20px, 3vw, 40px); align-items: center; padding: clamp(28px, 4vw, 48px); }
.cta-box img { width: 96px; margin-inline: auto; }
.cta-box .heading { font-size: clamp(24px, 3.2vw, 36px); }
.cta-box p:not(.label) { margin-top: 12px; color: var(--sub); }
.cta-box .cta { margin-top: 20px; font-size: 18px; padding: 17px 32px; }

.other-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.back-link { margin-top: 28px; }
.back-link a { color: var(--orange); text-decoration: none; }
.back-link a:hover { color: var(--lime); }

@media (max-width: 960px) {
  .flow-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .worry-list { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .do-grid, .flow-list { grid-template-columns: minmax(0, 1fr); }
  .cta-box { grid-template-columns: minmax(0, 1fr); text-align: center; }
  .cta-box img { width: 72px; }
  .cta-box .cta { display: block; padding: 16px 12px; white-space: normal; }
}

/* どんな方へ */
.fields { padding-block: clamp(56px, 8vw, 96px); }
.fields-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 28px; }
.fields-grid h3 { font-size: clamp(20px, 2.1vw, 24px); line-height: 1.4; color: var(--lime); text-shadow: 1px 0 0 currentColor; }
.fields-grid p { margin-top: 6px; }

/* お問い合わせ */
.contact { background: var(--bg-2); padding-block: clamp(56px, 8vw, 96px); }
.contact-lead { margin-top: 12px; color: var(--sub); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) 190px; gap: 32px; align-items: end; margin-top: 28px; }
.contact-art img { width: 190px; margin-inline: auto; }
.contact-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.field { display: grid; gap: 6px; min-width: 0; border: 0; margin: 0; padding: 0; }
.field--full { grid-column: 1 / -1; }
.field > label, .field > legend { padding: 0; font-size: 16px; line-height: 1.5; }
.field textarea::placeholder { color: #9095a5; opacity: 1; }
.req { flex: none; white-space: nowrap; margin-left: 6px; padding: 0 6px; font-size: 12px; color: #17181d; background: var(--orange); text-shadow: none; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field textarea {
  width: 100%;
  font: inherit;
  letter-spacing: inherit;
  text-shadow: none;
  color: var(--text);
  background: var(--bg);
  border: 3px solid #5a6276;
  border-radius: 0;
  padding: 10px 12px;
}
.field textarea { min-height: 170px; resize: vertical; line-height: 1.7; }
.field input:focus, .field textarea:focus { outline: 0; border-color: var(--lime); }
.field.is-err input, .field.is-err textarea { border-color: var(--red); }
.checks { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 4px; }
.check { display: inline-flex; align-items: center; gap: 8px; line-height: 1.5; cursor: pointer; }
.check input { appearance: none; flex: none; width: 20px; height: 20px; margin: 0; background: var(--bg); border: 3px solid #5a6276; cursor: pointer; }
.check input:checked { background: var(--lime); box-shadow: inset 0 0 0 3px var(--bg); }
.check input:focus-visible { outline: 3px solid var(--lime); outline-offset: 2px; }
.err { display: none; color: #ff9b84; font-size: 14px; line-height: 1.5; }
.field.is-err .err { display: block; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { grid-column: 1 / -1; display: grid; gap: 12px; justify-items: start; }
.submit { border: 0; font-family: inherit; font-size: 18px; letter-spacing: .08em; padding: 17px 44px; cursor: pointer; }
.submit[disabled] { filter: grayscale(.7); cursor: wait; }
.form-note { color: #ffb84d; line-height: 1.7; }
.form-done { text-align: center; }
.form-done h3 { font-size: clamp(24px, 3vw, 32px); line-height: 1.4; color: var(--lime); text-shadow: 1px 0 0 currentColor; }
.form-done img { width: 150px; margin: 0 auto 14px; }
.form-done p { margin-top: 8px; }

/* 事業者情報 */
.company { background: var(--bg); padding-block: clamp(56px, 8vw, 96px); }
.company-table { margin-top: 26px; }
.company-table div { display: grid; grid-template-columns: 9em minmax(0, 1fr); gap: 16px; padding-block: 8px; border-bottom: 2px dashed var(--line); }
.company-table div:last-child { border-bottom: 0; }
.company-table dt { color: var(--teal); }
.company-table dd.tbd { color: var(--sub); }

/* フッター */
.site-foot { background: #0c0d11; padding-block: 40px 46px; border-top: 3px solid var(--orange); }
.foot-logo { width: min(100%, 256px); }
.foot-message { font-size: clamp(20px, 2.2vw, 24px); margin-top: 16px; line-height: 1.5; }
.copyright { font-family: var(--en); font-size: 14px; margin-top: 10px; color: var(--sub); text-shadow: none; }

/* 動き：コマ送りでゲームらしく */
@media (prefers-reduced-motion: no-preference) {
  .digger { animation: dig 1.1s steps(4) infinite; }
  .digger--girl { animation-duration: 1.35s; animation-delay: -.4s; }
  @keyframes dig { to { background-position-x: 133.333%; } }
  /* 2コマの人（耕す・収穫・水やり）はコマを切り替える。速さは役割ごと */
  .actor i.is-anim { animation: frames2 .8s steps(2) infinite; animation-delay: var(--delay); }
  .actor--dig i.is-anim { animation-duration: .9s; }
  .actor--harvest i.is-anim { animation-duration: 1.6s; }
  .actor--water i.is-anim { animation-duration: .5s; }
  @keyframes frames2 { to { background-position-x: 200%; } }
  /* 見張り：双眼鏡で左右をゆっくり見渡す */
  .actor--watch { animation: look 7s infinite; }
  @keyframes look { 0%, 49.9% { transform: scaleX(1); } 50%, 100% { transform: scaleX(-1); } }
  .actor--watch i { animation: hop 1.4s steps(2, jump-none) infinite; }
  /* 座って空を見る：ゆっくり息をするだけ */
  .actor--rest i { animation: hop 2.6s steps(2, jump-none) infinite; }
  /* 水やりの人は、畝に沿ってゆっくり行き来する */
  .actor--walk { animation: patrol var(--s) steps(80) infinite; animation-delay: var(--delay); }
  @keyframes patrol {
    0% { transform: translateX(0) scaleX(1); }
    49.9% { transform: translateX(var(--dx)) scaleX(1); }
    50% { transform: translateX(var(--dx)) scaleX(-1); }
    100% { transform: translateX(0) scaleX(-1); }
  }
  .ticker-track { animation: ticker 60s linear infinite; }
  @keyframes ticker { to { transform: translateX(-33.3333%); } }
  .dozer { animation: rumble .28s steps(2) infinite, drive 34s steps(340) infinite; }
  @keyframes rumble { to { background-position-x: 200%; } }
  @keyframes drive { from { left: -13%; } to { left: 101%; } }
  .cloud--a { animation: drift 70s steps(140) infinite; }
  .cloud--b { animation: drift 110s steps(220) -40s infinite; }
  .about-art img, .m-art img { animation: hop 1.2s steps(2, jump-none) infinite; }
  .member:nth-child(even) .m-art img, .m-art img + img { animation-delay: -.6s; }
  .term-type::after { animation: blink 1s steps(1) infinite; }
  .term-live { animation: blink 1.6s steps(1) infinite; }
  .sat { animation: orbit 48s steps(480) -12s infinite; }
  @keyframes orbit { from { transform: translateX(-60px); } to { transform: translateX(calc(100vw + 160px)); } }
  .constel rect { animation: blink 2.4s steps(1) infinite; }
  .constel rect:nth-child(odd) { animation-delay: -1.2s; }
  @keyframes drift { from { transform: translateX(-200px); } to { transform: translateX(100vw); } }
  @keyframes hop { from { transform: translateY(0); } to { transform: translateY(-4px); } }
  @keyframes blink { 50% { opacity: 0; } }
}

@media (prefers-reduced-motion: reduce) {
  .ticker-track { display: block; width: auto; }
  .ticker ul { flex-wrap: wrap; justify-content: center; }
  .ticker ul[aria-hidden] { display: none; }
}
@media (max-width: 1180px) {
  .term { top: 124px; width: 300px; font-size: 13px; }
}
/* タブレット：2列 */
@media (max-width: 900px) {
  .member-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  /* さらに狭い画面では、コマンド画面を文字の下に並べる */
  .term { position: relative; right: auto; top: auto; width: min(100%, 340px); }
  .site-nav ul { display: none; }
  .about-box { grid-template-columns: minmax(0, 1fr); }
  .about-art { order: -1; }
  .about-art img { width: 140px; }
  .hero { --hero-h: clamp(720px, 100svh, 880px); --focus: 88%; }
  /* 狭い画面では中央の畑が見えないので、二人とも右の畑で耕す */
  .dozer { left: 66%; }
  .digger--boy { left: 75%; }
  .digger--girl { left: 81.4%; }
}
/* スマホ：メンバーは横スライド */
@media (max-width: 760px) {
  .member-row {
    display: flex;
    gap: 14px;
    margin-inline: -20px;
    padding-inline: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 20px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .member-row::-webkit-scrollbar { display: none; }
  .member { flex: 0 0 min(80vw, 320px); scroll-snap-align: center; }
  .m-info dd { font-size: 16px; }
  .m-dots { display: flex; }
  .m-hint { display: block; }
}
@media (max-width: 640px) {
  .item-list, .fields-grid { grid-template-columns: minmax(0, 1fr); }
  .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .contact-art { display: none; }
  .contact-form { grid-template-columns: minmax(0, 1fr); }
  .submit { width: 100%; }
  .company-table div { grid-template-columns: 6em minmax(0, 1fr); }
  .brand img { height: 42px; }
  .cta { padding: 13px 14px; font-size: 14px; }
  .hero-catch { width: min(100%, 440px); }
  /* スマホのMV：畑を切り取らずに全体を小さく見せ、斜め上から見下ろすように奥へ傾ける。
     空は絵の代わりに背景のグラデーションで描き、絵の空の部分は透明にして溶け込ませる */
  .hero {
    height: auto;
    display: flex;
    flex-direction: column;
    background: linear-gradient(#15162e 0%, #272247 30%, #4a3166 52%, #9a3f4f 70%, #e2622c 86%, #f59a2a 100%);
  }
  .hero-copy { position: relative; inset: auto; z-index: 1; }
  .stage {
    order: 1;
    position: relative;
    bottom: auto;
    left: 50%;
    width: 128%;
    margin-top: -150px; /* 絵の透明な空の部分を、コマンド画面の下にもぐらせる */
    transform: translateX(-50%) perspective(420px) rotateX(30deg);
    transform-origin: 50% 100%;
    -webkit-mask-image: linear-gradient(to bottom, transparent 36%, #000 56%);
    mask-image: linear-gradient(to bottom, transparent 36%, #000 56%);
  }
  /* 夜は空に小さな星も散らす */
  [data-time="night"] .hero {
    background:
      radial-gradient(circle, #fff 1px, transparent 1.5px) 0 0 / 97px 83px,
      radial-gradient(circle, rgb(255 255 255 / .7) 1px, transparent 1.5px) 41px 29px / 131px 109px,
      linear-gradient(#0a0c2a 0%, #0f1236 40%, #171b4d 75%, #202463 100%);
  }
  [data-time="day"] .hero { background: linear-gradient(#2f88e3 0%, #3f9cec 40%, #7dd1fe 75%, #a3e5fd 100%); }
  [data-time="morning"] .hero { background: linear-gradient(#81b7ef 0%, #a9b6e6 35%, #e6acca 60%, #f7abbc 78%, #ffcb95 100%); }
  .term { width: 100%; font-size: 12px; line-height: 1.65; padding: 8px 12px 10px; }
  .constel { top: 118px; right: 3%; width: 110px; }
  /* 畑全体が見えるので、二人は元の位置で耕す */
  .digger--boy { left: 34.2%; }
  .digger--girl { left: 78.1%; }
}
@media (max-width: 460px) {
  .item { grid-template-columns: 64px minmax(0, 1fr); gap: 14px; }
  .item img { width: 64px; height: 64px; }
}

/* ログイン中に出る WordPress の管理バーと、ヘッダーが重ならないようにする */
.admin-bar .site-head { top: 44px; }
@media (max-width: 782px) { .admin-bar .site-head { top: 58px; } }

/* ---------- フッター（案内つき） ---------- */
.foot-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 32px; align-items: start; }
.foot-nav ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 20px; margin-block: 8px 16px; }
.foot-nav a { text-decoration: none; color: var(--sub); font-size: 14px; line-height: 1.9; text-shadow: none; }
.foot-nav a:hover { color: var(--lime); }
.foot-head a { color: var(--text); font-size: 16px; }
.foot-head + .foot-head { margin-top: 6px; }
.site-foot .copyright { margin-top: 24px; }

/* ---------- コラム：カード一覧 ---------- */
.post-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 28px; }
.post-list > li { display: flex; }
.post-card { flex: 1; display: flex; flex-direction: column; gap: 14px; padding: 14px 14px 20px; text-decoration: none; }
.post-thumb { aspect-ratio: 1200 / 630; overflow: hidden; clip-path: var(--pix); background: var(--bg); }
.post-thumb img { width: 100%; height: 100%; object-fit: cover; image-rendering: auto; }
.post-noimg { display: grid; place-items: center; width: 100%; height: 100%; background: var(--bg-2); }
.post-noimg img { width: 50%; height: auto; object-fit: contain; image-rendering: pixelated; opacity: .7; }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; font-size: 13px; line-height: 1.5; color: var(--sub); text-shadow: none; }
.post-cat { padding: 2px 8px; color: #17181d; background: var(--teal); text-decoration: none; }
a.post-cat:hover { background: var(--lime); }
.post-card h3 { margin-top: 8px; font-size: 18px; line-height: 1.55; text-shadow: .8px 0 0 currentColor; }
.post-excerpt { margin-top: 8px; font-size: 14px; line-height: 1.75; color: var(--sub); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
a.post-card:hover { filter: brightness(1.15); }
a.post-card:hover h3 { color: var(--lime); }
.empty { margin-top: 28px; color: var(--sub); }
.column-filter a::before { content: none; }
.column-filter a[aria-current="page"] { color: #17181d; background: var(--lime); border-color: var(--lime); }
.column-filter small { font-size: 12px; margin-left: 2px; }

.pager { margin-top: 36px; }
.pager ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.pager a, .pager span { display: inline-block; min-width: 44px; padding: 8px 12px; text-align: center; text-decoration: none; line-height: 1.5; background: var(--panel); border: 3px solid var(--line); }
.pager .current { color: #17181d; background: var(--orange); border-color: var(--orange); }
.pager a:hover { border-color: var(--lime); color: var(--lime); }

/* ---------- コラム：記事 ---------- */
.wrap--article { max-width: calc(800px + 40px); }
.article-head .post-meta { margin-top: 8px; }
.article-title { margin-top: 16px; font-size: clamp(26px, 3.6vw, 40px); line-height: 1.45; text-wrap: pretty; text-shadow: 1.2px 0 0 currentColor; }
.article-body { padding-top: clamp(32px, 5vw, 56px); }
.article-thumb { margin: 0 0 32px; }
.article-thumb img { width: 100%; image-rendering: auto; clip-path: var(--pix); }

/* 本文は長く読むので、ドット書体ではなく読みやすい書体にする */
.entry {
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", "YuGothic", Meiryo, sans-serif;
  font-size: 17px;
  line-height: 2;
  letter-spacing: .03em;
  text-shadow: none;
  overflow-wrap: anywhere;
}
.entry > * + * { margin-top: 1.4em; }
.entry h2, .entry h3, .entry h4 { font-family: var(--dot); letter-spacing: .04em; scroll-margin-top: 110px; }
.entry h2 { margin-top: 2.4em; padding: 12px 16px; font-size: clamp(22px, 2.6vw, 28px); line-height: 1.5; background: var(--panel); border-left: 8px solid var(--orange); text-shadow: 1px 0 0 currentColor; }
.entry h3 { margin-top: 2em; padding-bottom: 6px; font-size: clamp(19px, 2.2vw, 22px); line-height: 1.5; border-bottom: 3px dashed var(--teal); text-shadow: .8px 0 0 currentColor; }
.entry h4 { margin-top: 1.8em; font-size: 18px; color: var(--lime); }
.entry a { color: var(--teal); text-underline-offset: 3px; }
.entry a:hover { color: var(--lime); }
.entry strong { color: #ffd27a; }
.entry ul, .entry ol { padding-left: 1.6em; }
.entry ul { list-style: square; }
.entry ol { list-style: decimal; }
.entry li + li { margin-top: .4em; }
.entry li::marker { color: var(--orange); }
.entry img { image-rendering: auto; height: auto; }
.entry figure { margin-inline: 0; }
.entry figcaption { margin-top: 8px; font-size: 14px; color: var(--sub); text-align: center; }
.entry blockquote { margin-inline: 0; padding: 16px 20px; background: var(--panel); border-left: 4px solid var(--teal); color: var(--sub); }
.entry table { width: 100%; border-collapse: collapse; font-size: 15px; }
.entry th, .entry td { padding: 10px 12px; border: 2px solid var(--line); text-align: left; vertical-align: top; }
.entry th { background: var(--panel); color: var(--teal); }
.entry .wp-block-table { overflow-x: auto; }
.entry hr { border: 0; border-top: 3px dashed var(--line); }
.entry code { padding: 2px 6px; font-size: .9em; background: var(--panel); }
.entry pre { padding: 16px; overflow-x: auto; background: #0c0d11; font-size: 14px; line-height: 1.7; }
.entry .wp-block-button__link { font-family: var(--dot); color: #fff; background: var(--fire); border-radius: 0; clip-path: var(--pix); text-decoration: none; padding: 14px 28px; }
.entry .has-text-align-center { text-align: center; }

/* 目次 */
.toc { padding: 20px 24px; background: var(--panel); border: 3px solid var(--line); }
.toc-title { font-family: var(--dot); color: var(--orange); }
.toc-title::before { content: "> "; color: var(--lime); }
.toc ol { list-style: none; padding-left: 0; margin-top: 8px; counter-reset: toc; }
.toc li + li { margin-top: 2px; }
.toc a { color: var(--text); text-decoration: none; }
.toc a:hover { color: var(--lime); }
.toc .toc-h2 { counter-increment: toc; }
.toc .toc-h2::before { content: counter(toc, decimal-leading-zero) " "; font-family: var(--en); font-size: 12px; color: var(--teal); }
.toc .toc-h3 { padding-left: 2.2em; font-size: 15px; }

@media (max-width: 960px) {
  .post-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .post-list { grid-template-columns: minmax(0, 1fr); }
  .entry { font-size: 16px; }
}
