/* =====================================================================
   Service page : Android TV / Fire TV アプリ開発
   style.css の後に読み込むこと（変数の上書き・追加コンポーネント）
   ===================================================================== */

:root {
  --color-accent: #d9a441;
  --color-ink: #0b1a38;
  --color-line: #e3e5ea;
  --color-muted: #5d6577;
}

/* --- Hero --- */
.svc-hero {
  position: relative;
  overflow: hidden;
  padding: 88px 0 96px;
  color: var(--color-white);
  background: linear-gradient(135deg, #0b1a38 0%, #142b57 55%, #263f7c 100%);
}

.svc-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: 0.45;
  pointer-events: none;
}

.svc-hero .container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--color-accent);
  margin-bottom: 18px;
}

.svc-hero h1 {
  font-size: 40px;
  line-height: 1.35;
  margin-bottom: 20px;
}

.svc-hero h1 .thin {
  display: block;
  font-size: 21px;
  font-weight: 400;
  color: var(--color-shade1);
  margin-top: 12px;
}

.svc-hero .hero-lead {
  font-size: 16px;
  line-height: 2;
  color: #dfe3ec;
  margin-bottom: 32px;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn-accent {
  background: var(--color-accent);
  color: var(--color-ink);
}

/* --- Stats --- */
.stat-row {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-row .num {
  font-family: var(--font-headline);
  font-size: 34px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-white);
}

.stat-row .num small {
  font-size: 15px;
  font-weight: 400;
  margin-left: 3px;
}

.stat-row .label {
  font-size: 13px;
  color: var(--color-shade1);
  letter-spacing: 0.04em;
}

.stat-note {
  font-size: 13px;
  color: var(--color-shade1);
  margin-top: 16px;
}

/* --- TV mockup --- */
.tv-mock {
  width: 100%;
  max-width: 460px;
  margin-left: auto;
  filter: drop-shadow(0 24px 48px rgba(0, 0, 0, 0.45));
}

/* --- Section helpers --- */
.section-lead {
  font-size: 16px;
  line-height: 2;
  text-align: center;
  color: var(--color-muted);
  max-width: 760px;
  margin: -12px auto 46px;
}

.section-light {
  background: #f6f7f9;
}

.cat-head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
  padding-bottom: 14px;
  margin: 60px 0 26px;
  border-bottom: 2px solid var(--color-main);
}

.cat-head.first {
  margin-top: 0;
}

.cat-head h3 {
  font-size: 22px;
  color: var(--color-main);
}

.cat-head .count {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--color-white);
  background: var(--color-main);
  border-radius: 999px;
  padding: 3px 13px;
}

.cat-head .note {
  font-size: 14px;
  color: var(--color-muted);
  margin-left: auto;
}

/* --- Feature cards --- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--color-white);
  border: 1px solid var(--color-line);
  border-radius: 10px;
  padding: 32px 26px;
}

.feature-card .ico {
  width: 42px;
  height: 42px;
  color: var(--color-main);
  margin-bottom: 18px;
}

.feature-card h3 {
  font-size: 18px;
  margin-bottom: 10px;
  color: var(--color-main);
}

.feature-card p {
  font-size: 14.5px;
  line-height: 1.9;
  color: var(--color-muted);
}

/* --- ホーム画面の図 --- */
.home-figure {
  max-width: 860px;
  margin: 0 auto 8px;
}

.home-figure img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  border: 1px solid var(--color-line);
  box-shadow: 0 14px 30px rgba(20, 43, 87, 0.14);
}

.home-figure figcaption {
  font-size: 13px;
  color: var(--color-muted);
  text-align: center;
  margin-top: 12px;
}

/* --- App cards（押すと実画面が開く） --- */
.app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 20px;
}

.app-card {
  display: block;
  width: 100%;
  text-align: left;
  font: inherit;
  color: inherit;
  cursor: pointer;
  overflow: hidden;
  background: var(--color-white);
  border: 1px solid var(--color-line);
  border-radius: 10px;
  padding: 0;
  transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s;
}

.app-card:hover,
.app-card:focus-visible {
  transform: translateY(-3px);
  border-color: var(--color-main);
  box-shadow: 0 10px 24px rgba(20, 43, 87, 0.14);
  outline: none;
}

.app-card:focus-visible {
  box-shadow: 0 0 0 3px var(--color-accent), 0 10px 24px rgba(20, 43, 87, 0.14);
}

.app-shot {
  display: block;
  background: #0b1a38;
  border-bottom: 1px solid var(--color-line);
}

.app-shot img {
  width: 100%;
  height: auto;
  display: block;
}

.app-body {
  display: block;
  padding: 18px 20px 20px;
}

.app-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-headline);
  font-size: 16.5px;
  font-weight: 600;
  margin-bottom: 8px;
}

.app-title svg {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  color: var(--color-main);
}

.app-desc {
  display: block;
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--color-muted);
}

.app-more {
  display: inline-block;
  margin-top: 14px;
  font-size: 13px;
  font-weight: 700;
  color: var(--color-main);
}

.app-more::after {
  content: " →";
}

/* --- ライトボックス --- */
body.lb-open {
  overflow: hidden;
}

.lb {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(6, 11, 24, 0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

/* display指定は作者スタイルなのでUA既定の[hidden]{display:none}に勝ってしまう。明示的に打ち消す */
.lb[hidden] {
  display: none;
}

.lb-inner {
  background: var(--color-white);
  border-radius: 12px;
  width: min(980px, 100%);
  max-height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.lb-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  background: var(--color-main);
  color: var(--color-white);
}

.lb-title {
  font-family: var(--font-headline);
  font-size: 19px;
  font-weight: 600;
}

.lb-close {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  background: transparent;
  color: var(--color-white);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.lb-close:hover {
  background: rgba(255, 255, 255, 0.15);
}

.lb-body {
  overflow-y: auto;
  padding: 24px 22px 8px;
}

.lb-body figure {
  margin-bottom: 26px;
}

.lb-body img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  border: 1px solid var(--color-line);
}

.lb-body figcaption {
  font-size: 13.5px;
  color: var(--color-muted);
  margin-top: 10px;
  text-align: center;
}

.lb-note {
  font-size: 12px;
  color: var(--color-muted);
  padding: 0 22px 18px;
}

/* --- Game chips --- */
.chip-group {
  margin-bottom: 28px;
}

.chip-group .chip-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-main);
  margin-bottom: 12px;
}

.chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  background: var(--color-white);
  border: 1px solid var(--color-line);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 14px;
  line-height: 1.6;
}

.chip .genre {
  font-size: 11.5px;
  color: var(--color-white);
  background: var(--color-secondary);
  border-radius: 999px;
  padding: 1px 8px;
}

button.chip {
  font: inherit;
  font-size: 14px;
  color: inherit;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}

button.chip:hover {
  transform: translateY(-2px);
  border-color: var(--color-main);
  box-shadow: 0 6px 14px rgba(20, 43, 87, 0.12);
}

button.chip:focus-visible {
  outline: none;
  border-color: var(--color-main);
  box-shadow: 0 0 0 3px var(--color-accent);
}

/* --- Case studies --- */
.case-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 26px;
}

.case-card {
  background: var(--color-white);
  border: 1px solid var(--color-line);
  border-top: 4px solid var(--color-accent);
  border-radius: 8px;
  padding: 32px 28px 28px;
}

.case-card .case-no {
  font-family: var(--font-headline);
  font-size: 13px;
  letter-spacing: 0.16em;
  color: var(--color-accent);
  font-weight: 700;
}

.case-card h3 {
  font-size: 19px;
  color: var(--color-main);
  margin: 8px 0 18px;
}

.case-card dl {
  font-size: 14px;
  line-height: 1.85;
}

.case-card dt {
  font-weight: 700;
  color: var(--color-main);
  font-size: 12.5px;
  letter-spacing: 0.08em;
  margin-top: 14px;
}

.case-card dl > dt:first-child {
  margin-top: 0;
}

.case-card dd {
  color: var(--color-muted);
}

.case-card .tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px dashed var(--color-line);
}

.case-card .tags span {
  font-size: 12px;
  color: var(--color-main);
  background: #eef1f7;
  border-radius: 4px;
  padding: 3px 9px;
}

/* --- Flow --- */
.flow {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 20px;
  counter-reset: flow;
}

.flow-step {
  position: relative;
  background: var(--color-white);
  border: 1px solid var(--color-line);
  border-radius: 10px;
  padding: 28px 22px 24px;
}

.flow-step::before {
  counter-increment: flow;
  content: "0" counter(flow);
  font-family: var(--font-headline);
  font-size: 30px;
  font-weight: 700;
  color: #e6e9f0;
  position: absolute;
  top: 12px;
  right: 16px;
  line-height: 1;
}

.flow-step h4 {
  position: relative;
  font-family: var(--font-headline);
  font-size: 16px;
  color: var(--color-main);
  margin-bottom: 8px;
}

.flow-step p {
  font-size: 13.5px;
  line-height: 1.85;
  color: var(--color-muted);
}

/* --- News / press releases --- */
.news-list {
  list-style: none;
  max-width: 920px;
  margin: 0 auto;
  border-top: 1px solid var(--color-line);
}

.news-list li {
  border-bottom: 1px solid var(--color-line);
}

.news-list a {
  display: grid;
  grid-template-columns: 108px 92px 1fr 20px;
  gap: 18px;
  align-items: center;
  padding: 22px 8px;
  transition: background 0.15s;
}

.news-list a:hover {
  background: #f2f4f8;
}

.news-list .date {
  font-size: 13.5px;
  color: var(--color-muted);
  letter-spacing: 0.03em;
}

.news-list .tag {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-align: center;
  color: var(--color-main);
  border: 1px solid var(--color-main);
  border-radius: 3px;
  padding: 3px 0;
}

.news-list .title {
  font-size: 15.5px;
  line-height: 1.75;
  font-weight: 500;
}

.news-list .ext {
  width: 15px;
  height: 15px;
  color: var(--color-secondary);
  justify-self: end;
}

.news-more {
  text-align: center;
  margin-top: 34px;
}

/* --- 自社プロダクト（BrainPlay TV） --- */
.product-band {
  position: relative;
  overflow: hidden;
  color: var(--color-white);
  background: linear-gradient(120deg, #101a33 0%, #14264c 60%, #1d3563 100%);
  padding: 84px 0;
}

.product-band .container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1.08fr;
  gap: 54px;
  align-items: center;
}

.product-head {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 18px;
}

.product-head img {
  width: 66px;
  height: 66px;
  border-radius: 15px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.product-head h2 {
  font-size: 30px;
  line-height: 1.3;
}

.product-head .sub {
  display: block;
  font-family: var(--font-copy);
  font-size: 12.5px;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--color-accent);
  margin-top: 4px;
}

.product-lead {
  font-size: 15.5px;
  line-height: 2;
  color: #dfe3ec;
  margin-bottom: 24px;
}

.product-points {
  list-style: none;
  margin-bottom: 30px;
}

.product-points li {
  position: relative;
  padding-left: 24px;
  font-size: 14.5px;
  line-height: 1.9;
  color: #cfd6e6;
  margin-bottom: 10px;
}

.product-points li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 11px;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--color-accent);
}

.btn-ghost {
  background: transparent;
  color: var(--color-white);
  border: 1px solid rgba(255, 255, 255, 0.45);
}

.product-band .btn-row .btn {
  padding: 12px 22px;
  font-size: 14px;
}

.product-shots {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.product-shots .wide {
  grid-column: 1 / -1;
}

.product-shots img {
  width: 100%;
  /* width/height属性は presentational hint として height に効いてしまうので必ず打ち消す */
  height: auto;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.4);
}

.product-note {
  font-size: 12.5px;
  line-height: 1.8;
  color: #9fabc6;
  margin-top: 16px;
}

/* --- CTA band --- */
.cta-band {
  background: var(--color-main);
  color: var(--color-white);
  text-align: center;
  padding: 72px 0;
}

.cta-band h2 {
  font-size: 27px;
  margin-bottom: 16px;
}

.cta-band p {
  font-size: 16px;
  color: var(--color-shade1);
  margin-bottom: 30px;
}

/* --- Responsive --- */
@media (max-width: 900px) {
  .svc-hero {
    padding: 64px 0 72px;
  }
  .svc-hero .container {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .svc-hero h1 {
    font-size: 29px;
  }
  .svc-hero h1 .thin {
    font-size: 18px;
  }
  .stat-row {
    gap: 28px;
  }
  .tv-mock {
    margin: 0 auto;
  }
  .cat-head .note {
    margin-left: 0;
    width: 100%;
  }
  .product-band .container {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .product-head h2 {
    font-size: 25px;
  }
  .lb {
    padding: 10px;
  }
  .lb-title {
    font-size: 16px;
  }
  .lb-body {
    padding: 16px 14px 4px;
  }
  .news-list a {
    grid-template-columns: 1fr 20px;
    grid-template-areas:
      "meta ext"
      "title title";
    gap: 8px;
  }
  .news-list .date {
    grid-area: meta;
  }
  .news-list .tag {
    display: none;
  }
  .news-list .title {
    grid-area: title;
  }
  .news-list .ext {
    grid-area: ext;
  }
}
