/*
Theme Name: TEK Create
Author: Shinya Komatsu
Description: TEK Create Original Portfolio Theme
Version: 1.0.0
*/

/* 全体コンテナ */
.top-works {
  background-color: #0d0d0d;
  color: #ffffff;
  padding: 120px 4vw;
  font-family: 'Helvetica Neue', Arial, sans-serif;
}

.top-works__inner {
  max-width: 1400px;
  margin: 0 auto;
}

.top-works__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 60px;
  border-bottom: 1px solid #333;
  padding-bottom: 20px;
}

.top-works__title {
  font-size: clamp(2rem, 5vw, 4.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0;
  line-height: 1;
}

.top-works__all-link {
  color: #aaa;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  transition: color 0.3s ease;
}

.top-works__all-link:hover {
  color: #fff;
}

/* グリッドレイアウト（2カラム基準・リズム感） */
.works-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 80px 40px;
}

.work-card {
  grid-column: span 6;
}

/* 偶数番目を少し下にずらして非対称リズムを作る（WIT COLLECTIVE風） */
@media (min-width: 768px) {
  .work-card:nth-child(even) {
    margin-top: 60px;
  }
}

@media (max-width: 767px) {
  .work-card {
    grid-column: span 12;
  }
}

.work-card__link {
  display: block;
  text-decoration: none;
  color: inherit;
}

/* メタ情報 */
.work-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  color: #888;
}

.work-card__year {
  font-family: monospace, sans-serif;
}

.work-card__tags {
  display: flex;
  gap: 10px;
}

.work-card__tag {
  background: #222;
  padding: 2px 8px;
  border-radius: 2px;
  font-size: 0.75rem;
}

/* ビジュアルラッパー（画像 + 動画プレビュー） */
.work-card__visual {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background-color: #1a1a1a;
  border-radius: 4px;
}

.work-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
}

.work-card__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

/* ホバー時の挙動 */
.work-card__link:hover .work-card__image {
  transform: scale(1.06);
}

.work-card__link:hover .work-card__video {
  opacity: 1;
}

/* タイトル & クライアント名 */
.work-card__content {
  margin-top: 18px;
}

.work-card__client {
  font-size: 0.8rem;
  color: #777;
  margin: 0 0 6px 0;
}

.work-card__item-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0;
  line-height: 1.4;
  transition: color 0.3s ease;
}

.work-card__link:hover .work-card__item-title {
  color: #ccc;
}

/* ==========================================
   ファーストビュー（HERO SECTION）
========================================== */
.hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background-color: #0d0d0d;
  color: #ffffff;
  padding: 120px 4vw 60px;
  box-sizing: border-box;
}

.hero__inner {
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  position: relative;
}

.hero__sub {
  font-size: 0.85rem;
  letter-spacing: 0.25em;
  color: #888;
  margin-bottom: 20px;
  font-weight: 600;
}

.hero__main-title {
  font-size: clamp(3.2rem, 9.5vw, 9rem);
  font-weight: 900;
  line-height: 0.92;
  letter-spacing: -0.04em;
  margin: 0 0 40px 0;
  text-transform: uppercase;
}

.hero__main-title span {
  display: block;
}

/* 日本語メッセージ */
.hero__statement {
  max-width: 600px;
  margin-top: 40px;
}

.hero__catch {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
  color: #fff;
}

.hero__desc {
  font-size: 0.95rem;
  line-height: 1.8;
  color: #999;
  letter-spacing: 0.03em;
  margin: 0;
}

/* スクロールインジケーター */
.hero__scroll {
  position: absolute;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.hero__scroll-text {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: #777;
  writing-mode: vertical-rl;
}

.hero__scroll-line {
  display: block;
  width: 1px;
  height: 60px;
  background-color: #333;
  position: relative;
  overflow: hidden;
}

/* 縦線の中を光が流れるようなアニメーション */
.hero__scroll-line::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #fff;
  animation: scrollDown 2s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}

@keyframes scrollDown {
  0% {
    transform: translateY(-100%);
  }
  50%, 100% {
    transform: translateY(100%);
  }
}

/* レスポンシブ用改行制御 */
.pc-only {
  display: inline;
}

@media (max-width: 767px) {
  .pc-only {
    display: none;
  }
  .hero__scroll {
    display: none; /* スマホではスクロールバーを非表示にしてスッキリ */
  }
}

/* ==========================================
   ヘッダー（HEADER）
========================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  display: flex;
  align-items: center;
  z-index: 100;
  background: rgba(13, 13, 13, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.3s ease;
}

.site-header__inner {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 4vw;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-header__logo {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: #ffffff;
  text-decoration: none;
  text-transform: uppercase;
}

.site-header__menu {
  display: flex;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-header__menu a {
  color: #cccccc;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  position: relative;
  transition: color 0.3s ease;
}

.site-header__menu a:hover {
  color: #ffffff;
}

/* ホバー時に下線がスッと伸びるアニメーション */
.site-header__menu a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background-color: #ffffff;
  transition: width 0.3s ease;
}

.site-header__menu a:hover::after {
  width: 100%;
}


/* ==========================================
   実績詳細ページ（WORK DETAIL）
========================================== */
.work-detail {
  background-color: #0d0d0d;
  color: #ffffff;
  padding: 140px 4vw 100px;
  min-height: 100vh;
}

.work-detail__inner {
  max-width: 1200px;
  margin: 0 auto;
}

/* ヘッダー */
.work-detail__header {
  margin-bottom: 50px;
}

.work-detail__meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.9rem;
  color: #888;
  margin-bottom: 16px;
}

.work-detail__year {
  font-family: monospace;
}

.work-detail__tags {
  display: flex;
  gap: 8px;
}

.work-detail__tag {
  background: #222;
  padding: 3px 10px;
  border-radius: 2px;
  font-size: 0.75rem;
}

.work-detail__title {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin: 0;
}

/* メディア表示エリア（YouTubeレスポンシブ埋め込み対応） */
.work-detail__media {
  margin-bottom: 70px;
  border-radius: 4px;
  overflow: hidden;
  background-color: #141414;
}

.work-detail__video-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
}

.work-detail__video-wrap iframe,
.work-detail__video-wrap video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.work-detail__image-wrap img {
  width: 100%;
  height: auto;
  display: block;
}

/* 詳細コンテンツグリッド（左：クレジット、右：本文） */
.work-detail__content-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 60px;
  margin-bottom: 90px;
}

@media (max-width: 860px) {
  .work-detail__content-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* クレジット情報リスト */
.work-detail__info-list {
  margin: 0;
  padding: 0;
  border-top: 1px solid #262626;
}

.work-detail__info-item {
  padding: 16px 0;
  border-bottom: 1px solid #262626;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.work-detail__info-item dt {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  color: #777;
  font-weight: 700;
}

.work-detail__info-item dd {
  margin: 0;
  font-size: 0.95rem;
  color: #eee;
  line-height: 1.6;
}

/* 本文エディタ */
.work-detail__body {
  font-size: 1.05rem;
  line-height: 2;
  color: #ccc;
}

.work-detail__body p {
  margin-bottom: 1.8em;
}

.work-detail__body img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  margin: 24px 0;
}

/* 下部ページ送りナビ */
.work-detail__nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 40px;
  border-top: 1px solid #222;
}

.work-detail__nav a {
  color: #888;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  transition: color 0.3s ease;
}

.work-detail__nav a:hover {
  color: #fff;
}


/* ==========================================
   実績一覧ページ（WORKS ARCHIVE）
========================================== */
.works-archive {
  background-color: #0d0d0d;
  color: #ffffff;
  padding: 140px 4vw 100px;
  min-height: 100vh;
}

.works-archive__inner {
  max-width: 1400px;
  margin: 0 auto;
}

.works-archive__header {
  margin-bottom: 40px;
  border-bottom: 1px solid #222;
  padding-bottom: 24px;
}

.works-archive__title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0;
  line-height: 1;
}

.works-archive__sub {
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  color: #666;
  margin-top: 10px;
}

/* フィルターボタン群 */
.works-filter {
  margin-bottom: 60px;
}

.works-filter__list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.works-filter__list a {
  display: inline-block;
  color: #888;
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  padding: 6px 16px;
  border-radius: 20px;
  border: 1px solid #262626;
  transition: all 0.3s ease;
}

.works-filter__list a:hover,
.works-filter__list a.is-active {
  color: #fff;
  border-color: #fff;
  background-color: rgba(255, 255, 255, 0.05);
}

/* ページネーション */
.works-pagination {
  margin-top: 80px;
  text-align: center;
}

.works-pagination .page-numbers {
  display: inline-block;
  padding: 8px 14px;
  margin: 0 4px;
  color: #888;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.works-pagination .page-numbers.current,
.works-pagination .page-numbers:hover {
  color: #fff;
}


/* ==========================================
   ABOUT 固定ページ（PAGE ABOUT）
========================================== */
.page-about {
  background-color: #0d0d0d;
  color: #ffffff;
  padding: 140px 4vw 120px;
  min-height: 100vh;
}

.page-about__inner {
  max-width: 1200px;
  margin: 0 auto;
}

/* ヘッダー */
.page-about__header {
  margin-bottom: 90px;
  border-bottom: 1px solid #222;
  padding-bottom: 30px;
}

.page-about__title {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0;
  line-height: 1;
}

.page-about__sub {
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  color: #666;
  margin-top: 14px;
}

/* 各セクション共通（左に見出しラベル、右に内容の2カラム構造） */
.about-section {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 40px;
  padding: 70px 0;
  border-bottom: 1px solid #1a1a1a;
}

@media (max-width: 860px) {
  .about-section {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 50px 0;
  }
}

.about-section__label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: #666;
  font-family: monospace;
}

/* 理念 */
.about-vision__catch {
  font-size: clamp(1.4rem, 2.5vw, 2.2rem);
  font-weight: 700;
  line-height: 1.5;
  margin: 0 0 30px 0;
  letter-spacing: 0.02em;
}

.about-vision__text p {
  font-size: 1rem;
  line-height: 2;
  color: #aaa;
  margin-bottom: 1.5em;
}

/* サービス */
.about-services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.about-service-card {
  background: #141414;
  padding: 32px 24px;
  border-radius: 4px;
  border: 1px solid #222;
}

.about-service-card__num {
  font-family: monospace;
  font-size: 0.85rem;
  color: #666;
  display: block;
  margin-bottom: 12px;
}

.about-service-card__title {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 14px 0;
  letter-spacing: 0.05em;
}

.about-service-card__desc {
  font-size: 0.88rem;
  line-height: 1.8;
  color: #888;
  margin: 0;
}

/* プロフィール */
.about-profile__name {
  font-size: 1.8rem;
  font-weight: 700;
  margin: 0 0 8px 0;
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.about-profile__en {
  font-size: 1rem;
  font-weight: 400;
  color: #666;
  font-family: 'Helvetica Neue', sans-serif;
}

.about-profile__title {
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  color: #888;
  margin: 0 0 24px 0;
}

.about-profile__bio p {
  font-size: 0.95rem;
  line-height: 2;
  color: #aaa;
  margin: 0;
}

/* 会社概要テーブル */
.about-outline__table {
  display: grid;
  grid-template-columns: 140px 1fr;
  row-gap: 20px;
  column-gap: 30px;
  margin: 0;
}

.about-outline__table dt {
  font-size: 0.85rem;
  color: #777;
  font-weight: 600;
}

.about-outline__table dd {
  margin: 0;
  font-size: 0.95rem;
  color: #ddd;
  line-height: 1.8;
}

@media (max-width: 600px) {
  .about-outline__table {
    grid-template-columns: 1fr;
    row-gap: 8px;
  }
  .about-outline__table dd {
    margin-bottom: 16px;
  }
}

/* ==========================================
   CONTACT セクション本体
========================================== */
.top-contact {
  background-color: #0d0d0d !important;
  color: #ffffff;
  padding: 140px 4vw 140px;
  border-top: 1px solid #1f1f1f;
  width: 100%;
  box-sizing: border-box;
}

.top-contact__inner {
  max-width: 800px;
  margin: 0 auto;
}

.top-contact__header {
  text-align: center;
  margin-bottom: 60px;
}

.top-contact__title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0;
  line-height: 1;
  color: #ffffff;
}

.top-contact__sub {
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  color: #666666;
  margin-top: 12px;
}

.top-contact__desc {
  font-size: 0.95rem;
  line-height: 1.8;
  color: #999999;
  margin: 24px auto 0;
}

/* ==========================================
   Contact Form 7 フォームデザイン
========================================== */
.top-contact__form {
  max-width: 600px;
  margin: 0 auto;
  text-align: left;
}

.top-contact__form form p {
  margin-bottom: 24px;
}

/* ラベル文字 */
.top-contact__form label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: #aaaaaa;
  margin-bottom: 8px;
}

/* 入力ボックス・テキストエリア共通 */
.top-contact__form input.wpcf7-text,
.top-contact__form input.wpcf7-email,
.top-contact__form textarea.wpcf7-textarea {
  width: 100%;
  background: #181818 !important;
  border: 1px solid #333333 !important;
  border-radius: 4px;
  color: #ffffff !important;
  padding: 16px;
  font-size: 0.95rem;
  box-sizing: border-box;
  outline: none;
  transition: all 0.3s ease;
  font-family: inherit;
}

/* 入力中のハイライト */
.top-contact__form input.wpcf7-text:focus,
.top-contact__form input.wpcf7-email:focus,
.top-contact__form textarea.wpcf7-textarea:focus {
  border-color: #ffffff !important;
  background: #202020 !important;
}

/* テキストエリア */
.top-contact__form textarea.wpcf7-textarea {
  height: 160px;
  resize: vertical;
}

/* 送信ボタン（中央配置の白ピル型ボタン） */
.top-contact__form input.wpcf7-submit {
  display: block !important;
  width: 240px !important;
  margin: 40px auto 0 !important;
  background: #ffffff !important;
  color: #0d0d0d !important;
  font-weight: 700 !important;
  font-size: 0.95rem !important;
  letter-spacing: 0.12em !important;
  padding: 16px 0 !important;
  border: none !important;
  border-radius: 40px !important;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
}

.top-contact__form input.wpcf7-submit:hover {
  background: #cccccc !important;
  transform: translateY(-2px);
}

/* 送信完了・エラーメッセージ */
.wpcf7-response-output {
  margin: 30px 0 0 !important;
  padding: 14px 20px !important;
  font-size: 0.85rem;
  border-radius: 4px;
  text-align: center;
}

.wpcf7 form.sent .wpcf7-response-output {
  border: 1px solid #4ade80 !important;
  color: #4ade80;
  background: rgba(74, 222, 128, 0.08);
}

.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.failed .wpcf7-response-output {
  border: 1px solid #f87171 !important;
  color: #f87171;
  background: rgba(248, 113, 113, 0.08);
}

.wpcf7-not-valid-tip {
  color: #f87171;
  font-size: 0.8rem;
  margin-top: 6px;
  display: block;
}

.wpcf7-spinner {
  display: block;
  margin: 12px auto 0 !important;
}


/* ==========================================
   CONTACT 固定ページ（PAGE CONTACT）
========================================== */
.page-contact {
  background-color: #0d0d0d;
  color: #ffffff;
  padding: 160px 4vw 140px;
  min-height: 100vh;
  box-sizing: border-box;
}

.page-contact__inner {
  max-width: 800px;
  margin: 0 auto;
}

.page-contact__header {
  text-align: center;
  margin-bottom: 70px;
  border-bottom: 1px solid #1f1f1f;
  padding-bottom: 40px;
}

.page-contact__title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0;
  line-height: 1;
}

.page-contact__sub {
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  color: #666666;
  margin-top: 14px;
}

.page-contact__desc {
  font-size: 0.95rem;
  line-height: 1.9;
  color: #999999;
  margin: 30px auto 0;
}


/* ==========================================
   スマホ用ハンバーガー & レスポンシブ調整
========================================== */

/* デフォルト（PC）ではスマホボタンと全画面メニューは隠す */
.sp-menu-btn,
.sp-nav-overlay {
  display: none;
}

/* 背面スクロール固定用クラス */
body.no-scroll {
  overflow: hidden;
}

/* 768px以下のモバイル画面設定 */
@media (max-width: 768px) {

  /* ヘッダー周り（左右パディングをしっかり確保） */
  .site-header {
    height: 60px;
  }

  .site-header__inner {
    padding: 0 20px !important; /* 左右に20pxの余白を強制確保 */
  }

  .pc-nav {
    display: none;
  }

  /* ハンバーガーボタンの位置調整 */
  .sp-menu-btn {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end; /* 右端揃えでスッキリ */
    gap: 6px;
    width: 36px;
    height: 36px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    margin: 0;
    z-index: 102;
  }

  .sp-menu-btn__line {
    display: block;
    width: 22px;
    height: 2px;
    background-color: #ffffff;
    transition: transform 0.3s ease, opacity 0.3s ease;
  }

  .sp-menu-btn.is-open .sp-menu-btn__line:nth-child(1) {
    transform: translateY(4px) rotate(45deg);
  }
  .sp-menu-btn.is-open .sp-menu-btn__line:nth-child(2) {
    transform: translateY(-4px) rotate(-45deg);
  }

  /* 全画面オーバーレイメニュー */
  .sp-nav-overlay {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #0d0d0d;
    z-index: 101;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
    align-items: center;
    justify-content: center;
  }

  .sp-nav-overlay.is-open {
    opacity: 1;
    visibility: visible;
  }

  .sp-nav-overlay__inner {
    text-align: center;
  }

  .sp-nav-overlay__menu {
    list-style: none;
    padding: 0;
    margin: 0 0 40px 0;
    display: flex;
    flex-direction: column;
    gap: 24px;
  }

  .sp-nav-overlay__menu a {
    color: #ffffff;
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-decoration: none;
  }

  .sp-nav-overlay__info {
    color: #555555;
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    line-height: 1.6;
  }

  /* ==========================================
     キービジュアルの上下余白をキュッと引き締める
  ========================================== */
  .hero {
    min-height: auto !important; /* 100vhの無理な引き伸ばしを解除 */
    padding: 90px 20px 50px !important; /* 上ヘッダー分+90px、下50pxでコンパクトに */
  }

  .hero__sub {
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    margin-bottom: 12px;
  }

  .hero__main-title {
    font-size: clamp(2.4rem, 11vw, 3.4rem) !important;
    line-height: 0.95;
    margin-bottom: 24px !important;
  }

  .hero__statement {
    margin-top: 24px;
  }

  .hero__catch {
    font-size: 1.05rem;
    margin-bottom: 12px;
  }

  .hero__desc {
    font-size: 0.85rem;
    line-height: 1.75;
  }

  /* スクロール誘導の非表示（スマホはすっきり次セクションを見せる） */
  .hero__scroll {
    display: none !important;
  }

 /* ==========================================
     スマホ用：セクション余白・間隔の徹底圧縮
  ========================================== */
  /* WORKSセクション（トップ & アーカイブ） */
  .top-works,
  .works-archive {
    padding: 36px 20px 60px !important; /* 上の余白を36pxに圧縮 */
  }

  .top-works__header {
    margin-bottom: 24px !important; /* 見出し下の隙間を詰める */
    padding-bottom: 12px !important;
  }

  .works-grid {
    grid-template-columns: 1fr !important;
    gap: 28px !important;
  }

  /* CONTACTセクション（トップページ下部） */
  .top-contact {
    padding: 45px 20px 70px !important; /* 上を45pxにして間延びを解消 */
  }

  .top-contact__header {
    margin-bottom: 28px !important; /* 見出し〜フォーム間の余白を短縮 */
  }

  .top-contact__title {
    font-size: 2.2rem !important;
  }

  .top-contact__desc {
    margin: 14px auto 0 !important;
    font-size: 0.85rem !important;
  }

  .top-contact__form input.wpcf7-submit {
    width: 100% !important;
    max-width: 260px;
    margin-top: 24px !important;
  }

  /* 固定ページ（ABOUT, CONTACT独立ページ, WORKS詳細） */
  .page-about,
  .page-contact,
  .work-detail {
    padding: 80px 20px 50px !important;
  }

  .page-about__header,
  .page-contact__header,
  .work-detail__header {
    margin-bottom: 28px !important;
  }

/* ==========================================
   WORK詳細 ギャラリービューア（16:9完全固定版）
========================================== */
.work-detail .work-gallery {
  width: 100%;
  margin-bottom: 40px;
}

/* 16:9固定のメイン枠 */
.work-detail .work-gallery__main {
  position: relative !important;
  width: 100% !important;
  aspect-ratio: 16 / 9 !important;
  background-color: #000000;
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #222222;
}

/* メイン画像（16:9の枠内にきっちり収める） */
.work-detail .work-gallery__main img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block;
  transition: opacity 0.25s ease;
}

/* 左右ナビゲーション矢印ボタン（画像の上に重ねる） */
.work-detail .work-gallery__arrow {
  position: absolute !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: 48px !important;
  height: 48px !important;
  background-color: rgba(13, 13, 13, 0.65) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  border-radius: 50% !important;
  color: #ffffff !important;
  font-size: 1.4rem !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  z-index: 10 !important;
  transition: all 0.25s ease;
  backdrop-filter: blur(6px);
  padding: 0 !important;
  line-height: 1 !important;
}

.work-detail .work-gallery__arrow:hover {
  background-color: #ffffff !important;
  color: #0d0d0d !important;
  border-color: #ffffff !important;
}

.work-detail .work-gallery__arrow--prev {
  left: 20px !important;
}

.work-detail .work-gallery__arrow--next {
  right: 20px !important;
}

/* サムネイル一覧 */
.work-detail .work-gallery__thumbs {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 12px !important;
  margin-top: 16px !important;
}

.work-detail .work-gallery__thumb-item {
  width: 120px !important;
  aspect-ratio: 16 / 9 !important;
  padding: 0 !important;
  border: 2px solid transparent !important;
  border-radius: 4px !important;
  overflow: hidden !important;
  background: #141414 !important;
  cursor: pointer !important;
  opacity: 0.45 !important;
  transition: all 0.2s ease;
}

.work-detail .work-gallery__thumb-item img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
}

.work-detail .work-gallery__thumb-item:hover {
  opacity: 0.85 !important;
}

.work-detail .work-gallery__thumb-item.is-active {
  opacity: 1 !important;
  border-color: #ffffff !important;
}

/* スマホ対応 */
@media (max-width: 768px) {
  .work-detail .work-gallery__arrow {
    width: 38px !important;
    height: 38px !important;
    font-size: 1.1rem !important;
  }
  .work-detail .work-gallery__arrow--prev {
    left: 10px !important;
  }
  .work-detail .work-gallery__arrow--next {
    right: 10px !important;
  }
  .work-detail .work-gallery__thumb-item {
    width: calc(25% - 9px) !important;
  }
}