/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 999;
  padding-top: 15px;
  background-color: #fff;
  /* border-bottom: 1px solid #eee; */
}

.site-header a {
  font-weight: 500;
}

.site-logo-img {
  height: 40px; /* サイズはお好みで */
  width: auto;
  display: block; /* 行間のズレ防止用 */
  width: 160px;
}
/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero {
  height: 100vh;
  display: flex;
  justify-content: center; /* 横方向中央 */
  align-items: center; /* 縦方向中央 */
  background: #fff;
  padding-top: 74px; /* 必要に応じて */
}

.hero-title-img {
  display: inline-block;
  text-align: center;
  margin-left: auto;
  margin-right: 0;
}

.hero-title {
  width: 900px;
  max-width: 100%;
  margin: 0 auto;
}

.hero-text {
  z-index: 1;
  position: relative;
  opacity: 0;
  filter: blur(10px);
  animation: bgBlurFade 2.5s ease-out forwards;
  animation-delay: 0.5s;
}
.hero-lead {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.8;
  letter-spacing: 0.1em;
  color: #333;
  text-align: center;
  margin-top: 35px;
}

@keyframes bgBlurFade {
  0% {
    opacity: 0;
    filter: blur(12px);
  }
  100% {
    opacity: 1;
    filter: blur(0);
  }
}

/* ==========================================================================
   work Section
   ========================================================================== */

.work {
  position: relative;
  min-height: 1272px;
  padding: 100px 0;
  overflow: visible;
  background-color: #f5f6f7;
}

.work-section {
  margin-bottom: 100px;
}
.work h3 {
  margin-bottom: 30px;
  letter-spacing: 0.05em;
  /* text-align: center; */
  font-weight: bold;
  color: #333;
  font-size: 20px;
}

.work-section .badge.text-bg-light {
  font-weight: 500;
  color: #fff !important;
  margin-top: 10px;
  margin-bottom: 3px;
  border-radius: 5px;
  background-color: rgb(34, 34, 32) !important;
  padding-bottom: 6px;
}

.work-desc {
  font-size: 15px;
}

.work-section a {
  overflow: hidden;
  display: block;
}

.work-thumb {
  transition: transform 0.3s ease;
}

a:hover .work-thumb {
  transform: scale(1.05);
  filter: brightness(1.05);
  cursor: zoom-in;
}

/* ==========================================================================
   about Section
   ========================================================================== */

.about {
  padding: 177px 0 250px;
  position: relative;
}

.about-item {
  margin-top: 65px;
}

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

.about-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  /* gap: 12px; */
}

.about-name {
  font-size: 25px;
  font-weight: bold;
  letter-spacing: 0.1em;
}

.about-role {
  font-size: 16px;
  font-weight: bold;
}

.about-desc {
  font-size: 15px;
  line-height: 2;
  letter-spacing: 0.05em;
  margin-bottom: 50px;
}

.about-skill-title {
  margin-top: 10px;
  font-weight: bold;
}

.about-skill-list {
  font-family: monospace;
  font-size: 14px;
  line-height: 1.8;
}

/* 位置の指定 */
.about .deco-left-top {
  top: -120px;
  left: calc(22% - 480px);
  width: 350px;
  animation: rotateItem 15s linear infinite;
}

.about .deco-center-top {
  top: 250px;
  left: calc(25% - 480px);
  width: 300px;
}

/* ==========================================================================
   contact
   ========================================================================== */

/* Contact Section */
.contact-section {
  /* background-color: #e5e8ee; */
  padding: 150px 0;
  text-align: center;
  position: relative;
  overflow: visible;
  /* background: #eee; */
}

/* メッセージ */
.contact-message {
  margin-top: 30px;
  margin-bottom: 10px;
  font-size: 20px;
  letter-spacing: 0.1em;
  color: #333;
}

/* メールアドレス */
.contact-email {
  font-size: 23px;
  /* color: #1c457b; */
  font-weight: bold;
  margin-bottom: 5px;
}

.contact-button {
  position: relative;
  display: inline-block;
  background: #1c457b;
  color: #fff;
  padding: 5px 35px 5px 25px;
  font-size: 15px;
  font-weight: bold;
  border-radius: 9999px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border: 2px solid transparent; /* ← これを追加！ */
  letter-spacing: 0.2em;
}

.contact-button::after {
  content: "";
  width: 6px;
  height: 6px;
  border-top: 2px solid #fff;
  border-right: 2px solid #fff;
  transform: rotate(45deg) translateY(-50%);
  position: absolute;
  top: 50%;
  right: 15px;
  border-radius: 1px;
  transition: 0.3s ease-in-out;
}

.contact-button:hover {
  background: #fff;
  color: #1c457b;
  border-color: #1c457b; /* ← 色だけ変える */
}
.contact-button:hover::after {
  border-color: #1c457b;
}

.site-footer {
  background: #575757;
  color: #eee;
}

.footer-copy {
  font-size: 14px;
}

/* ========== タブレット（768〜991px） ========== */
@media (max-width: 991px) and (min-width: 768px) {
  .hero-bg {
    top: -315px;
    left: 0;
    background-size: cover;
    background-position: center top;
  }

  .hero-text {
    /* margin-top: 420px; */
  }
}

/* ========== スマホ中〜大（576〜767px） ========== */
@media (max-width: 767px) and (min-width: 576px) {
  .hero-bg {
    top: -320px;
    left: 0;
    background-size: cover;
    background-position: 80% top;
  }
}

/* ========== スマホ小サイズ（〜575px） ========== */
@media (max-width: 575px) {
  .hero-bg {
    top: -250px;
    left: 0;
    background-size: cover;
    background-position: 85% top;
  }

  .hero-text {
    text-align: center;
    /* margin-top: 420px; */
    padding-right: 0;
  }
}

/* ========= 共通：768px以下========= */
@media (max-width: 768px) {
  .site-logo-img {
    width: 120px;
  }

  .work {
    height: auto; /* ← ここ！スマホでは高さ固定やめる */
    padding: 20px;
    margin-top: 300px;
  }

  .work-title {
    margin-top: 30px;
    margin-bottom: 10px;
  }

  .section-title .section-label,
  .section-label .d-block {
    font-size: 14px;
  }

  .section-title .section-main,
  .section-title .section-main {
    font-size: 30px;
  }

  .work-img {
    display: inline-block; /* 中央揃えのために必要 */
  }

  .col-md-7 {
    text-align: center; /* 親要素で中央揃え */
  }
  .work-text {
    max-width: 520px;
    padding-right: calc(var(--bs-gutter-x) * 0.5);
    padding-left: calc(var(--bs-gutter-x) * 0.5);
    align-items: center; /* 子要素を中央揃え */
    text-align: center; /* テキストも中央揃え */
    padding-left: 0; /* 必要ならpaddingもリセット */
  }

  .work-item {
    margin-bottom: 50px;
  }

  .work-item.reverse {
    flex-direction: column-reverse;
  }

  .work-text {
    text-align: center;
    margin: 0 auto;
    padding-left: 0;
  }

  .work-img {
    display: block;
    margin: 0 auto;
  }

  /* ==========================================================================
   about Section
   ========================================================================== */

  .about {
    padding: 20px;
    padding-bottom: 170px;
  }

  .about-item {
    flex-direction: column;
    text-align: center;
  }

  .about-name {
    font-size: 18px;
    font-weight: bold;
    letter-spacing: 0.1em;
  }
  .about-text {
    align-items: center;
    margin-top: 30px;
  }

  .about-img {
    max-width: 300px;
    margin: 0 auto;
  }

  .about-decorations {
    display: none;
  }

  .deco-left-top,
  .deco-center-top {
    display: none;
  }
  .work-detail-gallery .content-wrapper {
    padding-left: 20px;
    padding-right: 20px;
  }

  .work-gallery {
    column-count: 2;
    column-gap: 20px;
    display: block;
  }

  /* メールアドレス */
  .contact-email {
    font-size: 14px;
  }
}
