@charset "utf-8";

/* ========================
  Common
========================= */
:root{

  --pink:#F201FD;
  --pink-mid:#FF1FA2;
  --pink-dark:#F80E93;
  --ink:#1D2331;
  --navy:#1D2331; /* SERVICE 背景の紺色（ink01ドリップ画像と同色で継ぎ目をなくす） */
  --beige:#FCF9F3;

  /* Layout */
  --container:1238px; 
  --header-h:96px;

  /* slider */
  --tilt-deg:-12deg;        /* 斜め角度（ボタン/スライダー共通） */
  --rail-gap:12px;          /* 上下レール間の隙間 */ 
  --rail-item-h:463px;     /* 画像の見える高さ（上下とも） */
  --marquee-sec-1:28s;      /* 上段の流れる速度（小さいほど速い） */
  --marquee-sec-2:26s;      /* 下段の流れる速度 */ 
  --slider-h: 463px;        /* スライダー画像の高さ（PCデザインの463px） */

  /* skip */
  --radius-pill:999px;

}

html{ 
  font-size:62.5%;
 }

body{
  font-family:"Noto Sans JP",sans-serif,Sansation,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Hiragino Kaku Gothic ProN","Yu Gothic",sans-serif;
  color:#1D2331;
  line-height:1.6;
  background: var(--beige);
  overflow-x: hidden;  /* 横スクロール禁止（斜めスライダーのハミ出しをカット） */
}

img{ max-width:100%; height:auto; display:block; }
.pc-only{ display:block; }
.sp-only{ display:none; }
@media (max-width:768px){
  .pc-only{ display:none; }
  .sp-only{ display:block; }
}

/* 共通幅 */
.container{
  width:min(100%, var(--container));
  margin-inline:auto;
  padding-inline:20px;
}

.section-title {
  font-size: 3.2rem;
  font-weight: 700;
  margin-bottom: 120px;
}

/* ========================
  Header
========================= */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 24px 80px;
  background: transparent;
  transition: background-color .3s ease, box-shadow .3s ease, backdrop-filter .3s ease;
}

/* スクロール時：半透明の帯を出してメニューを読みやすくする */
.header--scrolled {
  background-color: rgba(252, 249, 243, 0.82); /* beige 半透明 */
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 14px rgba(29, 35, 49, 0.08);
}
/* 帯の上は常にダーク文字で読みやすく */
.header--scrolled .logo__img--light { display: none; }
.header--scrolled .logo__img--dark { display: block; }
.header--scrolled .global-nav a { color: var(--ink); }
.header--scrolled .global-nav a:hover { color: #EAFF00; }
.header--scrolled .mail-icon__path { fill: var(--ink); }
.header--scrolled .hamburger-icon__path { fill: var(--ink); }

.logo__icon {
  margin-right: auto;
}

.logo__img {
  height: 48px;
  width: auto;
  display: block;
}

/* 通常はデフォルトロゴだけ表示 */
.logo__img--dark {
  display: none;
}

/* ベージュ背景上ではinkロゴを表示 */
.header--on-beige .logo__img--light {
  display: none;
}

.header--on-beige .logo__img--dark {
  display: block;
}

.global-nav .nav__list{
  display: flex;
  gap: 64px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.global-nav a{
  display: inline-block;
  font-family: "Sansation", sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--beige);
  text-decoration: none;
  padding: .6em .4em;
  transform-origin: center center;
  transition: color .2s ease, transform .2s ease;
}
.global-nav a:hover{
  color: #EAFF00;
  /* font-size を変えると間隔がずれるので transform で拡大（レイアウト非影響） */
  transform: scale(1.2);
}

.contact__icon {
  margin-left: 64px;
}

.mail-icon__path {
  fill: var(--beige);
  transition: fill .3s ease;
}

.contact__icon a:hover .mail-icon__path {
  fill: #EAFF00;
}

/* ========================
  色反転（ベージュ背景の上）
========================= */
.header--on-beige .global-nav a {
  color: var(--ink);
}
.header--on-beige .global-nav a:hover {
  color: #EAFF00;
}

.header--on-beige .mail-icon__path {
  fill: var(--ink);
}

/* SP用ハンバーガー（PCでは非表示） */
 .menu__toggle{
  display: none;
  background: none;
  border: 0;
  padding: 8px;
  margin-left: 16px;
}

/* ハンバーガー色反転 */
.hamburger-icon__path {
  fill: var(--beige);
  transition: fill .3s ease;
}

.menu__toggle:hover .hamburger-icon__path {
  fill: #EAFF00;
}

.header--on-beige .hamburger-icon__path {
  fill: var(--ink);
}


@media (max-width: 960px){
  .global-nav{ display: none; }
  .menu__toggle{ display: inline-flex; margin-left: 0;}
}

/* ========================
  SP Nav
========================= */
 .sp-nav {
  position: fixed;
  top: 0;
  right: 0;
  left: auto;      /* 右端基準にする */
  bottom: 0;  
  height: 100vh;
  max-width: 429px;
  overflow: hidden;
  background: url("../images/sp/SP_menu.webp");
  background-size: cover;
  background-repeat: no-repeat;
  font-family: "Sansation", sans-serif;
  color: var(--beige);
  z-index: 80;
  transform: translateY(-100%);
  transition: transform .45s ease;
}

/* hidden 属性が付いている間は表示しない（JSが制御） */
.sp-nav[hidden] {
  display: block;
}

/* is-open が付いたら下に降りてくる */
.sp-nav.is-open {
  transform: translateY(0);
}

.sp-nav__header{
  display:flex;
  justify-content:flex-end;
  align-items:center;
  padding: 25px;
}

.sp-nav__header > img {
  display: none;
}

.sp-nav__list{
  list-style:none;
  margin:0;
  padding: 40px 20px;
  display:grid;
  gap: 30px;
  font-weight:700;
  font-size:2.0rem;
}

.sp-nav__list a{
  color:var(--beige);
  text-decoration: none;
}
.sp-nav__list a:hover{
  color: var(--pink-dark);
  text-decoration: underline currentColor 0.5px;
  text-underline-offset: 0.5em;
}
 
/* ========================
   SP 共通（〜768px）
========================= */
@media (max-width: 768px) {
  /* ----------
     Header
  ---------- */

  .header {
    padding: 25px 25px;
  }
  
  .logo__icon {
    margin-right: auto;
  }

  .logo__icon img {
    height: 26px;
    width: auto;
  }

   .contact__icon {
    margin-left: auto;
    margin-right: 12px;
    display: flex;
    align-items: center;
  }

  .contact__icon svg,
  .contact__icon img {
    height: 19px;
    width: auto;
  }

  .container {
    padding-inline: 25px;
  }
} /* SP 768px */

/* ========================
  CONTACT セクション
========================= */
.contact-hero {
  position: relative;
  z-index: 0;       
  background: var(--pink-dark);
  color: var(--beige);
  text-align: center;
  margin-top: -250px;
  padding-top: 80px;
}

.contact-hero__inner {
  padding: 160px 20px 180px;
}

/* CONTACT 見出し */
.contact-hero__title {
  font-family: "Sansation", sans-serif;
  font-size: 12.8rem;
  font-weight: 700;
  margin: 0 0 40px;
}

.contact-hero__lead {
  font-size: 2.0rem;
  color: #000;
  font-weight: 400;
  margin-bottom: 62px;
}

.contact-hero__text {
  font-size: 1.8rem;
  margin-bottom: 78px;
}

.spBr {
  display: none;
}

.contact-hero__buttons {
  display: flex;
  justify-content: center;
  gap: 80px;
}

.btn-contact-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 345px;
  padding: 18px 30px;
  background: #FF97C0;
  color: #000;
  font-size: 1.8rem;
  line-height: 1;
  text-decoration: none;
  border: 0.5px solid #000;
  border-radius: 18px;
  transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

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

.btn-contact-main {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  min-width: 400px;
  padding: 20px 66px;
  border-radius: 999px;
  background: #111111;
  border: 2px solid #EAFF00;
  color: #EAFF00;
  text-decoration: none;
  font-size: 2.4rem;
  font-weight: 700;
  text-shadow: 0 0 8px rgba(234, 255, 0, .85);
  box-shadow: 0 0 8px rgba(234, 255, 0, .6), 0 0 22px rgba(234, 255, 0, .4), inset 0 0 12px rgba(234, 255, 0, .2);
  transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-contact-main__label {
  font-size: 2.4rem;
}

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

.btn-contact-main:hover {
  background: #EAFF00;
  color: #111111;
  border-color: #EAFF00;
  text-shadow: none;
  transform: translateY(-2px);
  box-shadow: 0 0 14px rgba(234, 255, 0, .95), 0 0 36px rgba(234, 255, 0, .5), inset 0 0 8px rgba(255, 255, 255, .35);
}

/* =======================================================
   SP CONTACT 1020px 以下（〜768px より上）のタブレット幅用調整
======================================================== */
@media (max-width: 1020px) and (min-width: 769px) {

  .contact-hero__buttons {
    gap: 40px;
  }

  .btn-contact-outline {
    min-width: 280px;
    padding: 16px 24px;
    font-size: 1.6rem;
  }

  .btn-contact-main {
    min-width: 320px;
    padding: 18px 40px;
    gap: 20px;
    font-size: 2.0rem;
    border-radius: 999px;
  }

  .btn-contact-main__label {
    font-size: 2.0rem;
  }

  .btn-contact-main__label::after {
    margin-left: 24px;
  }
}

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

  .contact-hero {
    margin-top: -100px;  
    padding-top: 80px;
  }

  .contact-hero__inner {
    padding: 50px 25px 80px; 
    text-align: center;
  }

  .contact-hero__title {
    font-size: 4.8rem;
    margin-bottom: 32px;
  }

  .contact-hero__lead {
    font-size: 1.3rem;
    color: #000;
    margin-bottom: 24px;
  }

  .contact-hero__text {
    font-size: 1.3rem;
    line-height: 2;
    margin-bottom: 40px;
  }

  .spBr {
    display: inline;
  }

  .btn-contact-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 230px;
    min-width: 0;
    margin: 0 auto;
    padding: 17px 24px;
    font-size: 1.3rem;
    border-radius: 8px;
  }

  .contact-hero__buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 42px;
  }

  .btn-contact-main {
    width: 100%;
    max-width: 325px;
    min-width: 0;
    gap: 20px;
    padding: 15px 24px;
    border-radius: 999px;
    font-size: 1.8rem;
  }

  .btn-contact-main__label {
    font-size: 1.8rem;
  }

  .btn-contact-main__label::after {
  margin-left: 24px;
  }

  .contact-hero__ink {
    height: 110px;
    background: url("../images/sp/ink05sp.webp") repeat-x center top / contain;
    background: auto 100%;
    margin-top: -1px;
  }
}

/* ========================
  Footer
========================= */

.footer {
  background: var(--ink);
  color: var(--beige);
}

.footer__inner {
  position: relative;
  padding: 110px 0 40px;
  text-align: center;
}

.footer-nav__list {
  display: flex;
  justify-content: center;
  gap: 109px;
  flex-wrap: wrap;
  list-style: none;
  margin: 0 0 140px;
  padding: 0;
}

.footer-nav__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "Sansation", sans-serif;
  font-size: 3.2rem;
  font-weight: 700;
  text-decoration: none;
  color: #EAFF00;
  text-shadow: 0 0 6px rgba(234, 255, 0, .85), 0 0 18px rgba(234, 255, 0, .5), 0 0 32px rgba(234, 255, 0, .35);
  transition: text-shadow .3s ease, transform .3s ease;
}

.footer-nav__link:hover {
  text-shadow: 0 0 8px rgba(234, 255, 0, .95), 0 0 24px rgba(234, 255, 0, .7), 0 0 48px rgba(234, 255, 0, .5);
  transform: scale(1.05);
}

/* SNSアイコンの並び */
.footer-sns {
  display: flex;
  justify-content: center;
  gap: 100px;
  list-style: none;
  margin: 0 0 52px;
  padding: 0;
}

.footer-sns__item svg {
  width: 51px;
  aspect-ratio: 1 / 1;
  height: auto;
}

.footer-sns svg {
  color: var(--beige);
  transition: color .3s ease;
}
.footer-sns a:hover svg {
  color: var(--pink-dark);
}

.footer-sns svg .sns-bg {
  fill: var(--ink);
}

.footer__brand {
  font-size: 2.24rem;
  margin: 0;
}

.footer__copy {
  font-size: 1.6rem;
  margin: 0;
}

.footer-top {
  position: fixed;
  right: 40px;
  bottom: 40px;
  z-index: 80;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: var(--beige);
  color: var(--ink);
  border: 1px solid var(--ink);
  text-decoration: none;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  line-height: 1;
  font-size: 2.2rem;
  gap: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  pointer-events: none;
  box-shadow: 0 6px 20px rgba(29, 35, 49, 0.18);
  transition: background 0.3s ease, transform 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
}

.footer-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.footer-top__arrow {
  font-size: 2.2rem;
}

.footer-top__label {
  font-size: 2.2rem;
}

.footer-top:hover {
  background: var(--pink-dark);
  color: var(--beige);
  transform: translateY(-2px);
}

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

  .footer__inner {
    padding: 60px 25px 42px;
    text-align: center;
  }

  .footer-nav__list {
    display: grid;
    grid-template-columns: repeat(3, auto); /* 3列 */
    justify-content: center;
    column-gap: 32px;
    row-gap: 12px;
    list-style: none;
    margin: 0 0 48px;
    padding: 0;
  }

  .footer-nav__item {
    justify-self: start;  /* 各カラムの左から揃える */
  }

  .footer-nav__link {
    font-size: 1.6rem;
    gap: 6px;
  }

  /* 1段目: ABOUT / GAMES / WORKS */
  .footer-nav__item:nth-child(1) { grid-column: 1; grid-row: 1; } /* ABOUT   */
  .footer-nav__item:nth-child(2) { grid-column: 2; grid-row: 1; } /* GAMES   */
  .footer-nav__item:nth-child(3) { grid-column: 3; grid-row: 1; } /* WORKS   */

  /* 2段目: SERVICE / PROMOTION（左をそろえる） */
  .footer-nav__item:nth-child(4) { grid-column: 1; grid-row: 2; } /* SERVICE    */
  .footer-nav__item:nth-child(5) { grid-column: 2; grid-row: 2; } /* PROMOTION  */

  .footer-sns {
    justify-content: center;
    gap: 40px;
    margin: 0 0 40px;
  }
  
  .footer-sns__item svg {
    width: 40px;
  }

  .footer__brand {
    font-size: 1.6rem;
    margin-bottom: 8px;
  }
  .footer__copy {
    font-size: 1.1rem;
  }

  .footer-top {
    right: 25px; 
    bottom: 42px;
    width: 53px;
    height: 53px;
    font-size: 1.4rem;
    gap: 4px;
  }

  .footer-top__arrow,
  .footer-top__label {
    font-size: 1.4rem;
  }
}

/* ===============================
  ページ内フローティングナビ（SERVICE / WORKS）
=============================== */
.floating-nav {
  position: fixed;
  top: 96px;
  /* 元メニュー（.container 内・左右padding20px）の左端に揃える */
  left: max(20px, calc((100vw - var(--container)) / 2 + 20px));
  z-index: 90;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(29, 35, 49, 0.55);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow: 0 6px 20px rgba(29, 35, 49, 0.18);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity .3s ease, transform .3s ease, visibility .3s ease;
  pointer-events: none;
}

.floating-nav.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.floating-nav__btn {
  display: inline-block;
  font-family: "Sansation", sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1;
  padding: 8px 14px;
  border-radius: 999px;
  border: none;
  background: rgba(252, 249, 243, 0.14);
  color: var(--beige);
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease;
}

.floating-nav__btn:hover {
  background: var(--beige);
  color: var(--ink);
}

.floating-nav__btn.is-active {
  background: var(--pink-dark);
  color: var(--beige);
}

/* スクロール先がヘッダー/フローティングナビに隠れないように */
#service-list,
#flow,
#faq {
  scroll-margin-top: 110px;
}

@media (max-width: 768px) {
  .floating-nav {
    top: 70px;
    left: 20px;
    right: 20px;
    gap: 12px;
    padding: 8px 10px;
    border-radius: 12px;
  }

  .floating-nav__btn {
    font-size: 1.1rem;
    padding: 6px 10px;
  }

  #service-list,
  #flow,
  #faq {
    scroll-margin-top: 80px;
  }
}

