:root {
  --main-bg:#292929;
  --dark: #333;
  --logo-color: #241915;
  --corp-color: #f29700;
}

body {
  font-family: "Noto Serif JP", serif;
  margin: 0;
  color: var(--dark);
}

/* ===================== Header ===================== */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 30px;
  margin-bottom: 10px;
  background-color: rgba(255, 255, 255, 0.9);
}

.header .active{
  color: #b4b4b4;
}

.logo img {
  width: 220px;
}
.logo img:hover {
  opacity: 0.7;
  transition: opacity 0.2s ease-in-out;
}

.nav {
  display: flex;
  align-items: center;
  gap: 25px;
}

.nav ul {
  font-family: "Noto Sans JP", sans-serif;
  display: flex;
  gap: 25px;
  list-style: none;
  margin-bottom: 0;
}

.nav-instagram {
  margin-left: 15px;
}

.nav-instagram img {
  width: 30px;
  height: 30px;
  opacity: 0.75;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.nav-instagram .ig-hover { display: none; }
.nav-instagram:hover .ig-default { display: none; }
.nav-instagram:hover .ig-hover { display: block; }
.nav-instagram:hover img {
  opacity: 1;
  transform: scale(1.1);
}
.nav a {
  color: var(--dark);
  font-weight: bold;
}
.nav a span {
  display: inline-block;
  transition: transform 0.3s;
}
.nav a:hover span {
  animation: jump 0.6s ease forwards;
}
.nav a span:nth-child(1) { animation-delay: 0s; }
.nav a span:nth-child(2) { animation-delay: 0.05s; }
.nav a span:nth-child(3) { animation-delay: 0.1s; }
.nav a span:nth-child(4) { animation-delay: 0.15s; }
.nav a span:nth-child(5) { animation-delay: 0.2s; }
.nav a span:nth-child(6) { animation-delay: 0.25s; }
.nav a span:nth-child(7) { animation-delay: 0.3s; }

@keyframes jump {
  0%, 100% { transform: translateY(0); }
  25% { transform: translateY(-4px); }
  50% { transform: translateY(0); }
  75% { transform: translateY(-2px); }
}

a,
.cat-link,
.cat-link:hover,
.cat-link:focus,
.cat-link:active{
    text-decoration: none;
    color: inherit;
}

/* ========== ハンバーガー ========== */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  z-index: 1001;
}

.hamburger span {
  display: block;
  height: 3px;
  background: var(--dark);
  border-radius: 2px;
  transition: 0.3s;
}

/* 変形（開いたとき） */
.hamburger.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ===================== First View ===================== */
.fv-container {
  position: relative;
  width: 100%;
  height: auto;
  margin: 0 auto;
  overflow: hidden;
  display: inline-block;
}

.fv-text {
  position: absolute;
  top: 5%;           /* 縦方向中央 */
  left: 10%;          /* 横方向中央 */
  writing-mode: vertical-rl;
  text-align: left;
  color: #000;
  font-size: 1.5rem;
  font-weight: bold;
  white-space: nowrap;
  text-shadow:
    1px  1px 1px #fff,
   -1px  1px 1px #fff,
    1px -1px 1px #fff,
   -1px -1px 1px #fff;
}

.fv-text div:nth-of-type(2) {
  text-indent: 2rem;
}

.fv-text div:nth-of-type(3) {
  text-indent: 4rem;
}

/* 窓透過画像 */
.window-light {
  position: relative;
  pointer-events: none;
  width: calc(100% + 2px);
  height: auto;
  margin: -1px; 
  display: block;
}


/* 背景スライダー */
.slider {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: auto;
  display: flex;
  animation: slide 150s linear infinite;
}

.slider img {
  height: 100%;   /* window.png の高さに合わせる */
  width: auto;    /* アスペクト比維持 */
  display: block;
}


/* 無限横スクロールアニメーション */
@keyframes slide {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); } /* slide.jpg 横幅に応じて調整 */
}

/* ===================== Concept ===================== */
h2 {
  font-size: 30px;
  font-weight: bold;
  margin-bottom: 0;
}
h2 span {
  font-size: 20px;
}

h3 {
  margin-top: 10px;
  font-size: 22px;
  font-weight: bold;
}
h3::first-letter {
  font-size: 40px;
  color: var(--corp-color);
}

.lead {
  font-size: 18px;
  line-height: 2;
}

section {
  margin: 100px auto;
  padding: 0 40px;
  max-width: 1076px; 
}

.btn-corp {
  background-color: var(--corp-color);
}

.btn-corp:hover {
  background-color: #ffae2dbe !important;
}

.msg {
	color: #fff;
	font-weight: 400;
}

/* ===================== Footer ===================== */
.footer {
  background: #4d4d4d;
  color: #fff;
  text-align: center;
}

.footer-logo {
  width: 220px;
}

.footer-nav {
  list-style: none;
  padding: 0;
  display: flex;
  justify-content: center;
  gap: 40px;
  font-size: 16px;
}
.footer-nav li a {
  text-decoration: none;
  color: #fff;
}

.footer-instagram-icon {
  width: 30px;
  height: 30px;
  filter: brightness(0) invert(1);
  opacity: 0.8;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.footer-sns a {
  position: relative;
  display: inline-block;
}
.footer-instagram-icon.ig-hover {
  display: block;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  filter: none;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.footer-sns a:hover .ig-default { opacity: 0; }
.footer-sns a:hover .ig-hover { opacity: 1; }
.emblem {
  white-space: nowrap;
}
.emblem span {
  display: inline-block;
  width: 20px;
  height: 40px;
  background: var(--corp-color);
  margin-right: 10px;
}
.emblem span.bounce {
  animation: jump 0.5s ease forwards;
}

@keyframes jump {
  0%   { transform: translateY(0); }
  50%  { transform: translateY(-10px); } /* 上にジャンプ */
  100% { transform: translateY(0); }      /* 元に戻る */
}

.fade-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.banner {
  display: inline-block;
  overflow: hidden;
}

.banner img {
  width: 100%;
  height: auto;
  transform: scale(1.1); /* 初期は少し大きく */
  transition: transform 0.5s ease;
}

/* 画面に現れたらZoomOut（少し縮小） */
.banner.visible img {
  transform: scale(1);
}

/* hoverでZoomIn（少し拡大） */
.banner img:hover {
  transform: scale(1.05);
}

/* ===================== service ===================== */

.workflow-step img{
  width: 85%;
  height: auto;
}

/* ===================== company ===================== */
.table-1 {
  background: #fff;
  border: 1px solid #6b5f4d;
}

.table-1 th {
  padding: 20px 28px;
  background-color: #f295001f;
  color: #423a2f;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.table-1 td {
  padding: 20px 28px;
  text-align: left;
}

.table-2 tr {
  border-bottom: 1px solid var(--corp-color);
  transition: background 0.3s ease;
}

.table-2 th {
  padding: 18px 30px;
  width: 15%;
  white-space: nowrap;
}

.table-2 td {
  padding: 18px 30px;
  text-align: left;
}

.table-2 tr:hover {
  background: rgba(252, 239, 203, 0.247);
}

/* ========== Map ========== */
.card-custom {
  border-radius: 10px;
  transition: transform 0.4s, box-shadow 0.4s, border-color 0.4s;
  border: 1px solid rgba(216, 148, 46, 0.15);
}

.card-custom:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
  border-color: #ffba4cc0;
}

.card-custom iframe {
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
}

/* ===================== contact ===================== */
.contact-card{
  background-color: rgb(247, 247, 247);
}
/* ================= business-top img ================= */

.img-wrapper{
  position: relative;
}

.img-wrapper .contents-img{
  position: relative;
}

.img-wrapper .contents-img::before{
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(44, 44, 22, 0.534);
}

.img-text {
  color: #fff;
	position: absolute;
	top: 55%;
	left: 50%;  
  transform: translate(-50%, -50%); 
  width: 55%;
}
.temporary-block{
  height: 80px;
}


/* ================= works category ================= */
.gallery {
    display: none;
}
.gallery.is-active {
    display: block;
}

.cat-link {
    background: none;
    border: none;
    padding: 0.5rem 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    color: inherit;
    text-decoration: none;
    display: inline-block;
    width: 100%;
    white-space: nowrap;
}
.cat-link:hover {
    opacity: 0.7;
}

.cat-link.is-active {
    border-bottom: 2px solid #000000b4;
    background-color: #f295004b;
    color: #000;
    font-weight: 900;
}

.cat-btn{
    border: none;
}

.foogallery .fg-caption{
    padding: 3ppx;
}
/* ================= レスポンシブ　================= */
@media (max-width: 1300px) {
  .img-text {
    width: 60%;
  }
  .temporary-block{
    height: 55px;
  }
}

@media (max-width: 1200px) {
  .img-text {
    width: 70%;
  }
  .temporary-block{
    height: 40px;
  }
}

@media (max-width: 992px) {
/*　ナビ */
  .nav {
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.97);
    display: none;
    justify-content: center;
    align-items: center;

    transform: translateY(-120%);
    opacity: 0;
    transition:
      transform 0.55s cubic-bezier(0.19, 1, 0.22, 1),
      opacity 0.35s ease;
    z-index: 1000;
  }

  .nav.open {
    display: flex;
    flex-direction: column;
    gap: 30px;
    transform: translateY(0);
    opacity: 1;
  }

  .nav ul {
    display: flex;
    flex-direction: column;
    gap: 26px;
    text-align: center;
    padding: 0;
    opacity: 0;
    transform: translateY(20px);
    transition: 0.45s ease 0.1s;
  }
  .nav.open ul {
    opacity: 1;
    transform: translateY(0);
  }

  .nav-instagram {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    margin-left: 0;
    opacity: 0;
    transform: translateY(20px);
    transition: 0.45s ease 0.2s;
  }
  .nav-instagram .ig-default { display: none; }
  .nav-instagram .ig-hover { display: block; }
  .nav-instagram::before {
    content: '';
    display: block;
    width: 200px;
    height: 1px;
    background: #b4b4b4;
    margin-bottom: 30px;
  }
  .nav.open .nav-instagram {
    opacity: 1;
    transform: translateY(0);
  }

  .hamburger {
    display: flex;
  }

/* カテゴリー */
  .category a{
    padding: 0px;
  }
   
}

@media(max-width:768px){
  .footer-nav {
    gap: 20px;
  }

  table,tbody,tr,th,td{
    display: block;
  }


  .category *{
    padding: 12px;
  }

  .img-wrapper {
    position: static;
  }

  .img-text {
    position: static;
    transform: none;
    color: #000;
    margin-top: 1.5rem;
    width: auto;
  }

  .cat-link {
    font-size: 0.9rem;
    padding: 0.4rem 0.5rem;
  }
}

@media(max-width:576px){ 
  .fv-text {
    font-size: 1rem;
  }

  h2 {
    font-size: 24px;
  }
  h3 {
    font-size: 20px;
  }
  h3::first-letter {
    font-size: 30px;
  }
  .h5 {
    font-size: 18px;
  }

  .table-1 th,
  .table-1 td,
  .table-2 th,
  .table-2 td {
    padding: 12px 18px;
  }

  .table-1 {
    text-align: left;
  }

  .table-2 th {
    padding: 14px 15px 0 15px;
  }

  .lead {
    font-size: 16px;
    line-height: 1.6;
  }

}

/* =====================================
   page top
===================================== */
#page_top {
  width: 90px;
  height: 90px;
  position: fixed;
  right: 0;
  bottom: 50px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  z-index: 1000;
}
#page_top.show {
  opacity: 0.8;
  pointer-events: auto;
}
#page_top a {
  position: relative;
  display: block;
  width: 90px;
  height: 90px;
  text-decoration: none;
}
#page_top a::before {
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  content: "\f102";
  font-size: 25px;
  color: var(--corp-color);
  position: absolute;
  top: 18px;
  right: 0;
  left: 0;
  margin: auto;
  text-align: center;
}
#page_top a::after {
  content: "PAGE TOP";
  font-size: 13px;
  color: var(--corp-color);
  position: absolute;
  top: 48px;
  right: 0;
  left: 0;
  margin: auto;
  text-align: center;
}
#page_top:hover {
  opacity: 1;
}



/* =========================
   メインエリア
========================= */

.single-main {
  align-items: center;
}

.main-img img {
  width: 100%;
  object-fit: cover;
  border-radius: 10px;
}

.description {
  align-items: center;
}


/* =========================
   works
========================= */

.works-images {
  margin-bottom: 25px;
}

.works-images img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 8px;
  transition: 0.3s ease;
}

.works-images img:hover {
  transform: scale(1.04);
}

.works-images p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #555;
}

