@charset "UTF-8";


/*
Theme Name: MK Design.
Description: MK Design.のテンプレートです
Version: 1.0
Author: MK Design.
*/

/* common */

html {
  font-size: 100%;
  /* ページ内リンク */
  scroll-behavior: smooth;
  scroll-padding-top: 80px;

}

body {
  color: #333;
  font-family: "Zen Kaku Gothic New", sans-serif;
  font-weight: 400;
}

img {
  max-width: 100%;
  vertical-align: bottom;
}

li {
  list-style: none;
}

a {
  color: #1f1f1f;
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  opacity: 0.7;
}

iframe {
  vertical-align: bottom;
}

.header-wrapper {
  max-width: 1200px;
  padding: 0 20px;
}

.wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.wrapper-960 {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px;
}

.section-title {
  font-family: "Cormorant Garamond", serif;
  font-size: 50px;
  text-align: left;
  margin-bottom: 40px;
  font-weight: 100;
}



/* header */
#header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 60px;
  font-family: "Cormorant Garamond", serif;
  background-color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  z-index: 10;
}


#header .logo a {
  display: block;
}

#header .logo img {
  width: 200px;
  height: auto;
}

#header .navi .menu {
  display: flex;
  align-items: center;
  font-size: 16px;
}

#header .navi .menu .header-btn a {
  background-color: #000;
  border: 1px solid #fff;
  border-radius: 30px;
  color: #fff;
  padding: 8px 40px;
  display: block;
  letter-spacing: 0.1em;
}

#header .navi .menu>li {
  margin-left: 40px;
}

/* =========================
  Hamburger (like image)
========================= */
#header {
  position: fixed;
  z-index: 1000;
}

.hamburger {
  width: 56px;
  height: 56px;
  position: absolute;
  top: 12px;
  /* 好みで調整OK */
  right: 12px;
  /* 好みで調整OK */
  cursor: pointer;
  z-index: 2000;
}

.hamburger span {
  position: absolute;
  height: 1px;
  background: #000;
  /* 黒 */
  border-radius: 999px;
  transition: transform .35s ease, top .35s ease, width .35s ease, opacity .2s ease;
}

/* 上：長め（左寄り） */
.hamburger span:nth-child(1) {
  width: 34px;
  top: 18px;
  left: 10px;
}

/* 下：短め（右寄り） */
.hamburger span:nth-child(2) {
  width: 22px;
  top: 30px;
  right: 12px;
}

/* open時：× */
#header.is-open .hamburger span:nth-child(1) {
  top: 24px;
  left: 10px;
  width: 34px;
  transform: rotate(45deg);
}

#header.is-open .hamburger span:nth-child(2) {
  top: 24px;
  right: 12px;
  width: 34px;
  /* ×のときは同じ長さにして綺麗に */
  transform: rotate(-45deg);
}

/* =========================
  Drawer Menu + Mask
========================= */
/* ===== Drawer Nav（背景：黒、文字：白） ===== */
.navi {
  position: fixed;
  top: 0;
  right: 0;
  width: min(86vw, 420px);
  height: 100vh;
  background: #000;
  /* 背景黒 */
  transform: translateX(100%);
  transition: transform .4s ease;
  z-index: 1500;
  padding: 90px 28px 28px;
  overflow-y: auto;
}

#header.is-open .navi {
  transform: translateX(0);
}

/* メニューを縦並び（1列） */
.navi .menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  /* ここがポイント */
  flex-direction: column;
  /* 縦並び */
  gap: 18px;
  /* 行間 */
}

/* 文字を白に */
.navi .menu a {
  color: #fff;
  /* 文字白 */
  text-decoration: none;
  font-size: 18px;
  letter-spacing: 0.02em;
}

/* Instagramボタン（白枠・中は黒） */
.navi .menu .btn a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  border: 1px solid #fff;
  border-radius: 999px;
  color: #fff;
  font-size: 16px;
  background-color: #000;
  /* ← これを追加 */
}

/* マスク（好みで濃さ調整） */
.mask {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .55);
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s ease;
  z-index: 1200;
}

#header.is-open .mask {
  opacity: 1;
  pointer-events: auto;
}

#header.is-open .hamburger span {
  background: #fff;
}

/* mainvisual */
.mainvisual {
  position: relative;
  width: 100%;
  height: 60vh;
  overflow: hidden;
}

.mainvisual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .40);
  z-index: 1;
}

.mv-inner {
  z-index: 5;
}



/* 画像を完全に重ねる */
.mainvisual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  animation: mvFadeSlow 24s ease-in-out infinite;
}

/* 画像ごとの開始タイミング */
.mainvisual img:nth-child(1) {
  animation-delay: 0s;
}

.mainvisual img:nth-child(2) {
  animation-delay: 8s;
}

.mainvisual img:nth-child(3) {
  animation-delay: 16s;
}

/* 超ゆっくりフェード */
@keyframes mvFadeSlow {
  0% {
    opacity: 0;
  }

  15% {
    opacity: 1;
  }

  45% {
    opacity: 1;
  }

  60% {
    opacity: 0;
  }

  100% {
    opacity: 0;
  }
}

/* テキスト全体 */
.mv-text {
  position: absolute;
  top: -450px;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  /* 縦中央 */
  align-items: center;
  /* 横中央 */
  text-align: center;
  color: #fff;
  z-index: 5;
  padding: 0 20px;
}



/* タイトル */
.mv-title {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(36px, 6vw, 72px);
  font-weight: 500;
  letter-spacing: 0.08em;
  margin-bottom: 20px;
}

/* 説明文 */
.mv-description {
  font-size: clamp(14px, 2vw, 18px);
  line-height: 1.8;
  letter-spacing: 0.05em;
}

.mv-title {
  text-shadow:
    0 2px 6px rgba(0, 0, 0, .6),
    0 0 24px rgba(0, 0, 0, .45);
}

.mv-description {
  text-shadow:
    0 2px 6px rgba(0, 0, 0, .6);
}

.mv-text {
  opacity: 0;
  animation: textFade 3s ease forwards;
  animation-delay: 1s;
}

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

.scroll {
  position: relative;
  top: -150px;
  display: flex;
  justify-content: center;
  animation: swing 2s ease-in-out infinite;
}

@keyframes swing {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(10px);
  }
}

/* デフォルト：PC */
.br-sp {
  display: none;
}


#company {
  margin-top: 40px;
  margin-bottom: 120px;
  position: relative;
}

#company .flex {
  display: flex;
  align-items: center;
}

#company .flex .img {
  width: 65%;
}

#company .flex .img img {
  width: 100%;
  height: 500px;
  object-fit: cover;

}

#company .flex .text {
  width: 500px;
  padding: 5% 0 5% 5%;
  margin-left: -6%;
  background-color: #fff;
  position: absolute;
  right: 5%;
}

#company .flex .description {
  line-height: 1.8rem;
}



#company .flex .text .title {
  font-family: "Cormorant Garamond", serif;
  font-size: 24px;
  font-weight: 500;
  margin-bottom: 20px;
}

.br-sp {
  display: none;
}

.br-pc {
  display: inline;
}

/* 表示エリア */
.slider {
  width: 100%;
  overflow: hidden;
}

/* 横一列 */
.slider-track {
  display: flex;
  width: max-content;
  animation: scroll-left 90s linear infinite;
}

/* 各スライド */
.slide {
  flex: 0 0 auto;
  width: 260px;
  /* ★ 全画像の横幅を統一 */
  aspect-ratio: 4 / 3;
  /* ★ 高さも比率で揃える */
  margin-right: 20px;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 4px;
  /* 任意 */
}

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

  to {
    transform: translateX(-50%);
  }
}

.btn {
  display: block;
  max-width: 120px;
  font-size: 12px;
  background-color: #fff;
  padding: 10px 0;
  border: solid 1px #1f1f1f;
  text-align: center;
  position: relative;
  z-index: 10;
  margin: 0 auto;
  margin-top: 80px
}

.btn::before {
  content: "";
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  background-color: #1f1f1f;
  transform-origin: 100% 50%;
  transform: scaleX(0);
  transition: transform 0.3s ease;
  z-index: -10;
}

.btn:hover {
  color: #fff;
  opacity: 1;
}

.btn:hover::before {
  transform-origin: 0% 50%;
  transform: scaleX(1);
}

/* =========================
  Contact
========================= */
#contact {
  padding: 100px 0;
}


/* =========================
  Form
========================= */
#contact-form {
  max-width: 720px;
  margin: 0 auto;
}

.form-row {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 20px;
  padding: 20px 0;
}

.form-row label,
.form-row .label {
  font-size: 16px;
  letter-spacing: .05em;
}

/* input / textarea */
.contact-form input[type="text"],
.contact-form input[type="tel"],
.contact-form input[type="email"],
.contact-form textarea {
  width: 100%;
  font-size: 15px;
  padding: 12px 14px;
  border: 1px solid rgba(0, 0, 0, .2);
  background: #fff;
  outline: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #000;
}

/* checkbox */
.checkbox-group {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 24px;
}

.checkbox-group label {
  font-size: 16px;
  cursor: pointer;
}

.checkbox-group input {
  margin-right: 6px;
}

/* privacy */
.form-privacy {
  margin-top: 32px;
  font-size: 13px;
  text-align: center;
  /* ← 中央寄せ */
}


.form-privacy a {
  color: #000;
  text-decoration: underline;
}

/* submit */
.form-submit {
  margin-top: 40px;
  text-align: center;
}

#contact .btn {
  display: inline-block;
  /* block → inline-block */
  min-width: 140px;
  /* 横幅を広げる */
  font-size: 12px;
  letter-spacing: 0.1em;
  background-color: #fff;
  color: #1f1f1f;
  padding: 12px 0;
  /* 高さは少しだけ */
  border: 1px solid #1f1f1f;
  text-align: center;
  position: relative;
  z-index: 1;
  margin: 60px auto 120px;
  overflow: hidden;
  transition: color .3s ease;
}


/* 黒背景がスライドしてくる */
#contact .btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: #1f1f1f;
  transform-origin: 100% 50%;
  transform: scaleX(0);
  transition: transform .3s ease;
  z-index: -1;
}

#contact .btn:hover {
  color: #fff;
}

#contact .btn:hover::before {
  transform-origin: 0% 50%;
  transform: scaleX(1);
}


/* footer */

#footer {

  background-image: url(img/footer.png);
  padding: 40px 20px;
  text-align: center;
  color: #fff;
}

#footer .logo img {
  width: 180px;
  height: auto;
  margin-bottom: 20px;
}

.copyright p {
  font-size: 14px;
  letter-spacing: 0.05em;
}

/* works */
.page-header .page-title-area {
  width: 100%;
  max-width: 400px;
  height: 400px;
  display: flex;
  align-items: center;
  position: absolute;
  padding: 0 4%;
  position: absolute;
  top: 60px;
  left: 0;
  color: #fff;
  font-family: "Cormorant Garamond", serif;
  font-size: 24px;
  font-weight: 100;

}

.page-header .img img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

/* works 全体 */
#works {
  padding: 100px 0;
}

/* 画像リスト */
#works .item-img {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  /* ← 横4列 */
  gap: 24px;
  /* 画像間の余白 */
  list-style: none;
  padding: 0;
  margin: 0;
}

/* 各画像の枠 */
#works .item-img li {
  aspect-ratio: 4 / 3;
  /* ★ 全部同じ比率 */
  overflow: hidden;
}

/* 画像 */
#works .item-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* ★ トリミングして揃える */
  display: block;
}

/* モーダルウィンドウ */
/* ===== works画像 hover ===== */
#works .item-img img {
  cursor: pointer;
}

/* ===== modal ===== */
.modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 2000;
}

.modal.is-open {
  display: block;
}

/* 背景 */
.modal-bg {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .8);
}

/* 中身 */
.modal-content {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 90%;
  max-width: 900px;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-content img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* 閉じるボタン */
.modal-close {
  position: absolute;
  top: -40px;
  right: 0;
  font-size: 28px;
  color: #fff;
  background: none;
  border: none;
  cursor: pointer;
}

.modal-content {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 80vw;
  /* ← 全画像共通の横幅 */
  max-width: 900px;
  height: 80vh;
  /* ← 全画像共通の高さ */
  max-height: 600px;

  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-content img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  /* ← はみ出さず比率維持 */
  display: block;
}

.modal {
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
}

.modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

/* privacy-policy */
#privacy-policy {
  padding: 120px 0 100px;
  line-height: 1.8rem;
  text-align: center;
}

#privacy-policy .catchphrase {
  font-family: "Cormorant Garamond", serif;
  font-size: 28px;
  font-weight: 500;
  margin-bottom: 40px;
}

#privacy-policy .description {
  max-width: 800px;
  margin: 0 auto;
  font-size: 16px;
  text-align: left;
}

/* fade-in */
/* fade-in */
.fadein {
  opacity: 0;
  transform: translateY(80px);
  transition: opacity 1s ease, transform 1s ease;
}

.fadein.inview {
  opacity: 1;
  transform: translateY(0);
}

/* CF7が勝手に入れる余計な余白などを抑える */
.wpcf7 form { margin: 0; }

/* 既存CSSが当たるように保険（contact-form クラスが付かない場合にも効く） */
.wpcf7 .form-row {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 20px;
  padding: 20px 0;
}

.wpcf7 .form-row label,
.wpcf7 .form-row .label {
  font-size: 16px;
  letter-spacing: .05em;
}

/* input / textarea */
.wpcf7 input[type="text"],
.wpcf7 input[type="tel"],
.wpcf7 input[type="email"],
.wpcf7 textarea {
  width: 100%;
  font-size: 15px;
  padding: 12px 14px;
  border: 1px solid rgba(0, 0, 0, .2);
  background: #fff;
  outline: none;
}

.wpcf7 input:focus,
.wpcf7 textarea:focus { border-color: #000; }

/* checkbox */
.wpcf7 .checkbox-group{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 24px;
}

.wpcf7 .checkbox-group label{
  font-size: 16px;
  cursor: pointer;
}

/* プライバシー */
.wpcf7 .form-privacy{
  margin-top: 32px;
  font-size: 13px;
  text-align: center;
}

.wpcf7 .form-privacy a{
  color: #000;
  text-decoration: underline;
}

/* submit */
.wpcf7 .form-submit{
  margin-top: 40px;
  text-align: center;
}

/* CF7の送信ボタンは input[type=submit] になるので btn を当てる */
.wpcf7 input.btn{
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}

/* c7修正 */
.contact-form .wpcf7-form {
  max-width: 960px;
  margin: 0 auto;
}

.contact-form .form-row {
  display: flex;
  flex-direction: column;
  margin-bottom: 24px;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  font-size: 14px;
}

.contact-form .wpcf7-list-item {
  margin-right: 16px;
}

.contact-form input[type="submit"] {
  background: transparent;
  border: 1px solid #333;
  padding: 12px 40px;
  cursor: pointer;
}

/* =========================
  CONTACT (CF7) - 完全再現
========================= */
.contact-form--cf7 .wpcf7 form{
  margin: 0;
}

.contact-form--cf7 .form-row{
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 20px;
  padding: 20px 0;
  align-items: start;
}

.contact-form--cf7 .form-label{
  font-size: 16px;
  letter-spacing: .05em;
  line-height: 1.6;
  padding-top: 10px; /* 入力と高さを合わせる */
}

.contact-form--cf7 .form-field{
  width: 100%;
}

/* input / textarea */
.contact-form--cf7 input[type="text"],
.contact-form--cf7 input[type="email"],
.contact-form--cf7 input[type="tel"],
.contact-form--cf7 textarea{
  width: 100%;
  font-size: 15px;
  padding: 12px 14px;
  border: 1px solid rgba(0,0,0,.22);
  background: #fff;
  outline: none;
  border-radius: 0;
  box-shadow: none;
}

.contact-form--cf7 input:focus,
.contact-form--cf7 textarea:focus{
  border-color: #000;
}

/* checkbox 2列 */
.contact-form--cf7 .checkbox-group{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 24px;
  margin-top: 8px;
}

.contact-form--cf7 .checkbox-group .wpcf7-list-item{
  margin: 0;
}

.contact-form--cf7 .checkbox-group label{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  cursor: pointer;
}

/* privacy center */
.contact-form--cf7 .form-privacy{
  margin-top: 32px;
  font-size: 13px;
  text-align: center;
}

.contact-form--cf7 .form-privacy a{
  color: #000;
  text-decoration: underline;
}

/* submit center */
.contact-form--cf7 .form-submit{
  margin-top: 40px;
  text-align: center;
}

/* CF7 submit is input[type="submit"] */
.contact-form--cf7 input[type="submit"].btn{
  display: inline-block;
  min-width: 140px;
  font-size: 12px;
  letter-spacing: .1em;
  background: #fff;
  color: #1f1f1f;
  padding: 12px 0;
  border: 1px solid #1f1f1f;
  cursor: pointer;
  transition: color .3s ease;
}

/* hoverは既存の .btn 演出に寄せる（簡易） */
.contact-form--cf7 input[type="submit"].btn:hover{
  background: #1f1f1f;
  color: #fff;
}

/* エラーメッセージ（崩れ防止） */
.contact-form--cf7 .wpcf7-not-valid-tip{
  font-size: 12px;
  margin-top: 6px;
}

.contact-form--cf7 .wpcf7-response-output{
  margin: 24px 0 0;
  padding: 12px;
  font-size: 13px;
}

/* CF7 privacy row */
.form-privacy {
  margin-top: 32px;
  text-align: center;
}

.form-privacy .privacy-check {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.form-privacy .privacy-check input[type="checkbox"] {
  margin: 0;
  width: 16px;
  height: 16px;
}

.form-privacy .privacy-check a {
  text-decoration: underline;
}


/* SP */
@media (max-width: 768px){
  .contact-form--cf7 .form-row{
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .contact-form--cf7 .form-label{
    padding-top: 0;
  }
  .contact-form--cf7 .checkbox-group{
    grid-template-columns: 1fr;
  }
}

.btn {
  display: block;
  max-width: 120px;
  font-size: 12px;
  background-color: #fff;
  padding: 10px 0;
  border: solid 1px #1f1f1f;
  text-align: center;
  position: relative;
  z-index: 10;
  margin: 0 auto;
  margin-top: 80px;
  cursor: pointer;
}

.btn::before {
  content: "";
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  background-color: #1f1f1f;
  transform-origin: 100% 50%;
  transform: scaleX(0);
  transition: transform 0.3s ease;
  z-index: -10;
}

.btn:hover {
  color: #fff;
  opacity: 1;
}

.btn:hover::before {
  transform-origin: 0% 50%;
  transform: scaleX(1);
}


.wpcf7-submit {
  background: none;
  border: none;
  padding: 0;
}

/* CF7 submit（input）でも確実に効くホバー演出 */
#contact .wpcf7 input[type="submit"].btn{
  display: inline-block;
  max-width: 120px;
  width: 120px;
  font-size: 12px;
  padding: 10px 0;
  border: 1px solid #1f1f1f;
  background: #fff;
  color: #1f1f1f;
  text-align: center;
  margin: 0 auto;
  margin-top: 80px;
  cursor: pointer;

  /* ★ 擬似要素を使わず背景でスライド */
  background-image: linear-gradient(#1f1f1f, #1f1f1f);
  background-repeat: no-repeat;
  background-size: 0% 100%;
  background-position: right center;
  transition: background-size .3s ease, background-position .3s ease, color .3s ease;

  -webkit-appearance: none;
  appearance: none;
}

#contact .wpcf7 input[type="submit"].btn:hover{
  color: #fff;
  background-size: 100% 100%;
  background-position: left center;
  opacity: 1;
}

/* =========================
  Pagination
========================= */
.pagination {
  margin: 60px auto 0;
  text-align: center;
}

.pagination ul {
  display: inline-flex;       /* ← 横並び */
  align-items: center;
  gap: 12px;                  /* 数字の間隔 */
  padding: 0;
  margin: 0;
  list-style: none;
}

/* 各ページ番号 */
.pagination li {
  margin: 0;
}

/* リンク共通 */
.pagination a,
.pagination span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid #1f1f1f;
  font-size: 14px;
  color: #1f1f1f;
  text-decoration: none;
}

/* hover */
.pagination a:hover {
  background: #1f1f1f;
  color: #fff;
  opacity: 1;
}

/* 現在のページ */
.pagination .current {
  background: #1f1f1f;
  color: #fff;
}

















/* =========================
  SP
========================= */
@media (max-width: 768px) {
  .contact {
    padding: 80px 0;
  }

  .section-title {
    font-size: 32px;
    margin-bottom: 40px;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .checkbox-group {
    grid-template-columns: 1fr;
  }
}







/* SP */
@media(max-width:767px) {

  #header .logo img {
    width: 160px;
    height: auto;
    position: relative;
    left: -30px;
  }

  #company {
    margin-top: -40px;
  }

  .mv-text {
    position: absolute;
    top: -380px;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* 縦中央 */
    align-items: center;
    /* 横中央 */
    text-align: center;
    color: #fff;
    z-index: 5;
    padding: 0 20px;
  }

  .br-sp {
    display: inline;
  }

  .mv-description {
    line-height: 1.6;
  }

  .scroll img {
    width: 50px;
    position: relative;
    top: 40px;
  }

  @keyframes swing {

    0%,
    100% {
      transform: translateY(0);
    }

    50% {
      transform: translateY(10px);
    }
  }

  .section-title {
    font-size: 10vw;
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
    align-items: center;
  }

  #company {
    margin-bottom: 60px;
  }

  #company .flex {
    flex-direction: column;
    align-items: center;
  }

  #company .flex .img {
    width: 100%;
  }

  #company .flex .img img {
    height: auto;
    object-fit: cover;
  }

  #company .flex .text {
    position: static;
    width: 100%;
    margin: 0;
    padding: 20px 15px;
  }

  #company .flex .text .title {
    font-size: 24px;
    margin-bottom: 10px;
    font-weight: 500;
    margin-bottom: 20px
  }

  .br-sp {
    display: block;
  }

  #company .flex .text .description {
    font-size: 14px;
    line-height: 1.6rem;
  }

  .br-pc {
    display: none;
  }

  .form-submit .btn {
    margin-top: 20px;
  }

  #contact {
    margin-bottom: -160px;
  }

  #contact .form-privacy {
    margin-top: 10px;
  }

  #contact .btn {
    margin-top: -100px;
  }

  #footer .logo img {
    width: 140px;
    height: auto;
    margin-bottom: 10px;
  }

  #works {
    padding: 80px 20px;
  }

  #works .item-img {
    grid-template-columns: repeat(3, 1fr);
  }

  #works .item-img {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    /* SPは少し詰めるときれい */
  }

  .page-header .page-title-area {
    width: 100%;
    max-width: 200px;
    height: 200px;
    display: flex;
    align-items: center;
    position: absolute;
    padding: 0 4%;
    position: absolute;
    top: 40px;
    left: 0;
    color: #fff;
    font-family: "Cormorant Garamond", serif;
    font-size: 18px;
    font-weight: 100;

  }

  .page-header .img img {
    width: 100%;
    height: 200px;
    object-fit: cover;
  }

  #works {
    margin-top: -60px;
  }

  #privacy-policy {
    padding: 80px 20px 60px;
  }

    #privacy-policy .catchphrase {
    font-size: 20px;
    margin-bottom: 30px;
}
    #privacy-policy .description {
    font-size: 14px;
}
	
	/* =========================
   SP fix（本番崩れ対策）
========================= */
@media (max-width: 767px){

  /* メインビジュアルの高さを確保 */
  .mainvisual{
    height: 85vh;          /* 好みで 80〜100vh */
    min-height: 520px;     /* ここが効く：短く見えるのを防ぐ */
  }

  .mainvisual img{
    height: 100%;
  }

  /* テキストの位置が上に行きすぎていたらここで調整 */
  .mv-text{
    top: 0;                /* もし被るなら 0〜-200px で調整 */
  }
}

	@media (max-width: 767px){
  #contact{
    margin-top: -100px;   /* 希望通り */
  }
}

	@media (max-width: 767px){

  /* CF7：横並び崩れを強制的に1カラムへ */
  #contact .wpcf7 .form-row{
    grid-template-columns: 1fr !important;
    gap: 10px !important;
    padding: 16px 0 !important;
  }

  /* checkbox 2列 → 1列 */
  #contact .wpcf7 .checkbox-group{
    grid-template-columns: 1fr !important;
  }

  /* 送信ボタン位置がズレる場合の保険 */
  #contact .wpcf7 .form-submit{
    text-align: center;
  }
}

	/* SP：送信ボタンがfooterに被るのを防ぐ */
@media (max-width: 767px){
  #contact{
    padding-bottom: 140px;  /* まずはこれでOK（必要なら 180px まで増やして） */
    margin-bottom: 0;       /* 念のため */
  }

  /* 送信ボタンに余白が無い場合の保険 */
  #contact .form-submit{
    margin-bottom: 60px;
  }
}
} 

/* SP：Contactの送信ボタンだけ中央寄せ（CF7） */
@media (max-width: 767px){
  #contact .wpcf7 input.wpcf7-submit{
    display: block !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}

/* SP：メインビジュアルのテキストを少し上へ */
@media (max-width: 767px){
  .mv-text{
    top: -60px;   /* ← 数値を大きくすると、さらに上へ */
  }
}

@media (max-width: 767px){
  .mv-text{
    top: -60px !important;
  }
}


