html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  color: #fff;
  font-family: 'Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN', sans-serif;
  overflow-x: hidden;
  overflow-y: auto; 
  min-height: 100vh;
  width: 100%;
  background: linear-gradient(135deg, #000000, #1a0b2e, #091a33, #000000);
  background-size: 400% 400%;
  animation: gradientBG 15s ease infinite;
  overflow-x: hidden;
  position: relative;
  width: 100%;
}

@media (max-width: 768px) { 
  html, body {
    overflow-x: hidden;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    position: relative;
  }
}

/* AdSence */

.ad-spacer {
    margin: 40px auto;
    text-align: center;
    max-width: 900px;
    min-height: 100px;
    background: transparent;
    overflow: hidden;
}

.ad-spacer::before {
    content: "スポンサーリンク";
    display: block;
    font-size: 10px;
    color: #bbb;
    margin-bottom: 5px;
}

/* -----------------------------------------
   opening animation
   ----------------------------------------- */
   
.opening-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    animation: fadeOutContainer 0.8s ease-in 2.5s forwards;
}

.opening-icon {
    position: relative;
    text-align: center;
    z-index: 10;
}

.icon-circle {
    width: 80px;
    height: 80px;
    border: 2px solid #fff;
    border-radius: 50%;
    margin: 0 auto 20px;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.8);
    animation: pulse 2s infinite alternate;
}

.opening-logo {
    font-size: 2.5rem;
    letter-spacing: 0.3em;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1.2s ease-out 0.5s forwards;
}

/* オープニングロゴが鼓動する定義 */
@keyframes pulse {
    from { transform: scale(1); opacity: 0.8; }
    to { transform: scale(1.1); opacity: 1; }
}

/* オープニングタイトルが下から浮き上がる定義 */
@keyframes fadeInUp {
  to { opacity: 1; transform: translateY(0); }
}

/* オープニング粒子が漂う定義 */
@keyframes float {
    0% { opacity: 0; transform: translate(0, 0); }
    50% { opacity: 0.7; transform: translate(20px, -30px); }
    100% { opacity: 0; transform: translate(40px, -60px); }
}

/* オープニングが消える定義 */
@keyframes fadeOutContainer {
  to { opacity: 0; visibility: hidden; }
}

/* ----- star animation ----- */

.particles {
    position: absolute;
    width: 100%;
    height: 100%;
}

.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: #fff;
    border-radius: 50%;
    filter: blur(1px);
    opacity: 0;
}

.particle:nth-child(1) { top: 30%; left: 20%; animation: float 4s infinite; }
.particle:nth-child(1)::before { top: 50px; left: 100px; animation: float 5s infinite 1s; }
.particle:nth-child(1)::after { top: -80px; left: 200px; animation: float 3s infinite 0.5s; }

.particle:nth-child(2) { top: 70%; left: 80%; animation: float 5s infinite 0.2s; }
.particle:nth-child(2)::before { top: -150px; left: -100px; animation: float 6s infinite 1.5s; }
.particle:nth-child(2)::after { top: 40px; left: -250px; animation: float 4s infinite 0.8s; }

.particle:nth-child(3) { top: 20%; left: 60%; animation: float 3.5s infinite 0.7s; }
.particle:nth-child(3)::before { top: 200px; left: 80px; animation: float 4.5s infinite 1.2s; }
.particle:nth-child(3)::after { top: 100px; left: -150px; animation: float 5.5s infinite 0.3s; }

.particle:nth-child(4) { top: 80%; left: 30%; animation: float 6s infinite 0.4s; }
.particle:nth-child(4)::before { top: -100px; left: 150px; animation: float 4s infinite 1.1s; }

.particle:nth-child(5) { top: 50%; left: 50%; animation: float 4s infinite 0.9s; }
.particle:nth-child(5)::before { top: 120px; left: -120px; animation: float 5s infinite 0.6s; }

/* -----------------------------------------
   hamburger menu
   ----------------------------------------- */

.hamburger-menu {
  position: fixed;
  top: 40px;
  right: 40px;
  width: 30px;
  height: 18px;
  z-index: 10005;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  /* --- fade-in up --- */
  opacity: 0; /* 最初は透明 */
  visibility: hidden; /* クリックもできない状態 */
  transform: translateY(-20px); /* 少し上にずらしておく */
  transition: all 0.5s ease; /* 0.5秒かけて変化させる */
}

@media (max-width: 768px) { 
  .hamburger-menu {
    right: 20px;
    left: auto;
    margin: 0;
  }
}

.hamburger-menu.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.hamburger-menu span {
  display: block;
  width: 100%;
  height: 1px;
  background-color: #fff;
  transition: all 0.3s ease;
}

.nav-menu {
  position: fixed;
  top: 0;
  right: -50%;
  width: 50%;
  height: 100vh;
  background: rgba(10, 10, 10, 0.55);
  backdrop-filter: blur(10px); 
  z-index: 1500;
  transition: right 0.6s cubic-bezier(0.25, 1, 0.5, 1);
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 768px) {
  .nav-menu {
    width: 100%;
    right: -100%;
  }
}

.top-section.nav-open .nav-menu {
  right: 0;
}

.top-section.nav-open .hamburger-menu span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.top-section.nav-open .hamburger-menu span:nth-child(2) {
  opacity: 0;
}

.top-section.nav-open .hamburger-menu span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.top-section.nav-open .nav-list li {
  opacity: 1;
  transform: translateX(0);
}

.nav-list {
  list-style: none;
  padding: 0;
  text-align: left;
}

.nav-list li {
  margin: 30px 0;
  opacity: 0;
  transform: translateX(20px);
  transition: 0.4s ease;
}

.nav-list a {
  color: #fff;
  text-decoration: none;
  font-size: 1.5rem;
  font-weight: 200;
  letter-spacing: 0.3em;
  transition: color 0.3s;
}

/* -----------------------------------------
   top
   ----------------------------------------- */

.top-section {
    position: relative;
    height: 100vh;
    overflow: hidden;
}


.top-visual {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    background-color: transparent;
}

.top-image {
    width: 100%;
    height: 100%;
    background-image: url('/img/sample/galaxy-top.webp');
    background-size: cover;
    background-position: center;
    animation: slowZoom 20s ease-out forwards;
}

@keyframes slowZoom {
  from { transform: scale(1); }
  to { transform: scale(1.1); }
}

.top-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
    text-align: center;
    width: 100%;
}

.main-title {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 200;
    color: #fff;
    margin: 0;
    line-height: 1;
    opacity: 0;
    filter: blur(10px);
    animation: cinemaReveal 2.5s ease-out 1.5s forwards;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.4);
}

@keyframes cinemaReveal {
    0% {
        opacity: 0;
        filter: blur(20px);
        letter-spacing: 1.5em;
        transform: scale(1.1);
    }
    100% {
        opacity: 1;
        filter: blur(0);
        letter-spacing: 0.3em;
        transform: scale(1);
    }
}

@keyframes slowZoom {
    0% { transform: scale(1); }
    100% { transform: scale(1.1); }
}

.sub-title {
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.8em;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 20px;
    opacity: 0;
    animation: fadeInSub 5s ease-out 3.0s forwards;
}

@keyframes fadeInSub {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* -----------------------------------------
   star animation
   ----------------------------------------- */
.top-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 50;
    pointer-events: none;
}

.star {
    position: absolute;
    width: 3px;
    height: 3px;
    background: #fff;
    border-radius: 50%;
    opacity: 0;
    box-shadow: 0 0 8px rgba(255, 255, 255, 1);
}

.star::before, .star::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: inherit;
    border-radius: inherit;
    box-shadow: inherit;
}

.star:nth-child(1) { top: 20%; left: 15%; animation: straightTwinkle 6s infinite; }
.star:nth-child(1)::before { top: 80px; left: 300px; animation: straightTwinkle 7s infinite 1s; }
.star:nth-child(1)::after { top: 200px; left: 500px; animation: straightTwinkle 8s infinite 2s; }

.star:nth-child(2) { top: 60%; left: 85%; animation: straightTwinkle 8s infinite 0.5s; }
.star:nth-child(2)::before { top: -250px; left: -200px; animation: straightTwinkle 9s infinite 2s; }
.star:nth-child(2)::after { top: 100px; left: -350px; animation: straightTwinkle 7s infinite 1.5s; }

.star:nth-child(3) { top: 75%; left: 35%; animation: straightTwinkle 7s infinite 1.5s; }
.star:nth-child(3)::before { top: -150px; left: 400px; animation: straightTwinkle 10s infinite 0.3s; }
.star:nth-child(3)::after { top: -300px; left: -250px; animation: straightTwinkle 8s infinite 1s; }

.star:nth-child(4) { top: 15%; left: 70%; animation: straightTwinkle 8s infinite 0.8s; }
.star:nth-child(4)::before { top: 150px; left: -450px; animation: straightTwinkle 6s infinite 1.2s; }
.star:nth-child(4)::after { top: 350px; left: -100px; animation: straightTwinkle 9s infinite 0.4s; }

.star:nth-child(5) { top: 85%; left: 10%; animation: straightTwinkle 9s infinite 1.2s; }
.star:nth-child(5)::before { top: -400px; left: 250px; animation: straightTwinkle 11s infinite 0.7s; }
.star:nth-child(5)::after { top: -100px; left: 600px; animation: straightTwinkle 7s infinite 1.8s; }

@keyframes straightTwinkle {
    0% { 
        opacity: 0; 
        transform: translateY(0) scale(1.0); 
    }
    50% { 
        opacity: 1; 
        transform: translateY(-30px) scale(1.0); 
    }
    100% { 
        opacity: 0; 
        transform: translateY(-60px) scale(1.0); 
    }
}

/* -----------------------------------------
   section-title fade-in up
   ----------------------------------------- */

.section-title {
  font-size: 2.5rem;
  font-weight: 200;
  letter-spacing: 0.5em;
  text-align: center;
  margin-bottom: 80px;
  position: relative;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.section-title.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* -----------------------------------------
   news
   ----------------------------------------- */

.news-section {
  position: relative;
  width: 100%;
  padding: 120px 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(5px);
  z-index: 20;
}

.news-inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 50px;
}

.news-list-main {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.news-list-main li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  transition: all 0.4s ease;
}

.news-list-main li:hover {
  background: rgba(255, 255, 255, 0.05);
}

.news-list-main a {
  display: flex;
  align-items: center;
  padding: 40px 15px;
  color: #fff;
  text-decoration: none;
  transition: all 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.news-list-main a:hover {
  background: rgba(255, 255, 255, 0.08);
  padding-left: 40px;
  letter-spacing: 0.1em;
}

.news-date {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  color: #888;
  width: 150px;
}

.news-category {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 4px 12px;
  margin-right: 30px;
  min-width: 90px;
  text-align: center;
  transition: all 0.4s ease;
  color: rgba(255, 255, 255, 0.7);
}

.news-list-main a:hover .news-category {
  border-color: #fff;
  color: #fff;
  background: transparent;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.news-list-main li:hover .news-category {
  border-color: #fff;
  background: #fff;
  color: #000;
}

.news-text {
  font-size: 1rem;
  font-weight: 300;
  letter-spacing: 0.05em;
  line-height: 1.6;
  flex: 1;
}

@media (max-width: 768px) {
  .news-list-main a {
    flex-direction: column;
    align-items: flex-start;
    padding: 30px 10px;
  }
  
  .date {
    margin-bottom: 10px;
  }
  
  .category {
    margin-bottom: 15px;
  }
}

.news-more {
  text-align: center;
  margin-top: 30px;
  transition: all 0.8s ease 0.4s;
}

.news-more .is-visible {
  opacity: 1;
  transform: translateY(0);
}

.btn-news-more {
  position: relative;
  display: inline-block;
  padding: 15px 60px;
  color: #fff;
  text-decoration: none;
  font-size: 0.8rem;
  letter-spacing: 0.3em;
  transition: all 0.3s;
}

.btn-news-more span {
  position: relative;
  z-index: 2;
}

.btn-news-more:hover {
  color: #fff;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

.btn-news-moreline {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 50px;
  height: 1px;
  background: rgba(255, 255, 255, 0.4);
  transform: translateX(-50%);
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.btn-news-more:hover .btn-news-moreline {
  width: 50%;
  background: #fff;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.6);
}

/* -----------------------------------------
   about
   ----------------------------------------- */

.about-section {
  position: relative;
  width: 100%;
  padding: 60px 0 120px;
  background: rgba(0, 0, 0, 0.2);
  z-index: 20;
}

.about-section::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background-image: url('/img/sample/galaxy-top.webp'); 
  background-size: cover;
  background-position: center;
  opacity: 0.05;
  z-index: 0;
  pointer-events: none;
}

.about-section-inner{
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 4%;
  width: 100%;
  box-sizing: border-box;
}

.about-flex {
  display: flex;
  align-items: center;
  gap: 80px;
}

@media (max-width: 768px) {
  .about-flex {
    flex-direction: column;
    gap: 50px;
  }
}

.about-image {
  flex: 1;
  max-width: 100%; 
}

@media (max-width: 768px) {
  .about-image {
    max-width: 100%;
    width: 90%;
  }
}

.about-image-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.about-image-wrapper img {
  width: 100%;
  height: auto;
  display: block;
  filter: grayscale(30%);
  transition: filter 0.6s ease; 
}

.about-image-wrapper:hover img {
  filter: grayscale(0%);
}

.about-text {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1.0s ease-out, transform 1.0s ease-out;
}

.about-text.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.about-name {
  font-size: 1.8rem;
  font-weight: 300;
  letter-spacing: 0.2em;
  margin-bottom: 30px;
  border-left: 2px solid #fff;
  padding-left: 20px;
}

.about-profile {
  font-size: 1rem;
  line-height: 2;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 40px;
}

.about-list {
  list-style: none;
  padding: 0;
}

.about-list li {
  margin-bottom: 15px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
}

.about-list li span {
  display: inline-block;
  width: 80px;
  color: #fff;
  font-weight: 500;
}

/* -----------------------------------------
   Profile
   ----------------------------------------- */

.profile-section-inner {
  max-width: 1200px;    /* 他のセクションと最大幅を合わせます */
  margin: 0 auto;       /* 中央に寄せます */
  padding: 0 4%;        /* スマホ時に左右に 4% の余白を作ります */
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .profile-section-inner {
    padding: 0 20px;    /* スマホ時は固定値（20pxなど）でも綺麗に見えます */
  }
}

.profile-banner {
  position: relative;
  width: 100%;
  line-height: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

@media (max-width: 768px) {
  .profile-banner {
    height: auto !important; /* 高さを固定せず中身に合わせる */
    min-height: 450px; /* 最低限必要な高さを確保 */
    display: flex;
    align-items: center;
  }
}

.profile-banner-img {
  width: 100%;
  height: auto;
  display: block;
  filter: brightness(0.6);
}

@media (max-width: 768px) {
  .profile-banner-img {
    position: absolute; /* 画像を背景扱いにする */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* 縦横比を維持して隙間なく埋める */
    z-index: 0;
  }
}

.profile-banner-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #fff;
  line-height: 1.5;
}

@media (max-width: 768px) {
  .profile-banner-overlay {
    position: relative; /* 画像の上に浮かせる */
    z-index: 1;
    padding: 40px 20px !important;
    width: 100%;
    text-align: center; /* スマホなら中央寄せが綺麗です */
    background: rgba(0, 0, 0, 0.3); /* 文字を読みやすくするための薄い膜 */
  }
}

.profile-banner-main-name {
  font-size: clamp(1.5rem, 5vw, 3.5rem);
  margin: 0;
  letter-spacing: 0.1em;
  text-shadow: 0 0 20px rgba(0,0,0,0.8);
}

.profile-banner-sub-name {
  font-size: 0.8rem;
  letter-spacing: 0.5em;
  color: rgba(255,255,255,0.7);
  margin-bottom: 20px;
}

.profile-banner-catch {
  font-size: 1.1rem;
  font-weight: bold;
  margin-bottom: 30px;
  background: linear-gradient(transparent 70%, rgba(101, 108, 209, 0.5) 70%); /* ピンクのライン */
  display: inline-block;
}

@media (max-width: 768px) {
  .profile-banner-catch {
    font-size: 15px;
  }
}

.profile-banner-spec {
  display: flex;
  gap: 30px;
  margin-bottom: 30px;
}

@media (max-width: 768px) {
  .profile-banner-spec {
    justify-content: center; /* スペック項目を中央に */
    gap: 45px;
  }
}

.profile-item {
  font-size: 0.9rem;
  border-bottom: 1px solid #fff;
  padding-bottom: 5px;
}

.profile-item span {
  font-size: 0.6rem;
  color: rgba(255,255,255,0.6);
  margin-right: 10px;
}

@media (max-width: 768px) {
  .profile-banner-btns {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
  }
}

.profile-btn-glass {
  display: inline-block;
  padding: 10px 30px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  text-decoration: none;
  font-size: 0.75rem;
  margin-right: 10px;
  transition: 0.3s;
}

.profile-btn-glass:hover {
  background: rgba(255, 255, 255, 0.3);
}

@media (max-width: 768px) {
  .profile-banner-btns .profile-btn-glass {
    width: 30%;
    margin: 0 !important;
  }
}

/* -----------------------------------------
   works-slider
   ----------------------------------------- */

.works-section {
  position: relative;
  padding: 100px 0;
  background-color: #131330;
  color: #fff;
  z-index: 1;
  opacity: 0;
  transform: translateY(50px);
  transition: all 1.2s ease;
}

@media (max-width: 768px) {
  .works-section {
    padding-top: 100px !important;    /* 上との間隔 */
    padding-bottom: 100px !important; /* 下との間隔 */
  }
}

.works-section-inner{
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 5%;
  width: 100%;
  box-sizing: border-box;
}

.works-section.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.works-section .section-title {
    margin-bottom: 30px !important;
}

.works-slider-container {
  width: 100%;
  height: 420px;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  margin-bottom: 45px;
}

@media (max-width: 768px) {
  .works-slider-container {
    width: 100% !important;
    height: auto !important;
    display: block !important;
    justify-content: center !important;
    overflow: hidden !important;
    left: 0 !important;
    transform: none !important;
  }
}

.works-slider {
  display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important; /* 起点を左に固定 */
    width: max-content !important;          /* 中身の合計幅を確保 */
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    will-change: transform;
}

@media (max-width: 768px) {
  .works-slider {
    display: flex !important;
    flex-wrap: nowrap !important; /* 絶対に折り返さない */
    width: max-content !important; /* 中身の合計幅を自動で確保 */
    padding: 0 !important;
    margin: 0 !important;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  }
}

.work-card {
  width: 250px;
  flex-shrink: 0;
  margin: 0 20px !important;
  opacity: 0.3;
  transition: all 0.5s ease;
}

@media (max-width: 768px) {
  .work-card {
    width: 80vw !important; /* 画面幅に対して適切なサイズに固定 */
    margin: 0 10px !important; /* 左右に均等な余白を持たせる */
    flex-shrink: 0 !important;
  }
}

.work-card.active {
  width: 600px;
  opacity: 1;
}

@media (max-width: 768px) {
  .work-card.active {
    width: 80vw !important; /* スマホではアクティブ時も幅を合わせる */
    transform: scale(1.0); /* サイズ変化を幅ではなくスケールで行うとズレにくい */
  }
}

.work-img-wrapper {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
  border: 1px solid rgba(255,255,255,0.1);
}

.work-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.works-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin-top: 50px;
  z-index: 100;
  pointer-events: auto;
  padding: 0 20px;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .works-nav {
    margin-top: 30px !important;
    gap: 10px !important;
    padding: 0 15px;
  }
}

.works-btn-glass {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  padding: 10px 30px;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  text-decoration: none;
}

@media (max-width: 768px) {
  .works-nav .works-btn-glass {
    padding: 8px 15px !important; /* ボタンを少し小さく */
    font-size: 0.7rem !important;
  }
}

.works-btn-glass:hover {
  background: #fff;
  color: #000;
  border-color: #fff;
}

.works-nav-dots {
  display: flex;
  align-items: center;
  padding: 30px;
  gap: 15px;
}

.works-dot {
  width: 5px;
  height: 5px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  background: transparent;
  transition: all 0.4s ease;
  cursor: pointer;
}

.works-dot.active {
  background: #ffffff;
  transform: scale(1.5);
  box-shadow: 0 0 10px #fff;
}

.works-view-all-container {
  text-align: center;
  margin-top: 60px;
}

/* -----------------------------------------
   footer
   ----------------------------------------- */

.footer {
  position: relative;
  background-color: #051222;
  padding: 100px 0 60px;
  overflow: hidden;
  color: #ffffff;
}

.footer::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('/img/sample/galaxy-aboutback.webp'); 
  background-size: cover;
  background-position: center bottom;
  opacity: 0.1;
  z-index: 0;
  pointer-events: none;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
  padding: 0 40px;
  display: flex;
  justify-content: center;
  grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
  gap: 40px;
}

@media (max-width: 768px) {
  .footer-inner {
   gap: 20px;
  }
}

.footer-brand {
  text-align: center;
}

@media (max-width: 768px) {
  .footer-logo {
    margin: 0 auto 30px;
  }
}

.footer-logo img {
  width: 150px;
}

.copyright {
  width: auto;
  font-size: 12px;
  color: #ffffff;
}

.footer-container {
    display: flex;
    gap: 90px;
    padding-left: 75px;
  }

@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    align-items: center;
    padding: 0 20px;
    gap: 40px;
  }
}

.footer-nav {
  width: 120px;
  text-align: center;
}

.footer-title {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: #ffffff;
}

.footer-list {
  list-style: none;
  padding: 0;
  text-align: center;
}

.footer-list li {
  margin-bottom: 12px;
}

.footer-list a {
  text-decoration: none;
  color: #ffffff;
  font-size: 14px;
  transition: opacity 0.3s;
}

.footer-list a:hover {
  opacity: 0.6;
}

/* -----------------------------------------
   top btn
   ----------------------------------------- */

.back-to-top {
  position: fixed;
  right: 30px;
  bottom: 30px;
  width: 50px;
  height: 50px;
  background: #00338d;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.3s;
  opacity: 0;
  visibility: hidden;
  z-index: 1000;
}

.back-to-top::after {
  content: "";
  position: absolute;
  top: 22px;
  width: 8px;
  height: 8px;
  border-top: 2px solid #fff;
  border-left: 2px solid #fff;
  transform: rotate(45deg);
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
}