@charset "UTF-8";

/* ========================================
サイト全体の背景動画
======================================== */
.global-video-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
}

.global-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
}

.global-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.9);
  z-index: 1;
}

/* ========================================
全体の設定
======================================== */
body {
  margin: 0;
  padding: 0;
  font-family: "Zen Kaku Gothic New", "Lato", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: #333;
  background-color: transparent;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  max-width: 1440px;
  margin-inline: auto;
  padding-inline: 20px;
}

/* ========================================
セクションタイトル
======================================== */
.section-title {
  font-weight: 500;
  font-size: 1.75rem;
}

/* Workセクションのタイトル固定（PC のみ） */
@media (min-width: 721px) {
  #work .section-title {
    position: sticky;
    top: 32px;
    align-self: flex-start;
    z-index: 10;
  }
  #service .section-title {
    position: sticky;
    top: 32px;
    align-self: flex-start;
    z-index: 10;
  }
}

/* ========================================
ボタン（下線ver）
======================================== */
.btn a {
  position: relative;
  display: inline-block;
  padding: 10px 25px;
  color: #333;
  transition: color 0.3s ease;
  font-size: 18px;
  font-weight: 400;
  text-decoration: none;
}

/* 下線アニメーション */
.btn a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: #f78f64;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.btn a:hover {
  color: #f78f64;
}

.btn a:hover::after {
  transform: scaleX(1);
}

/* ========================================
ヘッダー
======================================== */
.site-header {
  position: relative;
  z-index: 50;
  width: 100%;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 32px 20px;
}

.nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.nav a {
  color: #333;
  text-decoration: none;
  transition: color 0.3s ease;
  position: relative;
}

.nav a:hover {
  color: #f78f64;
}

.brand {
  white-space: nowrap;
  font-weight: 400;
}

.brand__sub {
  font-size: 22px;
  letter-spacing: 0.15em;
}

.logo {
  white-space: nowrap;
}

.logo a {
  display: block;
  line-height: 1;
}

.logo img {
  height: 60px;
  width: auto;
  display: block;
}

.hamburger {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 8px;
  display: none;
  cursor: pointer;
  line-height: 1;
}

.hamburger__bar {
  display: block;
  width: 20px;
  height: 1px;
  margin: 8px 0;
  background: #333;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.mobile-nav {
  position: fixed;
  inset: 0 auto auto 0;
  width: 100%;
  height: 100vh;
  transform: translateY(-100%);
  transition: transform 0.3s ease;
  background: #fff;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  border-bottom: none;
  z-index: 40;
  overflow-y: auto;
}

.mobile-nav__close {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 8px;
  cursor: pointer;
  align-self: flex-end;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-nav__close-icon {
  position: relative;
  width: 20px;
  height: 20px;
}

.mobile-nav__close-icon::before,
.mobile-nav__close-icon::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 1px;
  background: #333;
  top: 50%;
  left: 0;
}

.mobile-nav__close-icon::before {
  transform: rotate(45deg);
}

.mobile-nav__close-icon::after {
  transform: rotate(-45deg);
}

.mobile-nav a {
  color: #333;
  text-decoration: none;
  padding: 12px 0;
  transition: opacity 0.25s ease;
  font-size: 18px;
  font-weight: 400;
  border-bottom: 1px dotted #999;
}

.mobile-nav a:last-of-type {
  border-bottom: none;
}

.mobile-nav a:hover {
  opacity: 0.7;
}


/* ハンバーガーメニュー開閉 */
.site-header.is-open .mobile-nav {
  transform: translateY(0);
}

.site-header.is-open .hamburger__bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.site-header.is-open .hamburger__bar:nth-child(2) {
  opacity: 0;
}

.site-header.is-open .hamburger__bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* レスポンシブ */
@media (min-width: 721px) {
  .hamburger,
  .mobile-nav {
    display: none;
  }
}

@media (max-width: 720px) {
  .site-header .container {
    flex-direction: column; /* 縦並びに */
    align-items: flex-start;
  }
  .nav {
    display: none;
  }
  .hamburger {
    display: block;
  }
  .brand {
    width: 100%;
    text-align: center; /* 中央寄せ */
  }
}

@media (max-width: 720px) {
  .site-header .container {
    flex-direction: column; /* 縦並びに */
    align-items: flex-start;
  }
  .nav {
    display: none;
  }
  .hamburger {
    display: block;
  }
  .brand {
    width: 100%;
    text-align: center; /* 中央寄せ */
  }
  
  /* ここから追加 */
  .logo img {
    height: 40px;
  }
  
  .site-header .container {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
  
  .hamburger {
    order: -1;
  }
  
  .logo {
    margin-left: auto;
  }
  /* ここまで追加 */
}


/* ========================================
FV（横いっぱい）
======================================== */
.fv {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.fv .container {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  position: relative;
  z-index: 2;
}

.fv img {
  width: 100%;
  height: 680px;
  object-fit: cover;
  object-position: bottom;
  display: block;
}

@media (max-width: 720px) {
  .fv img {
    height: 400px;
  }
}

/* ========================================
WORK
======================================== */
#work .container {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 80px;
  padding: 150px 20px;
}

#work .section-title {
  flex-shrink: 0;
  width: 200px;
}

#work .work-list {
  display: flex;
  flex-direction: column;
  gap: 100px;
  width: 900px;
  max-width: 100%;
  margin-left: auto;
  align-items: center;
}

#work .work-card {
  display: flex;
  align-items: flex-end;
  gap: 40px;
  width: 100%;
  justify-content: flex-end;
}

/* ========================================
WORK - サムネイル
======================================== */
#work .work-card__thumbnail {
  width: 450px;
  max-width: 45%;
  display: block;
  overflow: hidden;
  border-radius: 8px;
}

#work .work-card__thumbnail img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.5s ease;
}

#work .work-card__thumbnail:hover img {
  transform: scale(1.1);
}

#work .work-card__info {
  flex: 1;
}

#work .work-card__company {
  font-size: 1.15rem;
  font-weight: 500;
  margin: 0 0 4px;
}

.work-card__category {
  font-size: 0.85rem;
  color: #999;
  margin: 0 0 8px;
}

#work .info-link {
  width: 100%;
  padding: 8px 0;
  margin-top: 8px;
  border-bottom: 1px dotted #999;
}

#work .info-link__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-decoration: none;
  color: #333;
  font-size: 0.8rem;
  padding: 0 10px;
  transition: background-color 0.3s ease, color 0.3s ease;
  border-radius: 4px;
}

#work .info-link__text {
  letter-spacing: 0.08em;
}

#work .info-link__icon {
  font-size: 0.8rem;
  line-height: 1;
  transition: transform 0.3s ease;
}

#work .info-link:hover {
  background-color: #f1f1f1;
  color: #f78f64;
}

#work .info-link__inner:hover .info-link__icon {
  transform: translateX(4px);
}

#work .btn {
  text-align: center;
}

/* SP */
@media (max-width: 720px) {
  #work .container {
    flex-direction: column;
    gap: 30px;
  }
  #work .section-title {
    width: 100%;
    font-size: 2rem;
  }
  #work .work-list {
    width: 100%;
    margin-left: 0;
    gap: 60px;
  }
  #work .work-card {
    flex-direction: column;
    gap: 15px;
    align-items: flex-start;
  }
  #work .work-card__thumbnail {
    width: 100%;
    max-width: 100%;
  }
}

/* ========================================
SERVICE
======================================== */
#service .container {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 80px;
  padding: 0 20px 150px;
}

#service .section-title {
  flex-shrink: 0;
  width: 200px;
  margin-top: 0;
}

#service .service-list {
  flex: 1;
  max-width: 900px;
  margin-left: auto;
  display: flex;
  flex-direction: column;
  gap: 96px;
}

#service .service-item {
  display: flex;
  gap: 40px;
  align-items: stretch;
}

#service .service-thumb {
  flex-shrink: 0;
  width: 520px;
  max-width: 48%;
  margin: 0;
  height: 320px;
}

#service .service-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

#service .service-body {
  flex: 1;
  min-width: 0;
}

#service .service-title {
  font-size: 1.5rem;
  font-weight: 500;
  margin: 0 0 8px;
}

#service .service-lead {
  margin: 0 0 20px;
  line-height: 1.9;
}

#service .price-head {
  font-weight: 500;
  margin: 0 0 8px;
}

#service .price-list {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 24px;
  margin: 0 0 8px;
}

#service .price-list dt {
  font-weight: 500;
}

#service .price-list dd {
  margin: 0;
  white-space: nowrap;
}

#service .tax-note {
  font-size: 0.75rem;
}

#service .service-note {
  font-size: 0.75rem;
  color: #999;
  margin: 8px 0 0;
  line-height: 1.8;
}

/* SP */
@media (max-width: 720px) {
  #service .container {
    flex-direction: column;
    gap: 30px;
    padding: 60px 20px;
  }
  #service .section-title {
    width: 100%;
    font-size: 2rem;
  }
  #service .service-list {
    max-width: 100%;
    margin-left: 0;
    gap: 56px;
  }
  #service .service-item {
    flex-direction: column;
    gap: 16px;
  }
  #service .service-thumb {
    width: 100%;
    max-width: 100%;
    height: auto;
  }
  #service .service-thumb img {
    height: auto;
  }
  #service .tax-note {
    font-size: 0.7rem;
  }
  #service .service-note {
    font-size: 0.7rem;
  }
  #service .service-thumb {
    height: 210px;
  }
  
  #service .service-thumb img {
    height: 100%;
    object-fit: cover;
  }

  #service .service-title {
    font-size: 20px;
  }

  #service .service-lead {
    font-size: 14px;
  }
}

/* ========================================
CONTACT（背景画像あり）
======================================== */
.section-contact {
  background: url("../img/img04.webp") center center / cover no-repeat;
  padding: 150px 0;
  position: relative;
}

.contact-container {
  display: grid;
  grid-template-columns: 1.1fr 1.4fr;
  gap: 48px 64px;
  align-items: start;
  padding: 0 20px;
}

.section-contact .section-title {
  color: #fff;
  margin: 0 0 16px;
  font-weight: 700;
}

.contact-lead {
  color: #fff;
  line-height: 1.9;
  margin: 0 0 24px;
  font-size: 1.05rem;
}

.contact-illus {
  width: min(360px, 80%);
  height: auto;
  opacity: 0.9;
  margin-top: 16px;
}

.contact-form {
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(2px);
  border-radius: 14px;
  padding: 28px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
}

.contact-fieldset {
  border: 0;
  margin: 0 0 18px;
  padding: 0;
}

.contact-fieldset legend {
  font-weight: 500;
  margin-bottom: 10px;
  color: #333;
}

.check-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px 28px;
}

.check-grid label {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  user-select: none;
  color: #333;
  font-weight: 500;
  line-height: 1.6;
}

.check-grid input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border: 1.5px solid #bbb;
  border-radius: 6px;
  background: #fff;
  position: relative;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
  flex-shrink: 0;
}

.check-grid input[type="checkbox"]::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 14px;
  border-right: 3px solid #fff;
  border-bottom: 3px solid #fff;
  transform: translate(-50%, -60%) rotate(45deg) scale(0);
  transform-origin: center;
  transition: transform 0.12s ease;
}

.check-grid input[type="checkbox"]:checked {
  background: #999;
  border-color: #999;
}

.check-grid input[type="checkbox"]:checked::after {
  transform: translate(-50%, -60%) rotate(45deg) scale(1);
}

.check-grid input[type="checkbox"]:focus-visible {
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
  border-color: #999;
}

.check-grid label:hover input[type="checkbox"] {
  border-color: #999;
}

.form-row {
  display: grid;
  gap: 8px;
  margin: 14px 0;
}

.form-label {
  font-weight: 500;
  color: #333;
}

.req {
  color: #f78f64;
  font-weight: 400;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form textarea {
  width: 100%;
  font: inherit;
  padding: 12px 14px;
  border: 1px solid #bbb;
  border-radius: 10px;
  background: #fff;
  outline: 0;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #999;
  box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.08);
}

.contact-submit {
  width: 33%;
  /* padding: 14px 18px; */
  border: 0;
  border-radius: 12px;
  background: #f8c9a0;
  color: #fff;
  font-weight: 500;
  letter-spacing: 0.08em;
  cursor: pointer;
  margin: 40px auto 60px auto;
  display: block;
  text-align: center;
  overflow: hidden;
  position: relative;
  transition: color 0.4s ease;
  z-index: 1;
}

/* 円形の疑似要素 */
.contact-submit::after {
  background: linear-gradient(-135deg, #f78f64 0%, #f8c9a0 100%);
  border-radius: 50%;
  content: "";
  display: block;
  margin: auto;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  width: 100%;
  padding-top: 100%;
  height: 0;
  z-index: -1;
  transform: translateY(-50%) scale(0.1);
  transition: opacity 0.5s, transform 0s;
  transition-delay: 0s, 0.4s;
}

/* ホバー時 */
.contact-submit:hover {
  color: #fff;
}

.contact-submit:hover::after {
  opacity: 1;
  transform: translateY(-50%) scale(1.1);
  transition-delay: 0s;
  transition: opacity 0.8s, transform 0.6s ease-in-out;
}

/* クリック時 */
.contact-submit:active {
  transform: translateY(1px);
}

/* SP */
@media (max-width: 980px) {
  .contact-container {
    grid-template-columns: 1fr;
    gap: 0px;
  }
  .contact-illus {
    width: 220px;
  }
  .check-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .section-contact {
    padding: 56px 0 72px;
  }
  .contact-form {
    padding: 20px;
  }
  .contact-intro {
    padding: 0px;
  }
  .check-grid {
    grid-template-columns: 1fr;
  }
  .contact-submit {
    width: 100%;
    margin: 24px 0 40px;
  }
  .contact-lead {
    margin-bottom: 0px;
  }
}

/* ボタンの領域をラッパーと一致させる */
.contact-submit input {
  display: flex;
  align-items: center;
  justify-content: center;
  
  width:100%;
  padding: 14px 18px;
  background: none !important;
}

/* inputの下に自動でボタンを押したときのグルグルアニメーション要素が出るのでこれは非表示に */
.contact-submit .wpcf7-spinner {
  display: none !important;
}

/* ========================================
FOOTER
======================================== */
.site-footer {
  padding: 40px 0 60px;
  border-top: 1px solid #e5e7eb;
  text-align: center;
  color: #333;
  background: rgba(255, 255, 255, 0.9);
}

.footer-sns {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  margin-bottom: 16px;
}

.sns-link {
  display: block;
  transition: opacity 0.25s ease, transform 0.2s ease;
}

.sns-link img {
  display: block;
  object-fit: contain;
}

.sns-link:nth-child(1) {
  width: 28px;
  height: 28px;
}

.sns-link:nth-child(1) img {
  width: 100%;
  height: 100%;
}

.sns-link:nth-child(2) {
  width: 38px;
  height: 38px;
}

.sns-link:nth-child(2) img {
  width: 100%;
  height: 100%;
}

.sns-link:hover {
  opacity: 0.7;
  transform: translateY(-2px);
}

.copyright {
  display: block;
  margin-top: 12px;
  color: #999;
  font-size: 0.875rem;
}

/* ========================================
REVEAL ANIMATION
======================================== */
.reveal {
  opacity: 0;
  transform: translateY(12px);
  will-change: transform, opacity;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

/* ========================================
WORK（Worksページ用）
======================================== */
.works-title {
  text-align: center;
  margin: 68px 0 100px;
}

.filter-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 60px;
}

.filter-btn {
  appearance: none;
  border: 1.5px solid #ddd;
  background: #fff;
  color: #999;
  padding: 5px 28px;
  font-size: 0.95rem;
  font-weight: 500;
  font-family: inherit;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all 0.25s ease;
  border-radius: 30px;
}

.filter-btn:hover {
  border-color: #f78f64;
  color: #333;
  background: #fefdfb;
}

.filter-btn.active {
  background: #f78f64;
  border-color: #f78f64;
  color: #fff;
  font-weight: 500;
}

@media (max-width: 720px) {
  .works-title {
    margin-bottom: 30px;
    margin-top: 40px;
  }
}

/* ========================================
作品グリッド
======================================== */
.works-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 40px 32px;
  margin-bottom: 100px;
}

/* ========================================
作品カード
======================================== */
.work-item {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
}

.work-item.hidden {
  display: none;
}

.work-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.work-item__link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.work-item__thumbnail {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3/2;
  background: #f5f5f5;
}

.work-item__thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.work-item:hover .work-item__thumbnail img {
  transform: scale(1.08);
}

.work-item__content {
  padding: 24px;
}

.work-item__title {
  font-size: 1.25rem;
  font-weight: 500;
  color: #333;
  margin: 0 0 8px;
  line-height: 1.5;
}

.work-item__category {
  font-size: 0.85rem;
  color: #f78f64;
  font-weight: 500;
  margin: 0 0 12px;
  letter-spacing: 0.05em;
}

.work-item__description {
  font-size: 1.0625rem;
  color: #333;
  line-height: 1.8;
  margin: 16px 0 0;
}

/* ========================================
結果なしメッセージ
======================================== */
.no-results {
  text-align: center;
  padding: 80px 20px;
  color: #999;
  font-size: 1.1rem;
}

/* ========================================
ナビゲーションのアクティブ状態
======================================== */
.nav a.active {
  font-weight: 500;
  color: #f78f64;
}

/* ========================================
レスポンシブ（Worksページ）
======================================== */
@media (max-width: 720px) {
  .page-header {
    margin-bottom: 40px;
  }

  .page-title {
    font-size: 2rem;
  }

  .filter-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 5px;
    margin-bottom: 40px;
  }

  .filter-btn {
    padding: 8px 20px;
    font-size: 0.85rem;
    flex: 0 1 auto;
  }

  .works-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .work-item__content {
    padding: 20px;
  }

  .work-item__title {
    font-size: 1.15rem;
  }

  .work-item__description {
    font-size: 12px;
    margin: 12px 0 0;
  }
}

@media (max-width: 480px) {
  .page-title {
    font-size: 1.75rem;
  }

  .filter-btn {
    padding: 2px 8px;
    font-size: 12px;
  }
}


/* ========================================
さらにみるボタン
======================================== */
.load-more-container {
  width: 100%;
  margin: 60px 0 80px;
  display: grid;
  place-items: center;
}

.load-more-container .btn {
  width: fit-content;
}

.load-more-container.hidden {
  display: none;
}

/* 初期非表示の作品 */
.work-item.load-more-hidden {
  display: none;
}

@media (max-width: 720px) {
  .load-more-container {
    margin: 40px 0 60px;
  }
}

/* フィルタリングアニメーション用 */
.work-item {
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* ========================================
作品詳細ページ
======================================== */
/* メインビジュアル */
.work-detail__hero {
  width: 100%;
  max-width: 1000px;  /* 最大幅を追加 */
  margin: 0 auto 80px;  /* 中央寄せに変更 */
}

.work-detail__hero img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-height: 70vh;
  border-radius: 8px;  /* 角の丸み */
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);  /* 影も追加（ギャラリーと同じ） */
}


/* コンテンツエリア */
.work-detail__content {
  max-width: 1000px;
  margin: 0 auto;
}

/* プロジェクトヘッダー */
.work-detail__header {
  margin-bottom: 80px;
  padding-bottom: 40px;
  border-bottom: 1px solid #e5e7eb;
}

.work-detail__title {
  font-size: 2.5rem;
  font-weight: 500;
  margin: 0 0 40px;
  line-height: 1.4;
}

.work-detail__meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 13px;
}

.meta-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.meta-label {
  font-size: 0.85rem;
  color: #999;
  font-weight: 500;
  letter-spacing: 0.05em;
}

.meta-value {
  font-size: 1rem;
  color: #333;
}

.meta-link {
  color: #f78f64;
  text-decoration: none;
  font-weight: 500;
  transition: opacity 0.25s ease;
}

.meta-link:hover {
  opacity: 0.7;
}

/* プロジェクト説明 */
.work-detail__description {
  margin-bottom: 80px;
}

.description-title {
  font-size: 1.5rem;
  font-weight: 500;
  margin: 0 0 24px;
}

.work-detail__description p {
  line-height: 1.9;
  margin-bottom: 20px;
  color: #333;
}

.work-detail__description p:last-child {
  margin-bottom: 0;
}

/* ギャラリー */
.work-detail__gallery {
  display: flex;
  flex-direction: column;
  gap: 40px;
  margin-bottom: 80px;
}

.gallery-item {
  width: 100%;
}

.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

/* 使用技術 */
.work-detail__tech {
  margin-bottom: 80px;
}

.tech-title {
  font-size: 1.5rem;
  font-weight: 500;
  margin: 0 0 24px;
}

.tech-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.tech-list li {
  background: #f5f5f5;
  padding: 5px 20px;
  border-radius: 24px;
  font-size: 0.9rem;
  color: #999;
  font-weight: 500;
}

/* 作品ナビゲーション */
.work-nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 20px;
  padding: 60px 0;
  max-width: 1400px;
  margin: 0 auto;
}

.work-nav__item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-decoration: none;
  color: #333;
  transition: opacity 0.25s ease;
  padding: 20px;
}

.work-nav__item:hover {
  opacity: 0.7;
  background: #f5f5f5;
}

.work-nav__prev {
  text-align: left;
}

.work-nav__next {
  text-align: right;
}

.work-nav__back {
  align-items: center;
  justify-content: center;
  font-weight: 500;
  color: #f78f64;
}

.work-nav__label {
  font-size: 0.85rem;
  color: #999;
  font-weight: 500;
}

.work-nav__title {
  font-size: 1rem;
  font-weight: 400;
  color: #333;
}

/* レスポンシブ（作品詳細） */
@media (max-width: 720px) {
  .meta-item {
    gap: 0px;
  }
  .work-detail {
    padding-bottom: 0px;
  }

  .work-detail__hero {
    margin-bottom: 40px;
    padding: 0 20px; 
  }

  .work-detail__hero img {
    border-radius: 4px;
  }

  .work-detail__title {
    font-size: 20px;
    margin-bottom: 24px;
  }

  .work-detail__header {
    margin-bottom: 40px;
    padding-bottom: 24px;
  }

  .work-detail__meta {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .work-detail__description,
  .work-detail__gallery,
  .work-detail__tech {
    margin-bottom: 40px;
  }

  .description-title,
  .tech-title {
    font-size: 18px;
    margin-bottom: 10px;
  }

  .work-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    padding: 40px 0;
  }

  .work-nav__prev {
    flex: 1;
    order: 1;
    text-align: left;
  }

  .work-nav__next {
    flex: 1;
    order: 2;
    text-align: right;
  }

  .work-nav__back {
    flex: 100%;
    order: 3;
    width: 100%;
    text-align: center;
  }

  .work-nav__item {
    padding: 16px;
  }
}

/* SP */
@media (max-width: 720px) {
  #work .container {
    flex-direction: column;
    gap: 30px;
    padding: 60px 20px 0px;
  }
  #work .section-title {
    width: 100%;
    font-size: 2rem;
  }
  #work .work-list {
    width: 100%;
    margin-left: 0;
    gap: 40px;
  }
  #work .work-card {
    flex-direction: column;
    gap: 15px;
    align-items: flex-start;
  }
  #work .work-card__thumbnail {
    width: 100%;
    max-width: 100%;
  }
  
  /* ここから追加 */
  #work .work-card__info {
    width: 100%;
  }
  
  #work .info-link {
    width: 100%;
    padding: 8px 0;
    margin-top: 8px;
    box-sizing: border-box;
  }
  
  #work .info-link__inner {
    display: flex;
    width: 100%;
    box-sizing: border-box;
  }
  /* ここまで追加 */
}




/* ========================================
inview アニメーション
======================================== */
.inview {
  opacity: 0;
  transform: translateY(60px);
  transition: opacity 1.2s ease-out, transform 1.2s ease-out;
}

.inview.is-show {
  opacity: 1;
  transform: translateY(0);
}

/* ========================================
ページ遷移アニメーション（左から右にスライド）
======================================== */
/* ローディング背景 */
#loading-wrapper {
  position: fixed;
  inset: 0;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 1;
  visibility: visible;
  transition: none;
}

/* アニメーション完了後：左から右にスライドして消える */
#loading-wrapper.loaded {
  animation: slideOutRight 1s cubic-bezier(0.65, 0, 0.35, 1) forwards;
}

/* ローダー全体 */
#load {
  position: relative;
  width: 400px;
  height: 36px;
  user-select: none;
}

/* 各文字 */
#load div {
  position: absolute;
  width: 50px;
  height: 36px;
  opacity: 0;
  font-family: Helvetica, Arial, sans-serif;
  font-size: 32px;
  font-weight: 700;
  color: #FF7A00;
  text-align: center;
  transform: rotate(180deg);
  animation: move 2s linear infinite;
}

/* ずらし */
#load div:nth-child(2) { animation-delay: .2s; }
#load div:nth-child(3) { animation-delay: .4s; }
#load div:nth-child(4) { animation-delay: .6s; }
#load div:nth-child(5) { animation-delay: .8s; }
#load div:nth-child(6) { animation-delay: 1s; }
#load div:nth-child(7) { animation-delay: 1.2s; }

/* 文字のアニメーション */
@keyframes move {
  0% {
    left: 0;
    opacity: 0;
  }
  35% {
    left: 41%;
    transform: rotate(0deg);
    opacity: 1;
  }
  65% {
    left: 59%;
    transform: rotate(0deg);
    opacity: 1;
  }
  100% {
    left: 100%;
    transform: rotate(-180deg);
    opacity: 0;
  }
}

/* 左から右にスライドして消えるアニメーション */
@keyframes slideOutRight {
  0% {
    transform: translateX(0);
    opacity: 1;
  }
  100% {
    transform: translateX(100%);
    opacity: 1;
    visibility: hidden;
  }
}

/* 右から左にスライドして現れるアニメーション（リンククリック時用） */
@keyframes slideInLeft {
  0% {
    transform: translateX(100%);
    opacity: 1;
    visibility: visible;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

/* スマホ対応 */
@media (max-width: 720px) {
  #load {
    width: 280px;
    height: 28px;
  }
  #load div {
    width: 36px;
    height: 28px;
    font-size: 24px;
  }
}

/* ========================================
   Contact Form 7 カスタムスタイル
======================================== */

/* フォーム全体 */
.wpcf7-form {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Contact Form 7 のデフォルトスタイルをリセット */
.wpcf7-form p {
  margin: 0;
}

/* フィールドセット */
.wpcf7-form fieldset {
  border: 0;
  margin: 0 0 18px;
  padding: 0;
}

.wpcf7-form legend {
  font-weight: 500;
  margin-bottom: 10px;
  color: #333;
}

/* チェックボックスグリッド（Contact Form 7用） */
.wpcf7-checkbox {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 18px 28px !important;
}

.wpcf7-list-item {
  margin: 0 !important;
}

.wpcf7-list-item label {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  cursor: pointer !important;
  user-select: none !important;
  color: #333 !important;
  font-weight: 500 !important;
  line-height: 1.6 !important;
}

/* チェックボックスのスタイル */
.wpcf7-checkbox input[type="checkbox"] {
  appearance: none !important;
  -webkit-appearance: none !important;
  width: 22px !important;
  height: 22px !important;
  border: 1.5px solid #bbb !important;
  border-radius: 6px !important;
  background: #fff !important;
  position: relative !important;
  cursor: pointer !important;
  transition: border-color 0.15s ease, background-color 0.15s ease !important;
  flex-shrink: 0 !important;
  margin: 0 !important;
}

.wpcf7-checkbox input[type="checkbox"]::after {
  content: "" !important;
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  width: 8px !important;
  height: 14px !important;
  border-right: 3px solid #fff !important;
  border-bottom: 3px solid #fff !important;
  transform: translate(-50%, -60%) rotate(45deg) scale(0) !important;
  transform-origin: center !important;
  transition: transform 0.12s ease !important;
}

.wpcf7-checkbox input[type="checkbox"]:checked {
  background: #999 !important;
  border-color: #999 !important;
}

.wpcf7-checkbox input[type="checkbox"]:checked::after {
  transform: translate(-50%, -60%) rotate(45deg) scale(1) !important;
}

/* ラベル */
.wpcf7-form label.form-row {
  display: grid !important;
  gap: 8px !important;
  margin: 14px 0 !important;
}

.wpcf7-form label .form-label {
  font-weight: 500 !important;
  color: #333 !important;
}

/* 入力フィールド */
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form textarea {
  width: 100% !important;
  font: inherit !important;
  padding: 12px 14px !important;
  border: 1px solid #bbb !important;
  border-radius: 10px !important;
  background: #fff !important;
  outline: 0 !important;
  transition: box-shadow 0.2s ease, border-color 0.2s ease !important;
  box-sizing: border-box !important;
}

.wpcf7-form textarea {
  resize: vertical !important;
  min-height: 120px !important;
}

.wpcf7-form input:focus,
.wpcf7-form textarea:focus {
  border-color: #999 !important;
  box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.08) !important;
}

/* 送信ボタン */
/* .wpcf7-form input[type="submit"] {
  width: 33% !important;
  padding: 14px 18px !important;
  border: 0 !important;
  border-radius: 12px !important;
  background: #f8c9a0 !important;
  color: #fff !important;
  font-weight: 500 !important;
  letter-spacing: 0.08em !important;
  cursor: pointer !important;
  margin: 40px auto 60px auto !important;
  display: block !important;
  text-align: center !important;
  overflow: hidden !important;
  position: relative !important;
  transition: color 0.4s ease !important;
  z-index: 1 !important;
  font-family: inherit !important;
}

.wpcf7-form input[type="submit"]:hover {
  background: linear-gradient(-135deg, #f78f64 0%, #f8c9a0 100%) !important;
  color: #fff !important;
} */

/* エラーメッセージ */
.wpcf7-not-valid-tip {
  font-size: 0.85rem !important;
  color: #e74c3c !important;
  margin-top: 6px !important;
  display: block !important;
}

/* 入力エラー時のフィールド強調 */
.wpcf7-not-valid {
  border-color: #e74c3c !important;
  box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1) !important;
}

/* 送信成功メッセージ */
.wpcf7-response-output {
  margin: 20px 0 0 !important;
  padding: 16px !important;
  border-radius: 10px !important;
  font-size: 0.95rem !important;
  text-align: center !important;
  font-weight: 500 !important;
}

.wpcf7-mail-sent-ok {
  border: 1.5px solid #27ae60 !important;
  background: #d4edda !important;
  color: #155724 !important;
}

.wpcf7-validation-errors {
  border: 1.5px solid #e74c3c !important;
  background: #f8d7da !important;
  color: #721c24 !important;
}

/* レスポンシブ対応 */
@media (max-width: 980px) {
  .wpcf7-checkbox {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 560px) {
  .wpcf7-checkbox {
    grid-template-columns: 1fr !important;
    gap: 4px 0px !important;
    margin-top: 8px;
  }
  
  .wpcf7-form input[type="submit"] {
    width: 100% !important;

  }
}


