@charset "UTF-8";

:root {
  --main-color: #e74d32;
  --text-color: #383838;
  --sub-color: #efefef;
}

* {
  color: var(--text-color);
  list-style: none;
  cursor: none !important;
  font-family: fot-tsukuaoldmin-pr6n, sans-serif;
  font-weight: 300;
  font-style: normal;
}

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow: hidden; /* 全体スクロールを無効に */
}

/* カーソル -----------------------------------------*/
/* カスタムカーソルの黒丸 */
.custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 30px;
  height: 30px;
  background: var(--text-color);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  will-change: transform;
  opacity: 1;
  transition: transform 0.1s ease, opacity 1s ease;
}

/* リンク上に乗ったとき */
.custom-cursor.hover {
  transform: scale(1.5);
  background-color: var(--main-color);
}

/* クリック時の波紋エフェクト */
.ripple {
  position: fixed;
  width: 20px;
  height: 20px;
  background: rgba(56, 56, 56, 0.2);
  border-radius: 50%;
  transform: scale(0);
  animation: ripple-animation 0.6s ease-out;
  pointer-events: none;
  z-index: 9999;
}

@keyframes ripple-animation {
  to {
    transform: scale(10);
    opacity: 0;
  }
}

@media (pointer: fine) {
  * {
    cursor: none !important;
  }
}

/* ヘッダー -----------------------------------------*/
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 1.5rem; /* ヘッダーの高さ */
  background-color: var(--text-color);
  z-index: 1000;
}

/* ハンバーガーメニューを header の外、右下に表示 */
.hamburger {
  position: fixed;
  top: calc(1.5rem + 32px); /* ヘッダーの高さと同じ値を設定して“下”に置く */
  right: 30px; /* 右端から20px */
  width: 32px;
  height: 32px;
  z-index: 9999; /* ヘッダーより上に表示されるように */
  cursor: pointer;
}

.hamburger img {
  width: 100%;
  height: auto;
}

.hamburger.hide {
  display: none;
}

.menu-close {
  position: fixed;
  top: 60px; /* ヘッダーの下 */
  right: 30px;
  font-size: 3rem;
  color: var(--text-color);
  background: none;
  border: none;
  cursor: pointer;
  z-index: 9999;
  display: none; /* 最初は非表示！ */
}

/* メニューが開いてるときだけ表示 */
.mobile-menu.open + .menu-close {
  display: block;
}
.menu-close {
  display: none;
}

.menu-close.show {
  display: block;
}

/* メニューの初期状態 */
.mobile-menu {
  position: fixed;
  top: 60px; /* ヘッダー分下げる */
  right: 0;
  width: 30%; /* .right と同じ幅でぴったり重なる！ */
  height: calc(100vh - 60px);
  background-color: var(--sub-color);
  transform: translateX(100%); /* 最初は右に隠す */
  z-index: 2000; /* .right より上に表示するための z-index */
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  padding: 40px 20px;
  display: flex;
  justify-content: center; /* 横方向中央 */
  align-items: center; /* 縦方向中央 */
}

.mobile-menu.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}

@media (max-width: 768px) {
  .mobile-menu {
    width: 100%;
    height: 100vh;
    top: 0;
  }
}

.mobile-menu ul {
  text-align: center; /* テキストも中央に */
}

/* サブメニューのスタイル */
.submenu.always-show {
  display: block; /* ←常に表示 */
}

/* モバイルメニュー内のリスト全体 */
.mobile-menu ul {
  padding: 0;
  margin: 0;
  list-style: none;
}

.mobile-menu li {
  margin-bottom: 1rem; /* spacing */
}

/* メニューリンク（アイコン＋テキスト横並び） */
/* a と同じ見た目を span にも適用 */
.mobile-menu li > a,
.mobile-menu li > .menu-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  line-height: 1.8;
  text-decoration: none;
  color: var(--text-color);
  transition: opacity 0.2s ease;
  cursor: default; /* hover時にリンクっぽくならないように */
}

.mobile-menu li:hover,
.submenu li:hover {
  opacity: 0.7;
}

/* メニュー内のアイコン画像サイズ */
.mobile-menu li > a img,
.mobile-menu li > .menu-label img {
  width: 1rem;
  height: auto;
  display: block;
}

/* Works の下のサブメニュー */
.mobile-menu .submenu li {
  margin: 0.7rem 0;
  padding-left: 50px; /* インデント */
}

.mobile-menu .submenu li a {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-color);
  font-weight: normal;
}

/* ------------------------------------------------ */

.container {
  display: flex;
  min-height: 100vh;
  padding-top: 1.5rem;
}

.left {
  width: 70%; /* 任意の幅で調整可能 */
  height: calc(100vh - 1.5rem);
  overflow-y: scroll; /* 縦スクロールを有効に */
}

.top-left {
  background-color: var(--main-color);
}

.left-content {
  height: 100%;
  display: flex;
  justify-content: center; /* 横中央 */
  align-items: center; /* 縦中央 */
}

@keyframes noise-shake {
  0% {
    transform: translate(0, 0) rotate(0deg);
  }
  10% {
    transform: translate(-2px, 2px) rotate(-1deg);
  }
  20% {
    transform: translate(-1px, -1px) rotate(1deg);
  }
  30% {
    transform: translate(2px, 1px) rotate(0deg);
  }
  40% {
    transform: translate(1px, -2px) rotate(1deg);
  }
  50% {
    transform: translate(-1px, 2px) rotate(-1deg);
  }
  60% {
    transform: translate(-3px, 1px) rotate(0deg);
  }
  70% {
    transform: translate(2px, 1px) rotate(-1deg);
  }
  80% {
    transform: translate(-1px, -1px) rotate(1deg);
  }
  90% {
    transform: translate(2px, 2px) rotate(0deg);
  }
  100% {
    transform: translate(0, 0) rotate(-1deg);
  }
}

.main-logo img {
  width: 50rem;
}

.main-logo img.noise {
  width: 50rem;
  animation: noise-shake 0.5s linear;
}

.right {
  position: fixed;
  top: 0;
  right: 0;
  width: 30%;
  height: 100vh;
  background-color: #efefef;
  border-left: 1px solid #ccc;
  padding: 20px;
  box-sizing: border-box;
  text-align: center;

  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
}

/* 上部のテキストを中央寄せに */
.right-inner {
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1;
  padding-top: 2rem;
  padding-bottom: 2rem;
}

/* ロゴが下に固定される */
.sub-logo img {
  width: 20%;
  margin-bottom: 1rem;
}

/* 右のテキスト部分 */
.main-heading {
  font-size: 1.5rem; /* 見出し大きく */
  line-height: 1.5;
  margin-bottom: 40px; /* 下にスペース */
}

.lead-ja {
  font-size: 0.8rem; /* 日本語テキストのサイズ */
  line-height: 1.8;
  margin-bottom: 30px; /* 空行代わりのスペース */
}

.lead-en {
  font-size: 0.7rem; /* 英語テキストはやや小さめに */
  line-height: 1.6;
}

.contact-txt {
  font-size: 0.8rem;
  margin-top: 1rem;
}

/* 右側のアイコン */
.sns-icons {
  text-align: center; /* 中央寄せ */
  margin-top: 5rem; /* 適宜余白を調整 */
}

.sns-icons ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: inline-flex; /* 横並び＋中央寄せ */
  gap: 2rem; /* アイコン同士の間隔（お好みで） */
}

.sns-icons li {
  display: flex;
  align-items: center;
  justify-content: center;
}

.sns-icons img {
  width: 3rem; /* 統一サイズ */
  height: 3rem; /* アスペクト比維持のため両方指定が安心 */
  object-fit: contain;
}

.sns-icons img[alt*="INSTAGRAM"] {
  transform: scale(0.78); /* 少しだけ小さくする */
}
.sns-icons img[alt*="メール"] {
  transform: scale(0.85);
}

.sns-icons a:hover img {
  transform: scale(1.1);
  transition: transform 0.2s ease;
}
.sns-icons img[alt*="INSTAGRAM"]:hover {
  transform: scale(0.85);
}
.sns-icons img[alt*="メール"]:hover {
  transform: scale(0.85);
}

.sub-logo img {
  margin-top: auto;
  width: 20%;
  padding-top: 2rem;
}

/* フッター */
/* .copyright {
  display: flex;
  justify-content: end;
  font-size: 12px;
  background-color: var(--sub-color);
  color: rgba(56, 56, 56, 0.4);
} */

/* レスポンシブ --------------------------------------*/
@media (max-width: 768px) {
  /* .container の左右分割を縦並びにする */
  .container {
    flex-direction: column;
  }

  .left {
    width: 100%;
    height: auto;
    position: relative;
  }

  /* .right の固定解除（スマホでは全体スクロールに） */
  .right {
    width: 100%;
    position: relative;
    height: auto;
    padding: 3rem 1rem;
  }

  /* フォントサイズ・行間をスマホ向けに少し大きめに */
  .main-heading {
    font-size: 20px;
  }

  .lead-ja,
  .lead-en {
    font-size: 14px;
    line-height: 1.6;
  }

  /* メニュー（モバイル用）は画面全体に表示 */
  .mobile-menu {
    width: 100%;
    height: 100vh;
    top: 0;
    padding: 60px 20px;
  }

  .menu-close {
    top: 20px;
    right: 20px;
  }

  .hamburger {
    top: 20px;
    right: 20px;
  }

  /* カスタムカーソルはスマホでは非表示 */
  .custom-cursor {
    display: none;
  }

  body {
    cursor: auto !important;
  }

  /* アイコン */
  .sns-icons ul {
    gap: 3rem;
  }

  .sns-icons img {
    width: 2rem;
    height: 2rem;
  }

  /* 画像やロゴも最大幅に合わせてリサイズ */
  .main-logo img {
    width: 80%;
    max-width: 300px;
  }
}

/* タブレット用（768px～1023px） */
@media (min-width: 768px) and (max-width: 1023px) {
  .container {
    flex-direction: column;
  }

  .left {
    width: 100%;
    height: auto;
    position: relative;
  }

  /* .right の固定解除（スマホでは全体スクロールに） */
  .right {
    width: 100%;
    position: relative;
    height: auto;
    padding: 100px 0;
  }

  .main-logo img {
    width: 70%;
    max-width: 400px;
  }

  .main-heading {
    font-size: 20px;
    line-height: 1.5;
  }

  .lead-ja,
  .lead-en {
    font-size: 14px;
    line-height: 1.7;
  }

  .sns-icons img {
    width: 4rem;
    height: 4rem;
  }

  .mobile-menu {
    width: 100%;
    padding: 60px 30px;
  }

  .menu-close,
  .hamburger {
    top: 20px;
    right: 20px;
  }
}

@media (max-width: 1023px) {
  html,
  body {
    overflow: auto;
  }

  .hamburger {
    top: 40px; /* ヘッダーが 24px なら +8px */
    right: 20px;
  }

  .menu-close {
    top: 40px;
    right: 20px;
  }

  .container {
    height: auto;
  }

  .main-logo img {
    width: 80%;
    max-width: 300px;
    display: block; /* 忘れずに！インライン画像には必要 */
    margin: 0 auto; /* これで左右中央揃い！ */
  }

  .left {
    height: auto; /* 高さ固定せず */
    min-height: 100vh; /* でも最低でも画面の高さは確保！ */
    overflow-y: auto;
  }

  .left-content {
    min-height: 100vh; /* 中のロゴが中央に来るように */
    display: flex;
    justify-content: center;
    align-items: center;
  }
}

@media (max-width: 1023px) {
  .right {
    position: relative;
    width: 100%;
    height: auto;
    box-sizing: border-box;
    border-left: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }
}

/* ------------------------------------------------ */

/* Aboutページ Serviceページ */
/* 初期スタイル */
.about-left {
  position: relative;
  background-color: var(--sub-color);
  overflow: hidden;
  overflow-y: scroll;
}

.left-overlay {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 10;
  width: 100%;
  height: 100%;
  background-color: var(--main-color);
  display: flex;
  justify-content: center;
  align-items: center;
  animation: slideUp 1.5s ease-out forwards;
}

.left-overlay .main-logo img {
  width: 50rem;
  max-width: 80%;
}

.text-content {
  position: relative;
  z-index: 5;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1.2s ease-out 1.2s forwards;
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}

.text-content p {
  font-size: 16px;
  line-height: 1.8;
  word-break: keep-all;
  overflow-wrap: break-word;
  line-break: strict;
}

.sub-description p {
  font-size: 0.7rem !important;
  line-height: 1.5 !important;
  margin: 0 auto !important;
}

.sub-description-service {
  margin-bottom: 2rem;
}

.sub-description-br {
  margin-bottom: 0.5rem !important;
}

.about-photo-area {
  margin: 2rem auto;
}
.about-photo {
  width: 700px;
  border-radius: 35px;
}

@keyframes slideUp {
  to {
    transform: translateY(-100%);
  }
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

/* Aboutのコンテンツ装飾 */
.text-content {
  position: relative;
  z-index: 5;
  max-width: 720px;
  margin: 0 auto;
  padding: 4rem 2rem;
  text-align: center;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1.2s ease-out 1.2s forwards;

  /* 余白調整（オプション） */
  line-height: 1.8;
  font-size: 16px;
  color: var(--text-color);
  font-weight: 300;
}

.text-content h1 {
  font-size: 28px;
  font-weight: bold;
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
  color: var(--main-color);
}

.text-content h2 {
  font-size: 20px;
  font-weight: bold;
  margin: 2rem 0 1rem;
  position: relative;
  display: inline-block;
  color: var(--text-color);
}

.text-content h2::before {
  content: "▍";
  color: var(--main-color);
  margin-right: 0.5rem;
}

.text-content p {
  margin-bottom: 1.5rem;
  font-size: 16px;
  color: var(--text-color);
  line-height: 1.8;
  letter-spacing: 0.03em;

  word-break: break-word;
  overflow-wrap: break-word;
  line-break: strict;
  hyphens: auto;
}

br.pc-br {
  display: inline;
}

/* About レスポンシブ対応 */
@media (max-width: 768px) {
  br.pc-br {
    display: none !important;
    line-height: 0 !important;
    height: 0 !important;
    margin: 0 !important;
  }

  .text-content {
    font-size: 14px;
    line-height: 1.8;
    text-align: left;
    padding: 2rem 1rem;
    max-width: 95%;
    margin: 0 auto;
    word-break: break-word;
    letter-spacing: 0.03em;

    word-break: normal;
    line-break: auto;
    overflow-wrap: normal;
  }

  .sub-description {
    text-align: left;
  }

  .about-photo {
    width: 100%; /* 写真を画面幅いっぱいにする */
    max-width: 400px; /* オプション：最大幅を設定するとキレイ */
  }

  .text-content h1 {
    font-size: 22px;
  }

  .text-content h2 {
    font-size: 18px;
  }
}

/* works_photoページ --------------------------------*/
/* .left のスタイル（背景スクロールあり） */
.left.photo-left {
  position: relative;
  background-color: var(--sub-color);
  overflow: hidden;
  overflow-y: scroll;
}

/* 最初にかぶせる背景色 */
.photo-overlay {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 10;
  width: 100%;
  height: 100%;
  background-color: var(--main-color); /* オレンジ背景 */
  animation: slideUp 1.5s ease-out forwards;
}

/* 写真グリッド部分 */
.photo-grid {
  position: relative;
  z-index: 5;
  column-count: 3;
  column-gap: 2rem;
  padding: 4rem 3rem;

  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1.2s ease-out 1.2s forwards;
}

/* 個々の画像 */
.photo-grid img {
  width: 100%;
  margin-bottom: 2rem;
  display: block;
  break-inside: avoid;
  border-radius: 30px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease;
}

.photo-grid img:hover {
  transform: scale(1.05);
}

/* アニメーション */

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

/* レスポンシブ */
@media (max-width: 768px) {
  .photo-grid {
    column-count: 1;
    padding: 2rem 1rem;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .photo-grid {
    column-count: 2;
  }
}

/* works_videosページ ------------------------------ */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  padding: 4rem 2rem;
  max-width: 1280px;
  margin: 0 auto;
  animation: fadeInUp 1.2s ease-out 1s forwards;
  opacity: 0;
  transform: translateY(30px);
}

.video-item video {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 6px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
}

.video-item img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 15px;
  cursor: pointer;
  transition: transform 0.3s ease;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

.video-item img:hover {
  transform: scale(1.03);
}

.video-item video:hover {
  transform: scale(1.02);
}

.video-caption {
  margin-top: 0.8rem;
  font-size: 14px;
  color: var(--text-color);
  text-align: center;
  letter-spacing: 0.03em;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* レスポンシブ */
@media (max-width: 768px) {
  .video-grid {
    padding: 2rem 1rem;
    gap: 1.5rem;
  }

  .video-caption {
    font-size: 13px;
  }
}
