/* components.css */


/* =========================
   ヘッダー（PC共通）
========================= */

/* ロゴ */
.site-title img,
.logo_1 {
  width: 150px;
}
@media (max-width: 768px) {
  .site-title img,
  .logo_1 {
  width: 120px;
  }
  .site-title{
    flex-direction: column;
  }
}

/* ナビゲーション（PC） */
.site-nav__list {
  display: flex;
  gap: var(--space-4);
  list-style: none;
  margin: 0;
  padding-top: 8px;
}

.site-nav__list a {
  text-decoration: none;
}

.site-nav__icon img {
  width: 20px;
}

/* ロゴとナビの区切り線 */
.site-header__divider {
  width: 3px;
  height: 2.8em;
  background-color: var(--color-black);
  flex-shrink: 0;
}

/* aタグの基本 */
.nav-item {
  display: inline-block;
  overflow: hidden;
  height: 1.4em; /* 文字1行分 */
  position: relative;
}

/* 縦に2段並べる */
.nav-item__inner {
  display: block;
  transition: transform 0.35s ease;
}

/* 各テキスト */
.nav-item__en,
.nav-item__jp {
  display: block;
  line-height: normal;
  text-align: center;
}

/* 日本語は下に待機 */
.nav-item__jp {
  font-size: 1rem; 
}

.nav-item__inner {
  transition: transform 0.35s ease, opacity 0.35s ease;
}

.nav-item:hover .nav-item__inner {
  transform: translateY(-1.2em) rotateX(8deg);
}
@media (max-width: 768px) {
  .nav-item__inner {
    transform: none !important;

  }
  .site-header__divider {
  height: 140px;
}
}


/* =========================
   ハンバーガーボタン
========================= */

.hamburger {
  display: none; /* PCで非表示 */
  width: 32px;
  height: 24px;
  position: relative;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1100;
}

.hamburger span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--color-black);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.hamburger span:nth-child(3) { bottom: 0; }

/* 開いた状態（×になる） */
.hamburger.is-open span:nth-child(1) {
  transform: translateY(10px) rotate(45deg);
}

.hamburger.is-open span:nth-child(2) {
  opacity: 0;
}

.hamburger.is-open span:nth-child(3) {
  transform: translateY(-10px) rotate(-45deg);
}
.hamburger.is-open span {
  background: var(--color-white);
}

/* =========================
   SPメニュー（オーバーレイ）
========================= */

.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.9);
  z-index: 3;
  display: none;
}

.nav-overlay[aria-hidden="false"] {
  display: block;
}

.nav-overlay__list {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-5);
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-overlay__list a {
  font-size: 1.75rem;
  letter-spacing: 0.1em;
  color: var(--color-white);
}

.img-icon_insta_1{
  width: 30px;
}

/* =========================
   レスポンシブ切り替え
========================= */

@media (max-width: 1200px) {

  /* PCナビを消す */
  .site-nav--desktop {
    display: none;
  }

  /* ハンバーガーを出す */
  .hamburger {
    display: block;
  }

}


/* =========================
   下線を引くアニメ
   ========================= */

.section-divider {
  position: relative;
}

.section-divider::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 100%;
  height: 3px;
  background-color: var(--color-black);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.8s ease-out;
}

.section-divider.active::after {
  transform: scaleX(1);
}

.section-divider--reverse::after { /*   逆方向（左→右）*/
  transform-origin: left;
}

/* =========================
   Scroll downアニメ
   ========================= */
.scroll-indicator {
  position: absolute;
  bottom: var(--space-8);
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  opacity: 0;
  animation: scrollIndicatorFadeIn 0.8s ease forwards 1.2s;
}

@keyframes scrollIndicatorFadeIn {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

.scroll-indicator a {
  position: relative;
  display: inline-block;
  color: var(--color-black);
  font-size: 14px;
  letter-spacing: 0.2em;
  text-decoration: none;
  text-transform: uppercase;
  z-index: 1;
}

/* ドット */
.scroll-indicator::before {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--color-black);
  opacity: 0;
  animation:
    scrollDotMove 1.6s ease-in-out infinite 2s,
    scrollDotFade 1.6s ease-out infinite 2s;
}

@keyframes scrollDotMove {
  from { top: 100%; }
  to   { top: 200%; }
}

@keyframes scrollDotFade {
  0%   { opacity: 0; }
  50%  { opacity: 1; }
  100% { opacity: 0; }
}

@media (max-width: 768px) {
  .scroll-indicator {
  bottom: var(--space-12);
}
}

/* =========================
   TOPに戻るアイコン
   ========================= */

#page-top {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s ease, visibility 0s ease 0.6s; 
  transform: translateY(1px); /* 下にずらして非表示状態 */
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  color: #1A1B1E;
  font-size: 42px;
    z-index: 999;
  cursor: pointer;
}

/* 表示するときのクラス */
#page-top.show {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.6s ease;
  transform: translateY(0); /* 元の位置に */
}
.up-icon{
  width: 40px;
}
@media (max-width: 1312px) {
 .up-icon{
  width: 32px;
}
}
/* =========================
   トップカルーセル
   ========================= */

.top-gallery-wrapper {
  overflow: hidden;
  width: 100%;
  padding: 10vh 0;
}

.top-gallery {
  display: flex;
  gap: 40px;
}

.top-gallery__item {
  flex: 0 0 auto;
  list-style: none;
}

.top-gallery__image {
  max-height: 50vh;
  width: auto;
  display: block;
  border-radius: 6px;
}


/* =========================
   サービス
   ========================= */

.service-list {
  margin-top: var(--space-8);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 420px));
  gap: var(--space-2);
  justify-content: center;
}

.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--color-white);
  padding: var(--space-6);
  border-radius: 8px;
  height: 420px;
  gap: var(--space-6);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.service-card__front {
  background: var(--color-white);
  color: var(--color-black);
  height: 100%;
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  transition: opacity 0.3s ease;
}

.service-card__back {
  position: absolute;
  inset: 0;
  background: var(--color-black);
  color: var(--color-white);
  padding: var(--space-4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.service-card__back p {
  line-height: 1.9; 
  letter-spacing: 0.06em;
}


.service-card:hover {
  transform: translateY(-4px);
}

.service-card:hover .service-card__front {
  opacity: 0;
}

.service-card:hover .service-card__back {
  opacity: 1;
}


.service-card__icon img {
  width: 128px;
  height: auto;
}

@media (max-width: 1200px) {
  .service-list {
    grid-template-columns: 1fr;
    justify-items: center; 
    gap: var(--space-5);
  }
  .service-card {
    width: 100%;
    max-width: 420px;
  }
}
@media (max-width: 768px) {
  .service-card__front {
    padding: var(--space-2);
  }
  .service-card {
    position: relative;
    padding: var(--space-3);
    width: 80vw;
    gap: var(--space-3);
  }
}


/* =========================
   ABOUT
   ========================= */

.profile {
  margin-top: var(--space-8);
}

.profile-toggle {
  display: flex;
  align-items: center;
  gap: 12px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  text-decoration: none;
}

.profile-arrow {
  transition: transform 0.4s ease;
}

.profile.is-open .profile-arrow { /* 開いた状態 */
  transform: rotate(90deg); /* 左 → 下 */
}

.profile-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.7s ease-out,
              opacity 0.6s ease-out;
}

.profile.is-open .profile-content { /* 開いた状態 */
  max-height: 3000px; 
}

.profile-content__inner {
  max-width: 1312px;
  margin: var(--space-3) auto 0;
  padding: var(--space-7) var(--space-8);
  border-radius: 80px;
  background: var(--color-black);
  color: var(--color-white);
  gap: var(--space-6);
}

.profile-why-frame {
  position: relative;
  width: 368px;
  height: 264px;
  border: 3px solid var(--color-black);
  align-items: center;
  overflow: hidden;
}


.profile-why-card {
  position: relative;  
  width: 368px;
  border: 3px solid var(--color-black);
  border-radius: 12px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;

}

.profile-why-lotties {
  display: flex;
  justify-content: center;
  gap: 32px; 
  margin-inline: auto;
}

.profile-why-lottie {
  width: 368px;
  height: 264px;
  border: 3px solid var(--color-white);
  border-radius: 12px;
  width: 100%;
  height: 100%;
}
@media (max-width: 1312px) {
  .about-inner {
    width: 70vw;
  }
  .profile-why-frame {
    position: relative;
    width: 300px;
    height: 215px;
  }
  .profile-why-card {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
  }
    .profile-why-frame {
    position: relative;
    width: 300px;
    height: 215px;
  }
    .profile-why-lotties {
    flex-direction: column;
    text-align: center;
    align-items: center;
    margin-inline: auto;
  }
    .profile-why {
    width: 300px;
    margin-inline: auto;
  }
}
@media (max-width: 600px) {
  .about-inner {
    width: 80vw;
  }
  .profile-content__inner {
    width: 100%;
    margin: var(--space-3) auto 0;
    padding: var(--space-7) var(--space-2);
  }
  .profile-why-frame {
    position: relative;
    width: 240px;
    height: 172px;
  }
  .profile-why-card {
    width: 100%;
    max-width: 240px;
    margin: 0 auto;
  }
    .profile-why-frame {
    width: 240px;
    height: 172px;
  }
    .profile-why-lotties {
    flex-direction: column;
    text-align: center;
    align-items: center;
    margin-inline: auto;
  }
    .profile-why {
    width: 240px;
    margin-inline: auto;
  }
}



/* =========================
   WORKS
   ========================= */

.works-item {
  width: 400px;
  height: 400px;
  overflow: hidden;
  border-radius: 8px;
}

.works-item img {
  width: 100%;
  height: 100%;
  object-fit: cover; 
  display: block;
}

.works-inner p{
  padding-bottom: var(--space-7);
}

@media (max-width:768px){
  .works-item {
    width: 80vw;
    height: 80vw;
}
}

/* =========================
   FLOW
   ========================= */

.flow-step:nth-child(1) { --flow-bg: #525357; }
.flow-step:nth-child(2) { --flow-bg: #47484C; }
.flow-step:nth-child(3) { --flow-bg: #3C3D40; }
.flow-step:nth-child(4) { --flow-bg: #303135; }
.flow-step:nth-child(5) { --flow-bg: #1A1B1E; }

.flow-step__icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background-color: var(--color-white);
  background-repeat: no-repeat;
  background-position: center;
  background-size: 70%;
  flex-shrink: 0;
}

.flow-step__icon--01 { background-image: url('../IMG/GUIDE/01.png'); }
.flow-step__icon--02 { background-image: url('../IMG/GUIDE/02.png'); }
.flow-step__icon--03 { background-image: url('../IMG/GUIDE/03.png'); }
.flow-step__icon--04 { background-image: url('../IMG/GUIDE/04.png'); }
.flow-step__icon--05 { background-image: url('../IMG/GUIDE/05.png'); }

.flow-step {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.flow-step.is-show {
  opacity: 1;
  transform: translateY(0);
}
@media (max-width: 768px) {
  .flow-step {
  height: 200px;
}


}

/* =========================
   BUDGET GUIDE
   ========================= */

/* 背面枠 */
.budget-guide-frame-wrap {
  position: relative;
  width: 516px;
  height: 580px;
}

/* 背面のずらし枠 */
.budget-guide-frame-wrap::before {
  content: "";
  position: absolute;
  top: 6px;
  left: 6px;
  width: 100%;
  height: 100%;
  border: 3px solid var(--color-black);
  border-radius: 24px;
  background: var(--color-orange);
  z-index: 0;
}

/* メイン枠 */
.budget-guide-frame {
  position: relative;
  width: 100%;
  height: 100%;
  border: 3px solid var(--color-black);
  border-radius: 24px;
  background: var(--color-white);
  overflow: hidden; 
  z-index: 1;
}



/* 中身（横スライド） */
.budget-guide-contents {
  height: 100%;
  width: 100%; 
  display: flex;
  align-items: center; 
  transition: transform 0.4s ease;
  list-style: none;
}

/* 各コンテンツ */
.budget-guide-content {
  flex: 0 0 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}


.budget-guide-content img {
 height: 160px;
 padding-top: var(--space-7);
}

.budget-guide-slider {
  display: flex;
  align-items: center;
}

.budget-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-white);
  border: 3px solid var(--color-black);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
}

.budget-arrow--prev {
  left: 0;
  transform: translate(-50%, -50%);
}

.budget-arrow--prev .profile-arrow {
  transform: rotate(180deg);
}

.budget-arrow--next {
  right: 0;
  transform: translate(50%, -50%);
}

@media (max-width: 1312px) {
  .budget-guide-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-8);
    height: auto;
  }
  .budget-guide-frame-wrap {
    position: relative;
    width: 420px;
    height: 480px;
}
}
@media (max-width: 600px) {

  .budget-guide-frame-wrap {
    width: 80vw;
}
  .budget-guide-inner {
    padding-right: var(--space-6);
  }  
}

/* =========================
   CONTACT
   ========================= */

.contact-inner {
  max-width: 1312px;
  margin: 0 auto;
  position: relative;
  padding-top: 64px; /* タイトル分の余白 */
}

.contact-contents {
  width: 100%;
  border-radius: 80px;
  background-color: var(--color-white);
  padding: var(--space-8);
}

.contact-title {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%); 
}


.contact-links {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: var(--space-6);
}

.contact-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-4); 
}


.contact-box {
  position: relative;
  border: 3px solid var(--color-black);
  border-radius: 40px;
  padding: 80px 48px 56px; 
}

.contact-box-title {
  position: absolute;
  top: 0;
  transform: translateY(-50%);
  background: var(--color-black);
  color: var(--color-white);
  padding: 8px 20px;
  border-radius: 9999px;
  font-size: 1rem;
  font-weight: var(--fw-bold);
  letter-spacing: 0.1em;
  white-space: nowrap;
  z-index: 2;
  width: 160px;
}
.contact-box-title--left {
  left: 25%;
  transform: translate(-50%, -50%);
}

.contact-box-title--right {
  left: 75%;
  transform: translate(-50%, -50%);
}
.contact-logo {
  width: 80px;
  height: auto;
}
.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  text-align: left;  
  width: fit-content; 
  margin-inline: auto;  
}


.contact-list li {
  font-size: 1rem;
  line-height: 1.4;
  position: relative;
  padding-left: 1em;
  font-weight: var(--fw-regular);
}

.contact-list li::before {
  content: "•";
  position: absolute;
  left: 0;
}

.contact-divider {
  width: 3px;
  height: 340px;
  background-color: var(--color-black);
}
@media (max-width: 1200px) {
  .contact-box {
    padding: 80px 40px 40px; 
  }
  .contact-link {
    height: 390px;
  }  
  .contact-links {
    grid-template-columns: 1fr;
  }
  .contact-divider {
    display: block;
    width: 100%;
    height: 3px;
    background: var(--color-black);
    margin: var(--space-3) 0;
  }  

  .contact-box-title--left,
  .contact-box-title--right {
    left: 50%;
    transform: translate(-50%, -50%);
  }
  .contact-box-title--right {
    top: auto;
    transform: translate(-50%, 915%);
  }  
  .contact-list li {
    font-size: 0.9rem !important;
  }
}
@media (max-width: 768px) {
  .contact-logo {
    width: 64px;
    height: auto;
  }
  .contact-contents {
    padding: var(--space-2) ;
    border-radius: 46px;
  }
  .contact-box {
    width: 80vw;
    padding: 80px 24px 56px; 
    margin: var(--space-8) 0 0 0;
  }
}
@media (max-width: 500px) {
  .contact-list {
    width: 80%; 
  }
}


/* =========================
   FOOTER
   ========================= */

.footer-logo img {
  height: 50px;
}

.footer-copy {
  font-size: 0.7rem;
}