@font-face {
  font-family: 'Hackney';
  src: url("../fonts/HackneyPersonalUseOnly.ttf") format('truetype');
  }
  
  @font-face {
  font-family: 'Gobold Extra1';
  src: url("../fonts/Gobold_Extra1.ttf") format('truetype');
  }
  
  @font-face {
  font-family: 'ZenKakuGothicNew';
  src: url("../fonts/ZenKakuGothicNew-Medium.ttf") format('truetype');
  }
  
  @font-face {
  font-family: 'MontserratVariableFontwght';
  src: url("../fonts/Montserrat-VariableFont_wght.ttf") format('truetype');
  }
  
  @font-face {
  font-family: 'MontserratVariableFontwghtbold';
  src: url("../fonts/Montserrat-Bold.ttf") format('truetype');
  }
  @keyframes curtainSlide {
  0% { width: 0%; }
  100% { width: 100%; }
  }
  
  @keyframes imageSlide {
  0% { left: -100%; }
  100% { left: 0%; }
  }
  .wrapper-area {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  min-height: 100vh;
  visibility: visible;
  opacity: 1;
  }
  [data-mobile="true"] .wrapper-area {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  min-height: 100vh;
  visibility: visible;
  opacity: 1;
  }
  body {
  margin: 0;
  padding: 0;
  font-size: 20px;
  overflow-x: hidden;
  position: relative;
  font-family: "游ゴシック体", "Yu Gothic", "游ゴシック", "ヒラギノ角ゴ ProN W3", "Hiragino Kaku Gothic ProN", "メイリオ", Meiryo, sans-serif;
  background-image: url("../images/bg.webp");
  background-repeat: repeat;
  background-size: auto;
  background-attachment: fixed;
  background-position: top left;
  }
  
  img {
  width: 100%;
  height: auto;
  }
  a {
  text-decoration: none;
  }
  section {
  margin-bottom: 10%;
  text-align: center;
  }
  section.works {
  margin-bottom: 2.6%;
  }
  section[id] {
  scroll-margin-top: 7rem; /* headerの高さより少し大きめに */
  }
  #processlink {
  scroll-margin-top: 20rem;
  }
  #showroomlink {
  scroll-margin-top: 3.8rem;
  }
  
  
  .noscale {
  transform-origin: top left;
  }
  .noscale__progress {
  transform-origin: top left; /* ← 中央基準に修正！ */
  }
  main {
  margin-bottom: 12.7em;
  }
  
  .mainimg {
  margin-bottom: 0;
  }
  
  .title {
  text-align: center;
  margin-top: 2rem;
  }
  
  .title img {
  max-width: 100%;
  height: auto;
  display: inline-block;
  }
  
  h1 {
  font-family: 'Gobold Extra1', sans-serif;
  font-size: 17.0px;
  font-weight: 400;
  line-height: normal;
  }
  h1 a{
  color: #FFF;
  }
  h1 a:hover{
  color: #eee;
  }
  
  h3 {
  color: #000;
  font-size: 120.0px;
  text-align: center;
  font-family: 'Hackney', sans-serif;
  font-weight: normal;
  line-height: 1;
  margin: 0.72em 0 0.01em;
  letter-spacing: -0.2rem;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  }
  .progress h3,.showroom h3{
  color: #d8d5ca;
  font-size: 120px;
  }
  h4 {
  color: #000;
  font-size: 18px;
  font-weight: 700;
  line-height: normal;
  margin: 0.89em 0 0.03125em;
  }
  
  header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3.15em;
  background-color: #000;
  z-index: 1000;
  letter-spacing: 0.05em;
  }
  
  .header_content {
  max-width: clamp(1000px, 83.33vw, 2000px); /* 1000px〜2000pxの間で可変 */
  height: 100%;
  margin: 0 auto;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #fff;
  }
  
  .header_logo h1 {
  font-size: 20px;
  margin: 0;
  }
  
  .header_nav {
  display: flex;
  align-items: center;
  gap: 1.8rem;
  }
  
  .header_nav a {
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: bold;
  }
  
  .header_nav .contact_button {
  width: 13.3em;
  padding: 0.5em 1em;
  background-color: #5C5C5C;
  color: #fff;
  border-radius: 1.875rem;
  font-weight: bold;
  text-align: center;
  }
  
  /* ハンバーガーメニュー */
  .hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  cursor: pointer;
  background: none;
  border: none;
  z-index: 1001;
  }
  .hamburger .bar {
  width: 25px;
  height: 3px;
  background-color: white;
  margin: 2.2px 0;
  transition: 0.4s;
  }
  
  .hamburger.active .bar:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
  }
  .hamburger.active .bar:nth-child(2) {
  opacity: 0;
  }
  .hamburger.active .bar:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
  }
  
  .mobile_nav {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  color: white;
  z-index: 1000;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  }
  
  .mobile_nav a {
  color: white;
  font-size: 17.0px;
  text-decoration: none;
  }
  
  .mobile_nav.show {
  display: flex;
  }
  
  
  
  .wrapper {
  max-width: 125rem;
  width: 100%;
  margin: 0 auto;
  padding: 0;
  box-sizing: border-box;
  line-height: 1.75em;
  }
  .mainimg__maincontent {
  position: relative;
  width: 100%;
  overflow: hidden;
  display: block;
  }
  .mainimg__maincontent img {
  width: 100%;
  height: auto;
  display: block;
  }
  
  .text-overlay {
  position: absolute;
  top: 8.5rem;
  left: 5rem;
  color: white;
  text-align: left;
  padding: 0.5rem 1rem;
  max-width: 90%;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1.5s ease 2.5s, transform 1.5s ease 2.5s;
  z-index: 2;
  }
  .text-overlay.active {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 1.5s ease 2s, transform 1.5s ease 2s;

  }

  
  .text-overlay h2 {
  color: #FFF;
  font-size: 192.0px;
  font-style: normal;
  line-height: 0.87em;
  font-family: 'Hackney', sans-serif;
  margin: 0 0 0.5rem 0;
  letter-spacing: -0.4rem;
  font-weight: normal !important;
  }
  
  .text-overlay p {
  font-size: 24.0px;
  margin: 1.2em 0 0;
  letter-spacing: 0.3em;
  font-weight: bold;
  }

  a.mainimg__linelink {
    display: block;
    background-color: #00B900;
    color: #fff;
    padding: 0.5rem 2rem;
    display: block;
    text-align: center;
    font-family: 'ZenKakuGothicNew', sans-serif;
    width: 80%;
    margin-top: 4rem;
    border-radius: 30px;
    font-size: 20px;
    letter-spacing: 0.3rem;
    font-weight: 700;
    z-index: 2;
  }
  a.mainimg__linelink2 {
    display: block;
    background-color: #00B900;
    color: #fff;
    padding: 1rem 2rem;
    display: block;
    text-align: center;
    font-family: 'ZenKakuGothicNew', sans-serif;
    width: 80%;
    margin: 4rem auto 0;
    border-radius: 30px;
    font-size: 20px;
    letter-spacing: 0.3rem;
    font-weight: 700;
    z-index: 2;
  }
  .mainimg__linelink:hover {
    background-color: #04e704;
    color: #fff;
  }  
  a.mainimg__showroomlink {
    display: block;
    background-color: #000;
    color: #fff;
    padding: 0.5rem 2rem;
    display: block;
    text-align: center;
    font-family: 'ZenKakuGothicNew', sans-serif;
    width: 80%;
    margin-top: 2rem;
    border-radius: 30px;
    font-size: 20px;
    letter-spacing: 0.3rem;
    font-weight: 700;
    z-index: 2;
  }
  .mainimg__showroomlink:hover {
    background-color: #3C3C3C;
    color: #fff;
  }
  a.mainimg__topbacklink {
    display: block;
    background-color: #ffcd44;
    color: black;
    padding: 0.5rem 2rem;
    display: block;
    text-align: center;
    font-family: 'ZenKakuGothicNew', sans-serif;
    width: 80%;
    margin-top: 2rem;
    border-radius: 30px;
    font-size: 20px;
    letter-spacing: 0.3rem;
    font-weight: 700;
    z-index: 2;
  }
  .mainimg__topbacklink:hover {
    background-color: #e5b93e;
  }  

  a.mainimg__showroom {
    position: absolute;
    bottom: 2rem;
    left: 5rem;
    color: white;
    text-align: left;
    padding: 0.5rem 1rem;
    max-width: 90%;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1.5s ease 2.5s, transform 1.5s ease 2.5s;
    z-index: 2;
  }
  .mainimg__showroom:hover {
    background-color: #3C3C3C;
    color: #fff;
  }
  
  .whats {
  position: relative;
  overflow: hidden;
  }
  
  .whats::before {
  content: '';
  background: url('../images/icon-03.webp') no-repeat top right;
  background-size: contain; /* ←これに変更（containで画像全体を表示）*/
  position: absolute;
  top: 0;
  right: 0;
  width: 75%; /* ← 幅を30%に固定 */
  height: 75%; /* ← 高さも30%に設定してバランスを調整 */
  opacity: 0;
  transition: opacity 1.2s ease-out;
  pointer-events: none; /* 背景なのでクリック等を無効にする */
  }
  
  .whats.fade-in::before {
  opacity: 1;
  }
  .subti {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 2.2em;
  letter-spacing: 0.2rem;
  }
  .comment {
  font-size: 14.0px;
  line-height: 2.35em;
  letter-spacing: 0.01em;
  }
  .whats__icon {
  display: flex; /* Flexboxを使用 */
  gap: 20px; /* 画像間の余白 */
  justify-content: center; /* 画像を中央に配置（必要に応じて） */
  align-items: center; /* 画像を垂直方向中央に配置（必要に応じて） */
  margin-top: 5%;
  }
  
  .whats__icon img {
  max-width: 30%; /* 親要素に合わせて画像の最大幅を設定 */
  height: auto; /* 高さは自動調整 */
  }
  .whats__icon img:first-child {
  max-width: 25%; /* 親要素に合わせて画像の最大幅を設定 */
  margin-right: 2%;
  }
  
  .progress {
  position: relative;
  width: 100%;
  height: auto; /* ← 必ずこれ */
  min-height: 100vh; /* ← 必要なら高さの最低ラインを確保 */
  overflow: hidden;
  padding-top: 5%; /* 上下に少し余白を */
  padding-bottom: 5%;
  }
  
  .progress-bg,.curtain {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  }
  
  .progress-bg {
  background-image: url("../images/process_bg.webp");
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: 1;
  }
  
  .curtain {
  background-color: #ccc;
  width: 0%;
  z-index: 2;
  opacity: 1;
  transition: width 0.3s ease-in-out, opacity 0.6s ease;
  }
  
  .section-progress {
  position: relative;
  width: 100%;
  min-height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 0 5%;
  margin: 11.2% 0 0;
  }
  
  .progress-background {
  display: hidden;
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: url('../images/process_bg.webp') center/cover no-repeat;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
  }
  
  .progress-curtain {
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: #000;
  opacity: 1;
  transition: width 0.7s ease, opacity 0.7s ease;
  z-index: 2;
  position: absolute;
  top: 0; left: 0;
  width: 0%;
  height: 100%;
  background-color: #dacbb5;
  z-index: 2;
  transition: width 0.4s ease-in-out, opacity 0.2s ease;
  }
  
  .progress-content {
  position: relative;
  z-index: 3;
  opacity: 0;
  width: 100%;
  max-width: 1200px; /* これで中央幅制限OK */
  margin: 0 auto; /* ← 中央寄せ */
  color: white;
  text-align: center;
  transition: opacity 0.4s ease;
  font-size: 24.0px;
  box-sizing: border-box; /* ← 念のため指定 */
  }
  
  .progress-content h3 {
  color: #d8d5ca;
  margin: 6rem 0 0;
  }
  
  .progress-content p {
  color: #d8d5ca;
  font-size: 14px;
  line-height: 1.8;
  margin-bottom: 2rem;
  }
  
  p.progress-subtitle {
  color: #d8d5ca;
  font-weight: bold;
  margin-bottom: 3em;
  font-size: 20px;
  letter-spacing: 0.2rem;
  }
  
  .progress-content iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: none;
  margin-top: 2em;
  }
  .progress-content h3.noscale__progress {
  font-size: 112.0px;
  }
  .progress-content p.progress-subtitle.noscale__progress {
  font-size: 17.6px;
  }
  .progress-content p.noscale__progress {
  font-size: 14.4px;
  }
  
  .works p {
  color: #000;
  font-family: Inter;
  font-size: 16.0px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  }
  
  
  
  .staggered-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 94px 0 0;
  position: relative;
  }
  
  .staggered-grid2 {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  max-width: 2000px;
  margin: 0 auto;
  padding: 0 0 60px;
  position: relative;
  align-items: flex-start;
  }
  
  /* 共通スタイル */
  .grid-item {
  text-align: left;
  margin-bottom: 60px;
  }
  
  .grid-item img {
  width: 100%;
  height: auto;
  display: block;
  }
  
  .grid-item p {
  margin-top: 10px;
  font-size: 11px;
  color: #333;
  line-height: 1.7em;
  }
  
  /* 配置別クラス */
  .grid-item.left {
  align-self: flex-start;
  }
  
  .grid-item.right {
  margin-left: auto;
  }
  
  /* 左寄せ：.left.small3 など */
  .grid-item.left {
  margin-left: 0;
  margin-right: auto;
  position: relative;
  left: 0;
  }
  
  /* 右寄せ：.right.small4 など */
  .grid-item.right {
  margin-left: auto;
  margin-right: 0;
  position: relative;
  left: 0;
  }
  
  
  .grid-item.center {
  width: 70%;
  margin: 4em auto 0 9em;
  text-align: left;
  order:4;
  }
  
  .right-block-group {
  display: flex;
  flex-direction: column;
  flex: 0 1 57%;
  gap: 4rem;
  }
  
  /* サイズ別クラス */
  .grid-item.big {
  width: 54%;
  }
  .grid-item.big2 {
  width: 54%;
  }
  .grid-item.small {
  width: 38.6%;
  margin-left: 5%;
  }
  .grid-item.small2 {
  width: 46%;
  margin-left: 5%;
  }
  .grid-item.small3 {
  width: 40%;
  margin-right: auto;
  margin-left: 0;
  position: relative;
  left: 0;
  }
  .grid-item.small4 {
  width: 40%;
  margin-left: auto;
  margin-right: 0;
  position: relative;
  left: 0;
  }
  .grid-item.shrinked {
  margin-left:7.8%; /* 左から少しずらすことで、右端を揃える */
  }
  
  /* 上下のズレ用 */
  .grid-item.offset {
  margin-top: 70px;
  }
  .grid-item.offset2 {
  margin-top: 54px;
  position: relative;
  }
  .grid-item.lift-up {
  margin-top: -32%;
  }
  .work-block-area {
  display: flex;
  flex-direction: column;
  flex: 0 1 58%;
  gap: 4rem;
  }
  
  .error-message {
    font-size: 1rem;
    color: red;
  }


  /* レスポンシブ対応 */
  @media (max-width: 768px) {
  .grid-item,
  .grid-item.big,
  .grid-item.small,
  .grid-item.center {
  width: 100% !important;
  margin: 0 0 40px 0 !important;
  text-align: center;
  }
  }
  
  .contact__btn {
  width: 455px;
  height: 93px;
  flex-shrink: 0;
  background-color: #5c5c5c;
  }
  .contact__btn:hover {
  width: 455px;
  height: 93px;
  flex-shrink: 0;
  background-color: #3C3C3C;
  }
  
  
  /*フォーム*/
  
  form {
  max-width: 1150px;
  margin: 0 auto;
  font-family: 'ZenKakuGothicNew', sans-serif;
  }
  
  .form-group {
  display: flex;
  align-items: center;
  margin-bottom:1.15em
  }
  
  .form-group label {
  width: 24%;
  font-weight: bold;
  text-align: left;
  margin: 1em 0;
  font-size: 17.0px;
  }
  .form-group label.label__title {
  min-width: 190px;
  font-weight: bold;
  text-align: left;
  margin: 1em 0;
  font-size: 17.0px;
  }
  
  
  .form-group input[type="text"],
  .form-group input[type="email"],
  .form-group textarea {
  flex: 1;
  padding: 10px;
  border: none;
  border-radius: 4px;
  background-color: #fff;
  font-size: 17.0px;
  }
  
  .form-group textarea {
  height: 10rem !important;
  }
  
  .submit-btn {
  all: unset; /* ブラウザの初期スタイルをリセット */
  display: inline-block;    
  width: 15em;
  padding: 0.8em 0;
  background-color: #3c3c3c;
  color: #fff;
  border-radius: 10rem;
  font-weight: bold;
  text-align: center;
  margin: 3em 0;
  font-size: 17.0px;
  }
  
  .submit-btn:hover {
  background-color: #5C5C5C;
  }
  
  .mailform::placeholder {
  font-size: 11.0px;
  line-height: 1; /* ← ここを追加または調整 */
  position: relative;
  top: -5px; /* ← これで少し上に寄せる（微調整） */
  }
  textarea.mailform::placeholder {
  position: relative;
  top: 10px; /* ← 下に寄せる */
  }
  
  /* radio-group の左揃え調整 */
  .form-group {
  flex: 1; /* ラベルに対して残りの幅を使う */
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 2em;
  }
  
  .radio-group {
  display: flex;
  gap: 5em; /* ボタン間の間隔を調整 */
  align-items: center;
  }
  
  .radio-group label {
  display: flex;
  align-items: center;
  gap: 0.6em;
  font-size: 13.0px;
  line-height: 1;
  white-space: nowrap;
  min-width: fit-content;
  }
  
  .radio-group input[type="radio"] {
  width: 1.6em;
  height: 1.6em;
  vertical-align: middle;
  accent-color: #333;
  }
  
  
  /*ショールーム*/
  
  .showroom {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  align-items: stretch; /* ★ これを追加 */
  position: relative;
  }
  
  .showroom-left {
  flex: 0 0 47%;
  background-image: url("../images/showroom_bg.webp");
  background-size: cover;
  background-position: center;
  padding: 0 0 6em 6.7em;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  }
  
  .showroom-info {
  color: #d8d5ca;
  text-shadow: 0 0 5px rgba(0,0,0,0.5);
  text-align: left;
  }
  
  .showroom-info h3 {
  text-align: left;
  margin-top: 0.43em;
  }
  .yubin-bango {
  font-size: 18px;
  font-weight: 700;
  }
  .yubin-jusho {
  font-size: 18px;
  margin-bottom: 0.6em;
  font-weight: 700;
  }
  .showroom-images {
  display: flex;
  gap: 10px;
  margin-top: 2em;
  }
  .showroom-carousel-wrapper {
  display: none;
  }
  
  .showroom-images img {
  width: 28.3%;
  border-radius: 4px;
  object-fit: cover;
  }
  
  .showroom-right {
  flex: 0 0 53%;
  position: relative;
  display: flex; /* 追加 */
  flex-direction: column; /* 追加 */
  }
  
  .map-overlay {
  flex-grow: 1; /* 追加 */
  }
  
  .map-overlay iframe {
    width: 100%;
    height: 100%;
    border: 0;
  }
  
  address {
  font-style: normal;
  text-align: left;
  }
  .address__block {
  display: inline-block;
  width: 100%;
  }
  .address__tel,.address__tel2,.address__email{
  letter-spacing:0.12em;
  font-family: 'MontserratVariableFontwghtbold', sans-serif;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6); /* 少し影を入れて可読性アップ */
  font-weight: 700;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  }
  .address__tel {
  font-size: 20.0px;
  }
  .address__tel2 {
  font-size: 25.0px;
  letter-spacing: -0.02em;
  white-space: nowrap;
  }
  .address__email {
  font-size: 20.0px;
  letter-spacing: -0.02em;
  }
  /* アニメーション */
  .fade-in {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s ease forwards;
  animation-delay: 0.3s;
  }
  
  @keyframes fadeInUp {
  to {
  opacity: 1;
  transform: translateY(0);
  }
  }
  
  @media (max-width: 768px) {
  .showroom {
  flex-direction: column;
  }
  
  .showroom-images img {
  width: 100%;
  }
  }
  
  /* すべてフッターで構成 */
  footer {
  width: 100%;
  position: relative;
  margin-top: 0;
  }
  
  /* 上部(ベージュ背景部分) */
  .footer-content {
  text-align: center;
  padding: 80px 0;
  }
  .footer-content h2 {
  text-align: center;
  margin: 0;
  font-size: 24.0px;
  letter-spacing: 0.06em;
  font-family: 'Gobold Extra1', sans-serif;
  font-weight: normal; /* 無理にboldにしない */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  }
  .footer-content h2 a{
  color: #333;
  }
  .footer-content h2 a:hover{
  color: #999;
  }
  /* SNSリンク：中央配置で横並び */
  .sns-links {
  display: flex;
  justify-content: center;
  gap: 0;
  margin-top: 20px;
  }
  .sns-links a {
  text-decoration: none;
  color: #333;
  font-weight: bold;
  }
  .sns-links img {
  width: 70%;
  }
  
  /* 下部(黒帯) */
  .footer-bottom {
  position: relative; /* アイコンの絶対配置の親 */
  background-color: #000;
  text-align: center;
  color: #fff;
  min-height: 40px; /* 必要に応じて調整 */
  line-height: 40px;
  }
  .footer-bottom p {
  font-family: 'ZenKakuGothicNew', sans-serif;
  margin: 0;
  position: relative;
  font-size: 11px;
  z-index: 1; /* テキストをアイコンより前面に */
  }
  
  /*
  建物アイコンを常に .footer-bottom の右上に配置
  ・幅は clamp() で 200px～30vw～最大679px の範囲で可変
  ・aspect-ratio で元の縦横比(679:567)を維持し高さを自動算出
  */
  .footer-bottom::before {
  content: "";
  position: absolute;
  bottom: 40px;
  right: 0;
  width: clamp(300px, 32vw, 800px);
  aspect-ratio: 800 / 567;
  background: url("../images/icon-end.webp") no-repeat right top;
  background-size: contain;
  z-index: 0;
  }
  
  /*アニメーション*/
  .fade-in-zoom {
  opacity: 0;
  transition: opacity 0.6s ease, transform 0.6s ease;
  animation-delay: 0.6s;
  }
  
  .fade-in-zoom.active {
  opacity: 1;
  }
  
  
  
  .popup {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease-out;
    will-change: opacity, transform;
    visibility: hidden;
  }
  .popup.fadein-ready {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
  }
  

  
  .contact {
  max-width: 800px;
  margin: 0 auto 5rem;
  }
  .contact .subti {
  margin-bottom: 1.9em;
  letter-spacing: 0.18rem;
  }
  
  .contact form {
  display: block;
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
  }
  .contact__honbun {
  font-size: 15px;
  line-height: 2.1em;
  margin: 0 0 4em;
  }
  
  
  .form-group:last-of-type {
  margin-bottom: 0 !important;
  }
  
  .form-group.inline-radio {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 2rem;
  }
  
  .form-group.inline-radio .label__title {
  flex-shrink: 0;
  width: auto;
  margin: 0;
  font-size: 17.0px;
  }
  
  .form-group.inline-radio {
  flex: 1;
  display: flex;
  flex-wrap: nowrap;
  gap: 2em;
  align-items: center;
  }
  
  
  /* 修正済みの左右寄せを強制する */
  .staggered-grid2 .grid-item.left {
  margin-left: 0 !important;
  margin-right: auto !important;
  position: relative;
  left: 0 !important;
  }
  .staggered-grid2 .grid-item.right {
  margin-left: auto !important;
  margin-right: 0 !important;
  position: relative;
  left: 0 !important;
  }
  
  
  /* 左右中央寄せ */
  .grid-item.left { margin-right: auto; }
  .grid-item.right { margin-left: auto; }
  
  
  .works-section {
  max-width: 1200px;
  margin: auto;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
  margin-top: -3rem;
  }

  .works .subti {
    font-family: "游ゴシック体", "Yu Gothic", "游ゴシック", "ヒラギノ角ゴ ProN W3", "Hiragino Kaku Gothic ProN", "メイリオ", Meiryo, sans-serif;
    font-weight: bold;
    font-size: 20px;
    letter-spacing: 0.3rem;
    }
    .grid-item p{
    font-family: "游ゴシック体", "Yu Gothic", "游ゴシック", "ヒラギノ角ゴ ProN W3", "Hiragino Kaku Gothic ProN", "メイリオ", Meiryo, sans-serif;
    }
  
  /* 各ブロック共通 */
  .work-block {
  display: flex;
  flex-direction: column;
  text-align: left;
  }
  
  /* 左の画像（小さめ） */
  .work-block.left {
  flex: 0 1 38.8%;
  margin-top: 10em;
  }
  .work-block.left img {
  width: 100%;
  }
  
  /* 右の上画像（大きめ） */
  .work-block.right.large {
  flex: 0 1 57%;
  align-items: flex-end;
  margin-top: 0.2em;
  order: 2;
  }
  .work-block.right.large img {
  display: block;
  width: 93.2%;
  margin-left: auto;
  }
  .work-block.right.large .text {
  width: 93.2%;
  }
  
  /* 右の下画像（小さめ） */
  .work-block.right.small {
  flex: 0 1 57%;
  margin-top: 4.5rem;
  order:3;
  align-items: flex-end;
  }
  .work-block.right.small img {
  display: block;
  width: 79%;
  margin-left: auto;
  }
  .work-block.right.small .text {
  width: 79%;
  }
  
  /* テキスト共通 */
  .work-block h4 {
  font-size: 18px;
  font-weight: bold;
  letter-spacing: 0.05em;
  margin: 1.8rem 0 0.5rem;
  text-align: left;
  }
  
  .work-block p {
  font-size: 11px;
  line-height: 1.7;
  letter-spacing: 0.03em;
  margin: 0;
  text-align: left;
  }
  
  .contact-section {
  padding-bottom: 40px; /* 必要に応じて */
  }
  .wrapper-area {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  min-height: 100vh;
  visibility: visible;
  opacity: 1;
  }
  
  .work-block {
  flex: 1 1 100%;
  }
  .spblock {
    display: none;
  }  
  .right-block-group {
  gap: 0;
  }
  
  #form-result {
  min-height: 2em;
  margin-bottom: 3rem;
  }
  
  .send-message.success {
  background-color: #e3f9e5;
  border-left: 5px solid #4caf50;
  color: #256029;
  padding: 1rem;
  font-size: 16.0px;
  line-height: 1.6;
  margin-bottom: 2rem;
  }
  
  .send-message.error {
    white-space: normal;      /* ←ここ大事。これで改行可能にする */
    word-wrap: break-word;     
  background-color: #ffeaea;
  border-left: 5px solid #e53935;
  color: #b71c1c;
  padding: 1rem;
  margin-bottom: 1.5rem;
  font-size: 15.2px;
  }
  
  
  
  .wrapper{
  padding:0 5%;
  }
  
  .mainimg__maincontent {
  position: relative;
  }

  .delay-short {
    animation-delay: 2s;
  }

  .mainimg__spmaincontent {
    display: none;
  }
  
  /* スマホ対応 */
  @media (max-width: 768px) {
  
  #whatslink {
  scroll-margin-top:2.8rem;
  }
  #processlink {
  scroll-margin-top: 5.3rem;
  }
  
  main {
  margin-bottom: 0;
  }
  
  header {
  width: 100%;
  padding: 0 5%
  }
  .header_nav {
  display: none;
  }
  .hamburger {
  display: flex;
  }
  body.mobile-menu-open {
  overflow: hidden; /* 背景スクロールを防止 */
  }
  
  .wrapper-area {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  min-height: 100vh;
  visibility: visible;
  opacity: 1;
  }
  
  body.mobile-menu-open .wrapper-area {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  min-height: 100vh;
  visibility: visible;
  opacity: 1;
  }
  p {
  text-align: justify;
  }
  br {
  display: none;
  }
  h3 {
  font-size: 3.3em;
  letter-spacing: 0;
  margin:5rem 0 0.2rem;

  }
  h4 {
  font-size: 1.2em;
  text-align: left;
  }

  .mainimg__maincontent,.mainimg__maincontent img {
    display: none;
  }  
  .mainimg__spmaincontent {
    position: relative;
    display: block;
    width: 100%;
    height: auto;
    background-image: url('../images/main.webp');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    padding-bottom: 1rem; /* ←必要に応じて余白調整 */
  }
  .sp_text-overlay {
    width: 100%;
    text-align: left;
    transform: translateY(30px);
    padding: 6rem 5% 2rem;
    opacity: 0;
    transition: opacity 0 ease, transform 0 ease;
    position: relative;
    }
    .sp_text-overlay.active {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 1s ease 0.1s, transform 1s ease 0.1s;
    }  

  br.sp-only {
  display: inline;
  }
  .sp_text-overlay h2 {
    color: #FFF;
    font-size:6.5rem;
    text-align: left;
    letter-spacing: -0.15rem;
    font-style: normal;
    line-height: 0.87em;
    font-family: 'Hackney', sans-serif;
    margin: 0 0 0.5rem 0;
    letter-spacing: -0.3rem;
    font-weight: normal !important;
    }
    
    .sp_text-overlay p {
    font-size: 0.8rem;
    margin: 1.2em 0 0 0.2rem;
    letter-spacing: 0.3em;
    text-align: left;
    font-weight: bold;  
    color: #FFF;
    }
    .mainimg__sp_linelink {
      display: block;
      width: 100%;
      max-width: 500px;
      margin: 6rem auto 0;
      text-align: center;
      color: white;
      background: #00B900;
      padding: 0.9rem 1.2rem;
      border-radius: 50px;
      font-size: 0.9rem;
      font-weight: 700;
      letter-spacing: 0.1rem;
      font-family: 'ZenKakuGothicNew', sans-serif;
    }

    .mainimg__sp_showroom {
      display: block;
      width: 100%;
      max-width: 500px;
      margin: 2rem auto 0;
      text-align: center;
      color: white;
      background: #000;
      padding: 0.9rem 1.2rem;
      border-radius: 50px;
      font-size: 0.9rem;
      font-weight: 700;
      letter-spacing: 0.1rem;
      font-family: 'ZenKakuGothicNew', sans-serif;
    }

    .mainimg__sp_topback {
      display: block;
      width: 100%;
      max-width: 500px;
      margin: 2rem auto 0;
      text-align: center;
      color: black;
      background: #ffcd44;
      padding: 0.9rem 1.2rem;
      border-radius: 50px;
      font-size: 0.9rem;
      font-weight: 700;
      letter-spacing: 0.1rem;
      font-family: 'ZenKakuGothicNew', sans-serif;
    }    

      br.sp-only {
      display: inline;
      }

  .comment,.contact__honbun {
  font-size: 0.9rem;
  }
  .showroom h3 {
  font-size: 3.3em;
  text-align: center;
  }

  .section-progress {
    min-height: auto !important;
  }  
  .progress-content {
    padding: 0 5% 2rem;
    }  
  .progress-content h3 {
  color: #d8d5ca;
  margin: 5rem 0 0 0.2rem;
  font-size: 2.7em;
  text-align: center;
  }
  .progress-content p {
  font-size: 1rem;
  text-align: center;
  }
  .progress-subtitle {
  text-align: center;
  font-size: 1rem !important;
  margin-bottom: 2rem !important;
  letter-spacing: 0.1rem;
  }
  .youtube-iframe {
    width: 100% !important;
    aspect-ratio: 16 / 9 !important;
    height: auto !important;
    max-width: 100% !important;
    margin: 1rem auto !important;
  }
  .whats__icon {
  flex-direction: column;
  margin-top: 5rem;
  }
  .whats__icon img:first-child {
  max-width: 85%;
  margin-right:0;
  }
  .whats__icon img {
  max-width: 88%;
  }
  .whats::before {
  width: 40%; /* ← 幅を30%に固定 */
  height: 40%; /* ← 高さも30%に設定してバランスを調整 */
  transition: opacity 0.5s ease 1s, transform 0.5s ease 1s;
}
  .works .subti {
  margin-bottom: 5rem;
  font-size: 1rem;
  letter-spacing: 0.2rem;
  font-family: "游ゴシック体", "Yu Gothic", "游ゴシック", "ヒラギノ角ゴ ProN W3", "Hiragino Kaku Gothic ProN", "メイリオ", Meiryo, sans-serif;
  }
  .subti {
  font-size: 1rem;
  text-align: center;
  letter-spacing: 0.08rem;
  margin-bottom: 3rem;
  }
  
  .staggered-grid {
  padding:5rem 0 2rem;
  }
  .grid-item p{
  font-family: "游ゴシック体", "Yu Gothic", "游ゴシック", "ヒラギノ角ゴ ProN W3", "Hiragino Kaku Gothic ProN", "メイリオ", Meiryo, sans-serif;
  font-size: 1rem;
  }
  
  .showroom-left{
  width: 100%;
  display: block;
  padding: 0 5%;
  }
  
  
  /* カルーセル　*/
  .showroom-carousel-wrapper {
  overflow: hidden;
  width: 100%;
  padding: 0 10%;
  box-sizing: border-box;
  display: block;
  margin: 2rem 0;
  }
  
  .showroom-carousel {
  display: inline-block;
  white-space: nowrap;
  }
  
  .showroom-carousel img {
  display: inline-block;
  width: 80vw;
  height: 180px;
  object-fit: cover;
  margin-right: 1rem;
  border-radius: 8px;
  }
  
  /* カルーセルここまで */
  

  .works-section {
  display:block;
  }
  .spblock {
    display: block;
    margin: 2rem 0 0 !important;
    font-size: 0.8rem !important;
    letter-spacing: 0.15rem !important;
    padding: 1.2rem 0;
    font-size: 1rem;
  }

  .work-block.left,.work-block.right.large {
  flex: 0 0 100%;
  margin-top: 0;
  }
  .work-block.right.large img,.work-block.right.small img,.work-block.right.small .text,.work-block.right.large .text {
  width: 100%;
  }
  .work-block.right.small {
  margin-top: 0;
  }
  .grid-item h4,.work-block h4 {
  font-size:1.1rem;
  margin: 1.5rem 0 1rem 0;
  padding: 0;
  }
  .work-block p {
  font-size: 1rem;
  margin-bottom: 2rem;
  }
  .work-block-area {
  gap: 0;
  }
  
  .yubin-bango,.yubin-jusho,.address__tel,.address__tel2,.address__email {
  font-size: 0.7em;
  }
  .address__tel2 {
  font-size: 1.05rem;
  }
  .address__tel2 a{
  color: #d8d5ca;
  text-decoration: none;
  }

  #form-result {
    white-space: normal !important;
    word-break: break-word !important;
  }

  .send-message.error {
    display: block !important;     /* ← 必須！ */
    white-space: normal !important;
    word-break: break-word !important;
    font-size: 1rem;
    line-height: 1.8;
    }
    
  .showroom-images {
  display: none;
  }
  
  
  .swiper-container {
  width: 100%;
  }
  
  .swiper-slide img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
  }
  iframe {
  height: 400px !important;
  }
.whats,.contact {
  padding: 0 5%;
  }
  .contact__formblock input,
  .contact__formblock textarea {
  width: 100%;
  box-sizing: border-box;
  }
  .footer-content {
  margin-top: 100px;
  }
  .footer-content h2 {
  font-size: 1.5rem;
  }
  
  .form-group {
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 0 !important;
  margin-bottom: 0.5em !important;
  }
  
  .form-group label,
  .form-group label.label__title {
  width: 100% !important;
  margin: 2em 0 0.5em !important;
  font-size: 1rem !important;
  line-height: 1.3 !important;
  }
  
  .form-group input[type="text"],
  .form-group input[type="email"],
  .form-group textarea {
  font-size: 1rem !important;
  padding: 0.3em !important;
  width: 100% !important;
  }
  
  .radio-group {
  flex-direction: column;
  gap: 0.5em;
  }
  .radio-group label,
  .radio-group label.label__title {
  margin: 0.5em 0 0.5em !important;
  }
  .mailform::placeholder {
  font-size: 0.8rem;
  line-height: 1; /* ← ここを追加または調整 */
  position: relative;
  top: 50%; /* ← これで少し上に寄せる（微調整） */
  }
  textarea.mailform::placeholder {
  position: relative;
  top: 0; /* ← 下に寄せる */
  }
  .submit-btn {
  margin: 1rem auto;
  font-size: 1.2rem;
  width: 100%;
  }
  
  .footer-bottom::before {
  bottom: 40px;
  width: clamp(146px, 25vw, 800px);
  aspect-ratio: 800 / 547;
  }
  .footer-bottom p {
  text-align: center;
  }
  
  .wrapper-area {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  min-height: 100vh;
  visibility: visible;
  opacity: 1;
  }
  
  html, body {
  width: 100% !important;
  overflow-x: hidden !important;
  text-align: center;
  }
  body.startup-hidden {
  visibility: hidden;
  opacity: 0;
  }
  .fade-up-sp {
    opacity: 0;
    transform: translateY(60px);
    transition: opacity 0.8s ease, transform 0.8s ease;
  }
  .fade-up-sp.sp-visible {
    opacity: 1;
    transform: translateY(0);
  }
  }
   
  
  #scalable-wrapper { display: none !important; }
  
  img, iframe {
  max-width: 100%;
  height: auto;
  display: block;
  }
  
  
  .section-progress {
  position: relative;
  overflow: hidden;
  }

  .progress-curtain {
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: #000;
  opacity: 1;
  transition: width 0.7s ease, opacity 0.7s ease;
  z-index: 2;
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: #000;
  opacity: 1;
  transition: width 0.7s ease, opacity 0.7s ease;
  z-index: 2;
  }
  .progress-background {
  opacity: 0;
  visibility: hidden;
  transition: opacity 1s ease;
  }
  .progress-content {
  opacity: 0;
  transition: opacity 1s ease;
  }
  
  
  /* 横幅いっぱいにするセクション */
  .section-progress,
  .showroom,
  footer,
  .whats {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  }
  
  
  body.startup-hidden #wrapper,
  body.startup-hidden .mainimg,
  body.startup-hidden .whats,
  body.startup-hidden .section-progress,
  body.startup-hidden .works,
  body.startup-hidden .works-section,
  body.startup-hidden .showroom,
  body.startup-hidden .contact,
  body.startup-hidden footer {
    visibility: hidden;
    opacity: 0;
  }

  html {
    scroll-behavior: smooth;
  }  

  @media (max-width: 1199px) and (min-width: 768px) {
    html {
    min-width: 1200px;
    overflow-x: auto;
    }
    .section-progress,
    .showroom,
    footer,
    .whats {
      width: 1200px !important;
      margin-left: auto !important;
      margin-right: auto !important;
    }
    .showroom {
      flex-wrap: nowrap !important; /* ← 回り込み禁止 */
    }
    } 

/* WORKSセクション専用：初期非表示 */
.staggered-grid .grid-item img,
.staggered-grid .grid-item h4,
.staggered-grid .grid-item p,
.works-section .work-block img,
.works-section .work-block h4,
.works-section .work-block p {
  opacity: 0;
  transform: translateY(30px);
}













@media (min-width: 1201px) and (max-width: 1400px) {
  .works > img.fade-in-zoom {
    transform: scale(1.05);
  }
}

@media (min-width: 1401px) and (max-width: 1600px) {
  .works > img.fade-in-zoom {
    transform: scale(1.1);
  }
}

@media (min-width: 1601px) {
  .works > img.fade-in-zoom {
    transform: scale(1.15);
  }
}



















@media (min-width: 1200px) {
  .works > img.fade-in-zoom {
    width: calc(100% + (100vw - 1200px));
    max-width: none;
    display: block;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    transition: width 0.4s ease, margin 0.4s ease;
    margin-top: calc(3rem + (100vw - 1200px) * 0.05);
    margin-bottom: calc(3rem + (100vw - 1200px) * 0.05);
  }
}



/* ============================== */
/* scalable-block 拡大レイアウト */
/* ============================== */

.scalable-block {
  position: relative;
  width: 54%;
  margin-left: 0;
  margin-right: auto;
  text-align: left;
}

.scalable-block img {
  width: 100%;
  max-width: none;
  height: auto;
  display: block;
}

.scalable-block h4,
.scalable-block p {
  margin-top: 1rem;
  font-size: inherit;
  line-height: 1.6;
  color: #000;
}

@media (min-width: 1200px) {
  .scalable-block {
    width: calc(54% + (100vw - 1200px) * 0.05);
  }
}



/* scalable-block 拡大レイアウト */

.scalable-block img {
  width: 100%;
  max-width: none;
  height: auto;
  display: block;
}

@media (min-width: 1200px) {
  .scalable-block {
    width: calc(100% + (100vw - 1200px) * 0.05);
  }
}

/* スクロールで表示される .whats__icon img のふわっとアニメ */
.whats__icon img {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.whats__icon img.active {
  opacity: 1;
  transform: translateY(0);
}


/* .whats__icon に対応した専用画像アニメーション */
.whats-icon-img {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.whats-icon-img.active {
  opacity: 1;
  transform: translateY(0);
}
/*
.mainimg__sp_linelink {
  display: none;
}
*/

@media (max-width: 768px) {
  .popup-img {
    opacity: 0;
    transform: scale(0.96);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    will-change: opacity, transform;
  }

  .popup-img.fadein-ready {
    opacity: 1;
    transform: scale(1);
  }
  a.mainimg__linelink, a.mainimg__linelink2 {
    display: none;
  }
}