/* --- 基本設定 & フォント --- */
:root {
    --font-title: 'Cinzel Decorative', serif;
    --font-text: 'Poppins', sans-serif;
    --color-text: #333;
    --color-bg: #fff;
    --color-accent: #a89e8d;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-text);
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    font-family: var(--font-title);
    font-size: 3rem;
    text-align: center;
    margin-bottom: 60px;
    letter-spacing: 2px;
}



/* --- ローディング --- */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-bg);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    transition: opacity 0.5s ease;
}
.loader-logo {
    font-family: var(--font-title);
    font-size: 2rem;
}

/* --- ヘッダー --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    background-color: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    transition: background-color 0.3s, box-shadow 0.3s, color 0.3s;
}
.header.scrolled {
    background-color: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
.header .logo, .header .nav-link {
    color: var(--color-text);
}
.logo {
    font-family: var(--font-title);
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.3s;
}
/* PCサイズでのみナビゲーションを表示（1001px以上） */
.global-nav {
    display: none;
}

@media (min-width: 1001px) {
    .global-nav {
        display: block;
    }
}

.global-nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
}
.nav-link {
    text-decoration: none;
    font-weight: 600;
    position: relative;
    padding-bottom: 5px;
    transition: color 0.3s;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-accent);
    transition: width 0.3s ease;
}
.nav-link:hover::after {
    width: 100%;
}

/* --- ヒーローセクション --- */
.hero {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -3;
}
.hero-bg-abstract {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url(p2-2829dda454.jpg) no-repeat center center/cover;
    z-index: -2;
    opacity: 0;
}
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    z-index: -1;
}
.hero-content {
    position: relative;
    z-index: 1;
}
.hero-title {
    font-family: var(--font-title);
    font-size: clamp(3rem, 10vw, 6rem);
    line-height: 1.2;
    font-weight: 700;
    color: #ffffff;
    opacity: 0.75;
    text-shadow: 0 2px 15px rgba(255, 255, 255, 0.5);
}
.hero-title .char {
    display: inline-block;
}

/* --- コンテンツセクション共通 --- */
.content-section {
    padding: 100px 0;
}

/* --- Aboutセクション --- */
.about-section {
    background-color: #fff;
}
.about-content {
    display: flex;
    gap: 50px;
    align-items: flex-start;
}
.about-image {
    flex: 0 0 300px;
    width: 300px;
}
.about-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.about-text {
    flex: 1;
}
.about-text h3 {
    font-family: var(--font-title);
    font-size: 1.5rem;
    margin-top: 20px;
    margin-bottom: 10px;
    padding-bottom: 5px;
    border-bottom: 2px solid var(--color-accent);
    display: inline-block;
}
.about-text h3:first-child {
    margin-top: 0;
}
.about-text p {
    margin-bottom: 15px;
}




/* --- Careerセクション --- */
.career-section {
    background-color: #f9f9f9;
}
.career-list {
    max-width: 800px;
    margin: 0 auto;
}
.career-item {
    background: #fff;
    padding: 25px 30px;
    margin-bottom: 20px;
    border-left: 5px solid var(--color-accent);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}
.career-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}
.career-item h4 {
    font-weight: 600;
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 10px;
}
.career-item p {
    font-size: 1.1rem;
    font-weight: 400;
    margin: 0 0 5px 0;
    line-height: 1.6;
}
.career-item p:last-child {
    margin-bottom: 0;
}

/* --- メディア（画像・動画） --- */
.career-image-container,
.video-container {
    margin-top: 20px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.career-image-container img {
    display: block;
    width: 100%;
    height: auto;
}
.video-container {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
}
.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}





/* --- demoreelセクション --- */
.demoreel-section {
    background-color: #f9f9f9;
}
.demoreel-list {
    max-width: 800px;
    margin: 0 auto;
}
.demoreel-item {
    background: #fff;
    padding: 25px 30px;
    margin-bottom: 20px;
    border-left: 5px solid var(--color-accent);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}
.demoreel-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}
.demoreel-item h4 {
    font-weight: 600;
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 10px;
}
.demoreel-item p {
    font-size: 1.1rem;
    font-weight: 400;
    margin: 0 0 5px 0;
    line-height: 1.6;
}
.demoreel-item p:last-child {
    margin-bottom: 0;
}

/* --- メディア（画像・動画） --- */
.demoreel-image-container,
.video-container {
    margin-top: 20px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.demoreel-image-container img {
    display: block;
    width: 100%;
    height: auto;
}
.video-container {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
}
.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}


/* 動画エリアを基準にする設定 */
.video-container {
    position: relative; /* ボタンを重ねるために必要 */
    cursor: pointer;    /* カーソルを指の形に */
}

/* YouTube風の再生ボタン */
.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* ど真ん中に配置 */
    width: 68px;
    height: 48px;
    background-color: rgba(33, 33, 33, 0.8); /* 背景色（半透明の黒） */
    border-radius: 12px; /* 角丸 */
    transition: all 0.3s;
    z-index: 10;
}

/* ボタンの中の三角形 */
.play-button::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 55%; /* 少し右寄りに調整 */
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 10px 0 10px 18px; /* 三角形のサイズ */
    border-color: transparent transparent transparent #fff; /* 白い三角 */
}

/* マウスを乗せた時にボタンを赤くする（お好みで） */
.video-container:hover .play-button {
    background-color: #f00;
}

/* 再生中はボタンを消すためのクラス */
.video-container.playing .play-button {
    display: none;
}









/* --- Worksセクション（完全エンドレス・クリック無効・2段構成） --- */
.works-section {
  padding: 100px 0;
  background-color: #fff;
  overflow: hidden;
}

.works-carousel {
  display: flex;
  flex-direction: column;
  gap: 24px;
  overflow: hidden;
  width: 100%;
}

/* トラック設定 */
.carousel-track {
  display: flex;
  width: max-content;
  gap: 20px;
  will-change: transform;
  pointer-events: none;
  user-select: none;
  touch-action: none;
}

/* 上段 */
.track-top {
  animation: scroll-left 40s linear infinite;
}

/* 下段 */
.track-bottom {
  animation: scroll-right 40s linear infinite;
  opacity: 0.9;
}

/* 作品カード */
.work-item {
  flex: 0 0 auto;
  width: 350px;
  margin: 0 15px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.work-item img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

/* 絶対に止まらないようにする */
.works-carousel:hover .carousel-track {
  animation-play-state: running !important;
}

/* アニメーション */
@keyframes scroll-left {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@keyframes scroll-right {
  from { transform: translateX(-50%); }
  to { transform: translateX(0); }
}

/* --- Contactセクション --- */
.contact-section {
    background-color: #f9f9f9;
    text-align: center;
}
.contact-message {
    font-size: 1.1rem;
    margin-bottom: 30px;
}
.contact-info p {
    margin-bottom: 10px;
}
.contact-info a {
    color: var(--color-accent);
    text-decoration: none;
    font-weight: 600;
    transition: opacity 0.3s;
}
.contact-info a:hover {
    opacity: 0.7;
}

/* --- フッター --- */
.footer {
    text-align: center;
    padding: 30px 20px;
    background-color: #333;
    color: #fff;
    font-size: 0.9rem;
}

/* --- レスポンシブ対応 --- */
/* 1000px以下でナビゲーションを非表示 */
@media (max-width: 1000px) {
  .header {
      padding: 15px 20px;
      justify-content: center;
  }
  .global-nav { 
    display: none !important; 
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    width: 0 !important;
    overflow: hidden !important;
  }
  .global-nav ul {
    display: none !important;
  }
  .global-nav li {
    display: none !important;
  }
}

@media (max-width: 768px) {
  .section-title {
      font-size: 2.5rem;
  }
  .header {
      padding: 15px 20px;
      justify-content: center;
  }

  .about-content {
      flex-direction: column;
      align-items: center;
  }
  .about-image {
      flex-basis: auto;
      width: 100%;
      max-width: 280px;
      margin-bottom: 30px;
  }

  .work-item {
      width: 280px;
  }
  .track-top, .track-bottom {
      animation-duration: 45s;
  }
  .career-item {
      padding: 20px;
  }
}





/* --- WORKセクションの画像を縮小（PC） --- */
.work-item img {
  transform: scale(0.8);   /* 約30%小さく */
  transform-origin: center;
}

/* --- スマホ表示時（さらに少し小さく） --- */
@media (max-width: 768px) {
  .work-item img {
    transform: scale(0.7);   /* 約40%小さく */
  }
}


