/* ===== llcharu.com top page: Web制作・制作実績が主役の構成（このページだけで読み込み） ===== */
/* hero calls to action */
.hero-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 22px; }
.hero-cta .button { min-height: 48px; }
.hero-cta .button.gold { box-shadow: 0 14px 30px -14px rgba(138, 100, 32, .65); }
@media (max-width: 600px) { .hero-cta { display: grid; grid-template-columns: 1fr 1fr; } .hero-cta .button.gold { grid-column: 1 / -1; } .hero-cta .button { padding-inline: 12px; font-size: 14px; } }
/* the games card in the gateway shows its whole collage */
.gw-media.gw-media-games { background: #faf6ec; }
.gw-media.gw-media-games img { object-fit: contain; object-position: 50% 60%; }

/* ---------- WEB ---------- */
.web-grid { display: grid; grid-template-columns: 1.25fr 1fr; grid-template-rows: auto auto; gap: 18px; }
.web-card { position: relative; display: grid; align-content: start; border-radius: var(--radius, 20px); background: #fff; border: 1px solid rgba(201, 162, 78, .35); text-decoration: none; color: inherit; overflow: hidden; transition: transform .35s var(--ease, ease), box-shadow .35s; }
.web-card:hover { transform: translateY(-3px); box-shadow: 0 30px 60px -36px rgba(138, 100, 32, .55); border-color: #c9a24e; }
.web-card.is-main { grid-row: 1 / 3; }
.web-media { display: block; aspect-ratio: 960 / 574; overflow: hidden; background: #f6f1e6; border-bottom: 1px solid rgba(201, 162, 78, .25); }
.web-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; transition: transform 1.2s var(--ease, ease); }
.web-card:hover .web-media img { transform: scale(1.03); }
.web-body { display: grid; gap: 10px; padding: clamp(20px, 2.6vw, 30px); }
.web-body .kicker { font: 500 13px/1 var(--serif); letter-spacing: .14em; color: var(--gold-text); }
.web-body h3 { font-size: clamp(20px, 2.2vw, 26px); }
.web-body p { font-size: 14.5px; color: var(--muted); line-height: 1.85; }
.web-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.web-tags li { padding: 3px 12px; border-radius: 999px; border: 1px solid rgba(201, 162, 78, .45); font-size: 12.5px; color: var(--ink); background: #fffdf6; }
.web-note { font-size: 13px; color: var(--ink); }
.web-body .go { margin-top: 4px; font-size: 14px; font-weight: 600; color: var(--ink); }
.flow { margin-top: clamp(36px, 5vw, 56px); padding: clamp(22px, 3vw, 34px); border-radius: var(--radius, 20px); background: linear-gradient(180deg, #fffdf8, #f7f0e1); border: 1px solid rgba(201, 162, 78, .3); }
.flow h3 { margin-bottom: 18px; font-size: clamp(18px, 2vw, 22px); }
.flow ol { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; counter-reset: none; }
.flow li { position: relative; display: grid; gap: 6px; align-content: start; padding-top: 14px; border-top: 1px solid rgba(201, 162, 78, .55); }
.flow .n { font: 500 13px/1 var(--serif); letter-spacing: .14em; color: var(--gold-text); }
.flow b { font: 600 17px/1.4 var(--serif); }
.flow p { font-size: 13.5px; color: var(--muted); line-height: 1.8; }
.web-cta { display: grid; justify-items: center; gap: 10px; margin-top: 28px; text-align: center; }
.web-cta .button { min-height: 54px; padding-inline: 28px; }
.web-cta p { font-size: 12.5px; color: var(--muted); }

/* ---------- WORKS ---------- */
.works-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.work { display: grid; align-content: start; gap: 8px; padding: 14px 14px 20px; border-radius: var(--radius, 20px); background: #fff; border: 1px solid rgba(201, 162, 78, .3); min-width: 0; }
.work-media { display: block; aspect-ratio: 1440 / 1000; border-radius: 12px; overflow: hidden; background: #f6f1e6; box-shadow: 0 0 0 1px rgba(201, 162, 78, .25); }
.work-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; }
.work .kicker { margin-top: 6px; font-size: 11.5px; font-weight: 600; letter-spacing: .16em; color: var(--gold-text); }
.work h3 { font-size: clamp(18px, 1.8vw, 21px); }
.work p { font-size: 14px; color: var(--muted); line-height: 1.8; }
.work-link { justify-self: start; display: inline-flex; align-items: center; gap: 4px; min-height: 44px; font-size: 14px; font-weight: 600; color: var(--ink); text-decoration: none; border-bottom: 1px solid rgba(201, 162, 78, .7); }
.work-link.is-self { min-height: 32px; border: 0; color: var(--gold-text); font-weight: 500; }
.work-links { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.work-text { align-content: center; padding: 26px 22px; background: linear-gradient(160deg, #fffdf8, #f6eedb); }
.work-text.is-games { background: radial-gradient(circle at 80% 0, rgba(233, 214, 166, .55), transparent 55%), linear-gradient(160deg, #1d2233, #2b3150); border-color: #3a4166; }
.work-text.is-games h3, .work-text.is-games .work-link { color: #fffaf0; }
.work-text.is-games p { color: #d7d3c6; }
.work-text.is-games .kicker { color: #e9d6a6; }
.works-grid .work-text:nth-last-child(2) { grid-column: span 1; }

/* ---------- other services (kept, but quieter) ---------- */
.other-biz .business { grid-template-columns: minmax(0, .7fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 60px); }
.other-biz .business + .business { margin-top: clamp(48px, 6vw, 80px); }
.other-biz .business-media .frame { aspect-ratio: 4 / 3.4; border-radius: 180px 180px 18px 18px; }
.other-biz .business-body h3 { font-size: clamp(22px, 2.4vw, 28px); }

@media (max-width: 1080px) {
  .works-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flow ol { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .web-grid { grid-template-columns: 1fr; }
  .web-card.is-main { grid-row: auto; }
  .other-biz .business { grid-template-columns: 1fr; }
  .other-biz .business:nth-of-type(even) .business-media { order: 0; }
  .other-biz .business-media .frame { max-width: 420px; aspect-ratio: 16 / 10; border-radius: 120px 120px 16px 16px; }
}
@media (max-width: 600px) {
  .works-grid { grid-template-columns: 1fr; }
  .flow ol { grid-template-columns: 1fr; gap: 12px; }
  .web-body p, .work p { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .web-card, .web-media img { transition: none; }
}
/* keep the hero column inside narrow screens (long eyebrow / buttons must not widen the grid) */
.gw-head { grid-template-columns: minmax(0, 1fr); }
.gw-head .eyebrow { max-width: 100%; white-space: normal; text-wrap: balance; }
.hero-cta .button { white-space: nowrap; overflow: visible; }
@media (max-width: 360px) { .hero-cta .button { font-size: 13px; padding-inline: 10px; gap: 6px; } .gw-head .eyebrow { letter-spacing: .14em; } }
@media (max-width: 400px) { .gw-head h1 { font-size: clamp(30px, 10.2vw, 40px); } }
/* 5 works: the games card fills the remaining row so no empty cell appears */
.works-grid .work-text.is-games { grid-column: 1 / -1; }
/* 制作実績の分類見出し（Webサイト／Webサービス・ツール／オリジナルゲーム） */
.works-grid .works-sub { grid-column: 1 / -1; display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; margin: 26px 0 0; padding-bottom: 10px; border-bottom: 1px solid rgba(201, 164, 94, .45); font-family: inherit; font-size: clamp(19px, 2vw, 23px); letter-spacing: .06em; color: #2a251c; position: relative; }
.works-grid .works-sub:first-child { margin-top: 0; }
.works-grid .works-sub::after { content: ""; position: absolute; left: 0; bottom: -1px; width: 64px; height: 2px; background: linear-gradient(90deg, #a8843a, #e6cf98); }
.works-sub-en { width: 100%; font-size: 10.5px; letter-spacing: .24em; color: #9a7a35; font-weight: 600; }
.works-sub small { font-size: 12.5px; letter-spacing: .04em; color: #8a8070; }
@media (max-width: 600px) { .works-grid .work-text.is-games { grid-column: auto; } }
@media (max-width: 480px) { .gw-head .eyebrow .eb-long { display: none; } .gw-head .eyebrow { white-space: nowrap; } }
