/* 背景全体 */
body {
  margin: 0;
  font-family: "Hiragino Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: #ffffff;
  overflow-x: hidden;
}

/* アニメーションするグラデーション背景 */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(-45deg, #f4eadf, #4b4843, #5aa6b1, #4c463f);
  background-size: 400% 400%;
  animation: gradient 10s ease infinite;
  z-index: -2;
}

body::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("https://www.transparenttextures.com/patterns/noise.png");

  opacity: 0.1;
  z-index: -1;
  pointer-events: none;
}

/* グラデーションアニメーション */
@keyframes gradient {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* ▼ サイド固定ナビゲーション */
.sidebar {
  height: 0;
}

.global-navi {
  position: fixed;
  top: 0;
  left: 0;
  width: 140px;
  height: 100%;
  background: linear-gradient(180deg, #3b5961 0%, #5aa6b1 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 0;
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  font-family: "Helvetica Neue", sans-serif;
}

/* ロゴ */
.logo-area {
  text-align: center;
  margin-bottom: 40px;
}
.logo-area .logo-top,
.logo-area .logo-bottom {
  font-size: 14px;
  letter-spacing: 2px;
  font-weight: 600;
  color: #5aa6b1;
}
.logo-area hr {
  width: 40px;
  border: 0;
  border-top: 1px solid #52737c;
  margin: 8px auto;
  opacity: 0.6;
}

/* ナビゲーションリスト */
.list-navi {
  list-style: none;
  padding: 0;
  margin: 0;
}
.list-navi .item {
  margin: 60px 0;
}

/* ▼ 文字回転アニメーション */
.list-navi .link {
  display: inline-block;
  perspective: 600px;
  text-decoration: none;
}

.list-navi .link span {
  display: inline-block;
  position: relative;
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 1px;
  transition: transform 0.5s ease;
  transform-style: preserve-3d;
}

.list-navi .link span::before {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  transform: rotateX(90deg);
  transform-origin: bottom;
  color: #003d4d;
  backface-visibility: hidden;
}

.list-navi .link span::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  transform: rotateX(0deg);
  transform-origin: top;
  backface-visibility: hidden;
}

.list-navi .link:hover span {
  transform: rotateX(-90deg);
}

/* 縦書き */
.vertical-text-works1 {
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  z-index: 10;
  color: rgba(255, 255, 255, 0.4);
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-size: 280px;
  padding-top: 200px;
  margin: 0 15px;
  opacity: 0.5;
  pointer-events: none;
}

.grid {
  display: grid;
  grid-template-columns: repeat(6,1fr);
  grid-template-rows: repeat(5,max-content);
}


.detail {
  display: flex;
  gap: 70px;
}

.work-detail {
  margin-left: 140px;
  padding: 80px 40px;
  max-width: calc(100% - 140px);
  box-sizing: border-box;
  color: #f2f2f2;
  position: relative;
  padding-top: 0px;
}

.work-detail h2 {
  font-size: 2rem;
  margin-bottom: 10px;
  font-weight: 700;
  grid-column: 1 / 4;
  grid-row: 2 / 3;
  order: 2;
  text-shadow: 2px 2px 2px rgba;
}

.work-detail .category {
  font-size: 0.95rem;
  color: #ffffff;
  margin-bottom: 20px;
  grid-row: 3 / 4;
}


.work-detail .detail {
  grid-column: 1 / 4;
  grid-row: 4 / 5;
  order: 3;
}

/* メタ情報（制作期間・使用ツール） */
.work-meta {
  /* display: flex; */
  gap: 40px;
  font-size: 14px;
  color: #f2f2f2;
}

.work-meta a {
  margin-bottom: 5px;
}
.work-meta p strong {
  font-weight: 600;
}

/* メインイメージ */
.work-image {
  text-align: center;
  grid-column: 3 / 7;
  grid-row: 1 / 6;
  order: 1;
  max-width: 100%;
  width: 100%;
  aspect-ratio: 16 / 9;
}
.work-image img {
  margin-top: 20px;
  border-radius: 8px;
  box-shadow: 12px 10px 1px 1px rgba(13, 58, 53, 0.1);
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.btn-more {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 20px;
  background: linear-gradient(135deg, #5aa6b1, #65c7c0);
  color: #f2f2f2;
  font-weight: bold;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.btn-more:hover {
  transform: translateY(-3px);
  background: linear-gradient(135deg, #5aa6b1, #4bb8b0);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

/* 詳細説明 */

.work-block {
  display: flex;
  align-items: flex-start;
  gap: 50px;
}

.work-block.reverse {
  flex-direction: row-reverse;
}

.block-image {
  flex: 0 0 240px;
}

.block-image img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
}

.work-text {
  flex: 1;
  max-width: 50%;
}

.work-text h3 {
  text-align: center;
  font-size: 18px;
  margin-bottom: 10px;
  font-weight: 600;
  color: #f2f2f2;
}

.work-text p {
  font-size: 14px;
  line-height: 1.8;
  color: #f2f2f2;
  background: linear-gradient(180deg, rgba(215, 241, 248, 0.5) 0%, rgba(136, 193, 202, -0.5) 100%);
  padding: 20px 60px;

}

/* 横並びの親コンテナ */
.color-section {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 40px;
  margin: 50px 0;
  margin-bottom: 180px;
}

/* 各ブロック */
.color-block {
  text-align: center;
  flex: 1;
}

/* 区切り線 */
.divider {
  width: 1px;
  background: #18797b;
}

/* 横並びのスウォッチ群 */
.swatch-row {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
}

.swatch {
  text-align: center;
}

.color-box {
  display: block;
  width: 60px;
  height: 60px;
  margin: 0 auto 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.font-color .color-box {
  border-radius: 50%;
}

.label {
  display: block;
  font-size: 14px;
  font-weight: bold;
  font-family: monospace;
}

@media screen and (max-width: 768px) {
  .work-block,
  .work-block.reverse {
    flex-direction: column;
  }

  .work-image {
    flex: none;
    width: 100%;
  }
}
.site-link {
  text-align: center;
  margin-top: 40px;
}
.site-link a {
  display: inline-block;
  padding: 20px 100px;
  border-radius: 6px;
  background: #24979d;
  color: #f2f2f2;
  font-size: 0.95rem;
  text-decoration: none;
}
.site-link a:hover {
  background: #1d787d;
}

/* All Works リンク */
.all-works-link {
  text-align: center;
  margin-top: 40px;
}
.all-works-link a {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 6px;
  background: #24979d;
  color: #fff;
  font-size: 0.95rem;
  text-decoration: none;
}

.all-works-link a:hover {
  background: #1d787d;
}

/* Contactセクション */
.contact {
  position: relative;
  width: 100vw;
  margin: 50px 0 0 0;
  left: 0;
  background: linear-gradient(317deg, #d0ecef, #236b73);
  color: #000;
  text-align: center;
  padding: 100px 20px;
  margin-top: 50px;
  opacity: 0.5;
  z-index: 0;
  box-sizing: border-box;
}

.contact-inner {
  margin-left: 140px; /* サイドバー分 */
  padding: 0 20px;
  box-sizing: border-box;
}

.contact h2 {
  font-size: 48px;
  margin-bottom: 30px;
}
.contact p {
  font-size: 18px;
}
.footer {
  font-size: 12px;
  margin-top: 20px;
}
/* ==============================
  ▼ 共通レスポンシブ設定（〜599px）
  ============================== */
@media (max-width: 599px) {
  html,
  body {
    width: 100%;
    overflow-x: hidden;
  }

  /* --- ナビゲーションリセット --- */
  .global-navi {
    position: fixed;
    top: 0;
    width: 100%;
    height: auto;
    padding: 20px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .logo-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0;
  }

  .logo-area .logo-top,
  .logo-area .logo-bottom {
    font-size: 12px;
    color: #fff;
  }

  .logo-area hr {
    display: none;
  }

  .hamburger {
    display: block;
    position: relative;
    width: 26px;
    height: 18px;
    cursor: pointer;
    margin-bottom: 10px;

    z-index: 2000;
  }

    .hamburger span {
    position: absolute;
    left: 0;
    width: 100%;
    height: 3px;
    background: #003d4d;
    border-radius: 3px;
    transition: all 0.3s ease;
  }
  .hamburger span:nth-child(1) {
    top: 0;
  }
  .hamburger span:nth-child(2) {
    top: 7px;
  }
  .hamburger span:nth-child(3) {
    bottom: 0;
  }

  /* 開閉アニメーション */
  .hamburger.active span:nth-child(1) {
    transform: rotate(45deg);
    top: 7px;
  }
  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }
  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg);
    bottom: 8px;
  }


  .list-navi {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: linear-gradient(-45deg, #f4eadf, #4b4843, #5aa6b1, #4c463f);

    background-size: 400% 400%;
    animation: menuGradient 8s ease infinite;
    z-index: 1500;
    transition: right 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .list-navi.active {
    right: 0;
  }

  /* --- メインコンテンツ：中央寄せの要 --- */
  .work-detail {
    margin-left: 0 !important;
    max-width: 100% !important;
    width: 100%;
    padding: 80px 0 40px !important;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  /* グリッドを解除 */
  .grid {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    width: 100% !important;
    gap: 0;
  }

  .work-image {
    order: 1 !important;
    width: 100% !important;
    margin: 0 0 30px 0 !important;
  }

  .work-image img {
    width: 100% !important;
    border-radius: 0 !important;
    margin-top: 25px;
    box-shadow: none !important;
  }

  /* タイトルを中央に */
  .work-detail h2 {
    order: 2 !important;
    width: 90% !important;
    text-align: center !important;
    font-size: 2.0rem !important;
    margin: 0 auto 10px !important;
    line-height: 1.4;
  }

  .category {
    order: 3 !important;
    width: 100%;
    text-align: center !important;
    margin-bottom: 30px !important;
  }

  .vertical-text-works1 {
    top: 150px;
    font-size: 80px;
    opacity: 0.15;
  }

  .detail {
    order: 4 !important;
    width: 90% !important;
    margin: 20px auto 40px !important;
    display: block !important;
    background: rgba(255, 255, 255, 0.08);
    padding: 30px 20px !important;
    border-radius: 10px;
    box-sizing: border-box;
  }

  .work-meta {
    text-align: left;
    border-left: 3px solid #fff;
    padding-left: 15px;
  }

  .site-link {
    text-align: center;
    margin-top: 25px;
  }

  /* 本文ブロックの整理 */
  .work-block, .work-block.reverse {
    flex-direction: column !important;
    width: 90% !important;
    margin: 0 auto 50px !important;
  }

  .work-text {
    max-width: 100% !important;
  }

  .work-text h3 {
    font-size: 1.5rem;
    text-align: center;
  }

  .work-text p {
    padding: 20px !important;
    font-size: 14px !important;
    text-align: justify;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 5px;
  }

  /* カラーセクション */
  .color-section {
    flex-direction: column !important;
    width: 90% !important;
    margin: 40px auto !important;
    gap: 30px !important;
  }

  .divider {
    width: 80% !important;
    height: 1px !important;
    margin: 0 auto;
  }

  .swatch-row {
    flex-direction: row !important; /* ここは横並びを維持してコンパクトに */
    flex-wrap: wrap;
    justify-content: center;
  }

  .contact-inner {
    margin-left: 0 !important;
    padding: 0 20px !important;
  }
}

