@charset "utf-8";

/* ========================
  Opening（フェードなし／再生後にJSで非表示）
========================= */
.opening{
  position:fixed;
  inset:0;
  z-index:9999;
  display:grid;
  place-items:center;
  background:#000;
  overflow:hidden;
}
.opening.is-hidden{ display:none; }
.opening__video{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center;
}
.opening__controls{
  position:fixed;
  right:20px;
  bottom:20px;
  z-index:2;
}
.opening__skip{
  background:rgba(255,255,255,.9);
  border:0;
  padding:.5em 1em;
  border-radius:var(--radius-pill);
  font-weight:700;
  cursor:pointer;
}

/* ========================
  Main top
========================= */
.pink-hero {
  position: relative;
  z-index: 0;
  overflow-x: hidden;
}

.top-hero {
  display: block;
  width: 100%;
  line-height: 0;
  margin: 0;
}
.top-hero img {
  width: 100%;
  height: auto;
  display: block;
}

/* sandpaper 背景
   - margin-top で上に少し引き上げて上の画像の下に潜り込ませる
   - 同じだけ padding-top を足して中身の位置は保つ
*/
.pink-hero__bg {
  background: url("../images/pc/sandpaper.webp") no-repeat center bottom / cover;
  margin-top: -600px;
  padding-top: 400px;
}

.pink-hero__inner {
  position: relative;
  padding: 160px 0 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.pink-hero__ink {
  position: relative;
  z-index: 2;
  height: 263px;
  background: url("../images/pc/ink04.webp") repeat-x center top / contain;
  background-size: auto 100%;
  margin-top: -1px;
}

.hero-intro {
  max-width: 1000px;
  margin: 96px auto 56px;
  text-align: center;
}

.hero-intro__text {
  font-size: 1.8rem;
  line-height: 2;
  font-weight: 700;
  color: var(--ink);
}

.tilt-group {
  width: 100%;
  margin: 0 auto;
}

.tilt-copy {
  font-size: 2.0rem;
  font-weight: 700;
  color: var(--ink);
  text-align: center;
  margin-bottom: 10px;
}

.tilt-copy__beige {
  color: var(--beige);
  font-weight: 700;
}

.btn-ink {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 25px 34px 25px 65px;
  border-radius: 18px;
  background: var(--ink);
  color: var(--beige);
  font-family: "Sansation";
  font-size: 2.6rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-decoration: none;
  box-shadow: none;
  transition: background 0.3s ease, transform 0.3s ease;
}

.btn-ink::after {
  content: "";
  display: inline-block;
  width: 0.4em;
  height: 0.4em;
  margin-left: 0;
  border-right: 3px solid currentColor;
  border-top: 3px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
  transform-origin: center;
}

.btn-ink:hover {
  color: var(--ink);
  border: var(--ink);
  background: var(--beige);
  transform: translateY(-2px);
}

.tilt-btn {
  display: flex;
  margin: 0 auto;
}

.top__btn {
  margin-top: 40px;
  width: 100%;
  max-width: 1238px;
}

.pink-hero__inner .btn-ink {
  width: 460px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 25px 40px;
}

/* ========================
   「企創天外の仕事を知る」見出し＋ナビ
======================== */
.hero-nav {
  width: 100%;
  margin-top: 80px;
  text-align: center;
}

.hero-nav__heading {
  font-size: 2.4rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.04em;
  margin-bottom: 48px;
}

.hero-nav__btns {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}

/* ========================
   サイバーパンク ネオンボタン（カプセル型）
======================== */
.btn-neon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 260px;
  padding: 16px 40px;
  border-radius: 999px;
  font-family: "Sansation", sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-align: center;
  text-decoration: none;
  color: #EAFF00;
  background: #111111;
  border: 2px solid #EAFF00;
  text-shadow: 0 0 8px rgba(234, 255, 0, 0.85);
  box-shadow:
    0 0 8px rgba(234, 255, 0, 0.6),
    0 0 22px rgba(234, 255, 0, 0.4),
    inset 0 0 12px rgba(234, 255, 0, 0.2);
  transition: color 0.25s ease, background-color 0.25s ease,
    border-color 0.25s ease, box-shadow 0.25s ease, text-shadow 0.25s ease,
    transform 0.25s ease;
  cursor: pointer;
}

.btn-neon:hover,
.btn-neon:focus-visible {
  color: #111111;
  background: #EAFF00;
  border-color: #EAFF00;
  text-shadow: none;
  transform: translateY(-2px);
  box-shadow:
    0 0 14px rgba(234, 255, 0, 0.95),
    0 0 36px rgba(234, 255, 0, 0.5),
    inset 0 0 8px rgba(255, 255, 255, 0.35);
}



/* ========================
   SP TOP （〜768px）
========================= */
@media (max-width: 768px) {
  .pink-hero {
    margin-top: 0;
  }

  .pink-hero__inner {
    padding: 260px 0 50px;
  }

  .hero-intro {
    margin-top: 48px;
    margin-bottom: 28px;
    padding: 0 8px;
  }

  .hero-intro__text {
    font-size: 1.3rem;
    line-height: 1.9;
  }

  .hero-nav {
    margin-top: 20px;
  }

  .hero-nav__heading {
    font-size: 1.6rem;
    margin-bottom: 18px;
  }

  .hero-nav__btns {
    flex-direction: column;
    gap: 14px;
  }

  .btn-neon {
    min-width: 240px;
    font-size: 1.5rem;
    padding: 14px 26px;
  }

  .tilt-copy {
    font-size: 1.4rem;
    margin-bottom: 8px;
  }

  .btn-ink {
    font-size: 1.5rem;
    padding: 15px 20px;
    border-radius: 8px;
  }

  .btn-ink::after {
    border-right: 2px solid currentColor;
    border-top: 2px solid currentColor;
  }

  .tilt-btn {
    margin-bottom: 20px;
  }

  .top__btn {
    justify-content: center;
    margin-top: 20px;
  }

  .pink-hero__ink {
    height: 113px;
    background: url("../images/pc/ink04.webp") repeat-x center top / contain;
    background-size: auto 100%;
  }

  .pink-hero__inner .btn-ink {
    width: 280px;
    padding: 15px 20px;
  }
}

/* ========================
  GAMES セクション
========================= */

.games-hero {
  position: relative;
  z-index: 1;
  background: linear-gradient(
    to bottom,
    #F80E93 0%,
    #F200FF 60%,
    #F80E93 100%
  );
  color: var(--beige);
  overflow: hidden;
  margin-top: -200px;
  padding-top: 160px;
}

/* 中身を 1238px 幅に中央寄せ */
.games-hero__inner {
  position: relative;
  padding: 180px 20px 120px;
}

/* 背景の大きな GAMES（トーンオントーン） */
.games-hero__bg-title {
  position: absolute;
  top: -150px;
  left: 50%;
  transform: translateX(-50%);
  font-family: "Sansation", sans-serif;
  font-weight: 700;
  font-size: 36rem;
  color: #FF38C1;
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

.games-title {
  position: relative;
  z-index: 1;
  font-family: "Sansation", sans-serif;
  font-size: 3.0rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-align: center;
  margin-bottom: 160px;
}

.game-card {
  position: relative;
  z-index: 1;
  background: var(--beige);
  border-radius: 20px;
  overflow: hidden;
  color: var(--ink);
  margin-bottom: 160px;
}

.game-card__visual {
  background: var(--beige);
  margin-bottom: 0;
}

.game-card__visual picture,
.game-card__visual img {
  display: block;
  width: 100%;
  max-width: 1238px;
  margin: 0 auto;
}

.game-card__bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding: 36px 40px 44px;
  text-align: center;
  color: var(--ink);
}

.game-card__text {
  text-align: center;
}

.game-card__category {
  font-family: "Sansation", sans-serif;
  font-weight: 700;
  font-size: 1.8rem;
  letter-spacing: 0.08em;
  color: var(--pink-dark);
}

.game-card__name {
  font-family: "Sansation", sans-serif;
  font-size: 3.2rem;
  font-weight: 700;
  color: var(--ink);
}

.game-card__name-ja {
  font-size: 1.8rem;
  margin: 0;
  color: var(--ink);
}

.game-card__name-row {
  display: flex;
  gap: 20px;
  align-items: baseline;
  justify-content: center;
}

.game-card__badge {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
}

.game-card__more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 36px;
  border-radius: 999px;
  background: var(--pink-dark);
  color: #fff;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(248, 14, 147, 0.28);
  transition: opacity .2s ease, transform .2s ease;
}
.game-card__more::after { content: "→"; }
.game-card__more:hover {
  opacity: .9;
  transform: translateY(-1px);
}

.badge {
  display: block;
  width: min(320px, 100%);
  aspect-ratio: 1188 / 352;
  transition: transform 0.3s ease;
}

.badge img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.badge:hover {
  transform: translateY(-2px);
}

.games-hero__ink {
  position: relative;
  z-index: 2;
  height: 263px;
  background: url("../images/pc/ink04.webp") repeat-x center top / contain;
  background-size: auto 100%;
  margin-top: -1px;
}

/* ========================
   SP GAMES（〜768px）
========================= */
  @media (max-width: 768px) { 
  .container {
    padding-left: 25px;
    padding-right: 25px;
  }

  .games-hero {
    margin-top: -120px;
    padding-top: 80px;
    background: linear-gradient(
      to bottom,
      #FF2175 0%,
      #F200FF 100%
    );
  }

  .games-hero__inner {
    padding: 90px 25px 25px;
  }

  .games-hero__bg-title {
    top: -30px;
    font-size: 10rem;
  }

  .games-title {
    font-size: 2.0rem;
    font-weight: 700;
    margin-bottom: 45px;
  }

  .game-card {
    margin-bottom: 80px;
  }

  .game-card__visual img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 0;
  }

  .game-card__visual {
    margin-bottom: 0;
  }

  .game-card__bottom {
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 22px 22px 28px;
    text-align: center;
  }

  .game-card__text {
    text-align: center;
  }

  .game-card__category {
    font-size: 1.3rem;
  }

  .game-card__name {
    font-size: 1.6rem;
  }

  .game-card__name-ja {
    font-size: 1.3rem;
  }

  .game-card__name-row {
    gap: 4px;
  }

  #games .game-card:not(:first-of-type) .game-card__name-row {
    flex-direction: column;
    align-items: center;
  }

  .btn-more {
    padding: 15px 19px 15px 87px;
    font-size: 1.5rem;
    border-radius: 8px;
    align-self: center;
  }
  
  .games-hero__ink {
    height: 113px;
    background: url("../images/pc/ink05.webp") repeat-x center top / contain;
    background-size: auto 100%;
    margin-top: -1px;
  }
    
}

/* ========================
  SERVICE セクション
========================= */
.service-hero {
  position: relative;
  z-index: 1;
  background: var(--navy);
  color: var(--beige);
  overflow: hidden;
  margin-top: -200px;
  padding-top: 160px;
}

/* 中身は container で 1238px 中央寄せ */
.service-hero__inner {
  position: relative;
  padding: 190px 20px 114px;
}

.service-hero__bg-title {
  position: absolute;
  top: -150px;
  left: 50%;
  transform: translateX(-50%);
  font-family: "Sansation", sans-serif;
  font-weight: 700;
  font-size: 36rem;
  color: #2C3858;
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}

.service-hero__heading {
  position: relative;
  z-index: 1;
  text-align: center;
  font-size: 3.0rem;
  font-weight: 700;
}

.service-hero__columns {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: 80px;
  row-gap: 72px;
  margin: 260px 0 120px;
}

.service-hero__col {
  min-height: 240px;
  padding-right: 40px;
  border-right: 1px solid rgba(252, 249, 243, 0.35);
}

/* 各行の右端（3列目）と最後の列は仕切り線なし */
.service-hero__col:nth-child(3n),
.service-hero__col:last-child {
  border-right: none;
  padding-right: 0;
}

.service-hero__col-title {
  display: inline-block;
  font-size: 2.2rem;
  font-weight: 700;
  color: #EAFF00;
  text-shadow: 0 0 8px rgba(234, 255, 0, .55), 0 0 18px rgba(234, 255, 0, .3);
  transform: rotate(-8deg);
  transform-origin: left center;
  margin-bottom: 36px;
}

.service-hero__ink {
  position: relative;
  z-index: 2;
  height: 263px;
  background: url("../images/pc/ink01.webp") repeat-x center top / contain;
  background-size: auto 100%;
  margin-top: -1px;
}

/* 紺背景では ink ボタンが沈むので反転 */
.service-hero .btn-ink {
  background: var(--beige);
  color: var(--ink);
}
.service-hero .btn-ink:hover {
  background: var(--pink-dark);
  color: var(--beige);
}

.service-hero__list {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 1.8rem;
  line-height: 2;
}

.service-hero__btn-wrap {
  position: relative;
  z-index: 1;
  text-align: center;
}

.btn-service {
  padding: 15px 34px 15px 104px;
}

/* ========================
   SP SERVICE（〜768px）
========================= */
@media (max-width: 768px) {

  .service-hero {
    margin-top: -90px;
    padding-top: 80px;
    background: var(--navy);
  }

  .service-hero__inner {
    padding: 90px 25px;
  }

  .service-hero__bg-title {
    top: -30px;
    font-size: 10rem;
  }

  .service-hero__heading {
    font-size: 1.8rem;
    margin-bottom: 40px;
  }

  .service-hero__columns {
    display: block;
    margin: 32px 0 80px;
  }

  .service-hero__col {
    border-right: none;
    border-bottom: 1px solid #000;
    padding: 32px 0;
  }

  .service-hero__col:first-of-type {
    border-top: 1px solid #000;
  }

  .service-hero__col:nth-of-type(2) {
    min-height: 180px;
  }

  .service-hero__col:last-of-type {
    border-bottom: none;
  }

  .service-hero__col-title {
    font-size: 1.8rem;
    margin-top: 18px;
    margin-bottom: 18px;
  }

  .service-hero__btn-wrap {
    text-align: center;
    margin-top: -30px;
  }

  .btn-service {
    padding: 15px 19px 15px 78px;
    font-size: 1.5rem;
    border-radius: 8px;
  }

  .service-hero__list {
    font-size: 1.5rem;
  }

  .service-hero__ink {
    height: 113px;
    background: url("../images/pc/ink01.webp") repeat-x center top / contain;
    background-size: auto 100%;
    margin-top: -1px;
  }
}


/* ========================
  NEWS セクション
========================= */

.news-hero {
  position: relative;
  z-index: 1;
  background: var(--beige);
  margin-top: -200px;
  padding-top: 160px;
}

.news-hero__inner {
  position: relative;
  padding: 120px 20px 140px;
}

.news-head {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 148px;
}

.news-title {
  font-family: "Sansation", sans-serif;
  font-size: 3.0rem;
  font-weight: 700;
}

.news-btn{
  display: flex;
  justify-content: flex-end;
  margin-bottom: 24px;
}

.news-list {
  margin: 0;
  padding: 0;
}

.news-item {
  display: flex;
  align-items: baseline;
  gap: 40px;
  padding: 34px 0;
  border-top: 1px solid #000;
}

.news-item:last-child {
  border-bottom: 1px solid #000;
}

.news-date {
  font-family: "Sansation", sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  flex: 0 0 140px;   /* 左の幅を固定して揃える */
}

.news-text {
  font-size: 1.8rem;
  flex: 1;
  margin: 0;
}
.news-text a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: color .2s ease;
}
.news-text a::after {
  content: "\2197"; /* ↗ 外部リンク */
  margin-left: 4px;
  font-size: 0.85em;
}
.news-text a:hover {
  color: var(--pink-dark);
}

.news-hero__ink {
  position: relative;
  z-index: 2;       
  height: 263px;  /* インク画像の高さに合わせる */
  background: url("../images/pc/ink03.webp") repeat-x center top / contain;
  background-size: auto 100%;
  margin-top: -1px;
}

/* ========================
   SP NEWS（〜768px）
========================= */
@media (max-width: 768px) {

  .news-hero {
    margin-top: -90px;   
    padding-top: 60px;
  }

  .news-hero__inner {
    padding: 90px 25px;
  }

  .news-head {
    margin-bottom: 40px;
  }

  .news-title {
    font-size: 1.8rem; 
  }

  .news-item {
    flex-direction: column;
    gap: 5px;
    padding: 20px 0;
  }

  .news-date {
    flex: none;
    font-size: 1.3rem;
  }

  .news-text {
    font-size: 1.3rem;
  }

  .news-hero__ink {
    height: 113px;
    background: url("../images/pc/ink03.webp") repeat-x center top / contain;
    background-size: auto 100%;
    margin-top: -1px;
  }
}

/* ========================
   ネオンバックライト（サイバーパンク風）
   見出しテキストの背面に発光を敷く
======================== */
.service-hero__heading,
.games-title,
.hero-nav__heading {
  position: relative;
  z-index: 1;
}

/* テキスト背面のぼかし発光（バックライト本体） */
.service-hero__heading::before,
.games-title::before,
.hero-nav__heading::before {
  content: attr(data-text);
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: -1;
  white-space: nowrap;
  font: inherit;
  letter-spacing: inherit;
  color: #00f0ff;
  text-shadow:
    0 0 8px #00f0ff,
    0 0 18px #00f0ff,
    0 0 34px #ff00e5,
    0 0 60px #ff00e5,
    0 0 90px #ff00e5;
  filter: blur(2px);
  pointer-events: none;
  user-select: none;
  animation: neonPulse 2.6s ease-in-out infinite;
}

@keyframes neonPulse {
  0%,
  100% {
    opacity: 0.95;
    filter: blur(2px) brightness(1);
  }
  50% {
    opacity: 0.7;
    filter: blur(3px) brightness(1.35);
  }
}
/* SP 768px */