/* 横スクロール防止とヘッダー修正 */
html, body {
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
}

.header {
  width: 100%;
  overflow-x: hidden;
}

.header__inner {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

/* ハンバーガーメニューの修正（blogページ専用） */
.hamburger-menu {
  flex-direction: column;
  justify-content: space-around;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
  flex-shrink: 0;
}

@media (max-width: 900px) {
  .hamburger-menu {
    display: flex;
    position: relative;
    right: auto;
    top: auto;
    transform: none;
    margin-left: auto;
    margin-right: 8px;
    width: 30px;
    height: 30px;
  }
  
  .header__inner {
    justify-content: space-between;
    padding-right: 16px;
    align-items: center;
  }
}

@media (max-width: 600px) {
 
  .header__inner {
    padding-right: 16px;
  }
}

/* パンくずリスト */
.breadcrumb {
  margin: 84px 5% 4px 5%;
  font-size: 0.8rem;
  color: #888;
}

.breadcrumb a {
  color: #1E4377;
  text-decoration: underline;
}

/* サービスタイトルエリア */
.services-title-area {
  position: relative;
  width: 100vw;
  min-width: 320px;
  height: auto;
  opacity: 0;
  animation: titleAreaFadeIn 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.2s forwards;
}

@keyframes titleAreaFadeIn {
  to {
    opacity: 1;
  }
}

.services-title-whiteband {
  position: relative;
  top: 0; left: 0;
  width: 95vw;
  background: #fff;
  z-index: 2;
  display: flex;
  align-items: center;
  overflow: hidden;
  height: auto;
  border-radius: 0;
  transform: translateX(-30%);
  opacity: 0;
  animation: whiteBandSlideIn 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.4s forwards;
}

@keyframes whiteBandSlideIn {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.services-title-blueband {
  position: absolute;
  right: 0%;
  top: 50%;
  width: 95vw;
  height: 100%;
  background: linear-gradient(90deg, #387CDD 0%, #1E4377 100%);
  z-index: 1;
  border-radius: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  pointer-events: none;
  transform: translateX(30%);
  opacity: 0;
  animation: blueBandSlideIn 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.3s forwards;
}

@keyframes blueBandSlideIn {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.services-title-blueband-text {
  position: absolute;
  top: 75%;
  left: 5vw;
  transform: translateY(-50%);
  width: 100vw;
  color: #fff;
  font-size: 1.1rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding-left: 0;
  padding-right: 0;
  height: auto;
  margin: 0;
  opacity: 0;
  animation: blueTextFadeIn 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.8s forwards;
}

@keyframes blueTextFadeIn {
  to {
    opacity: 1;
  }
}

.services-title-texts {
  margin-left: 10vw;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-top: 80px;
  padding-bottom: 80px;
  opacity: 0;
  transform: translateY(20px);
  animation: whiteTextSlideUp 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.6s forwards;
}

@keyframes whiteTextSlideUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.services-title-bgmark {
  position: absolute;
  right: -333px;
  top: 50%;
  transform: translateY(-50%) scale(0.9);
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  height: auto;
  opacity: 0;
  animation: logoScaleIn 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) 1.0s forwards;
}

@keyframes logoScaleIn {
  to {
    opacity: 1;
    transform: translateY(-50%) scale(1);
  }
}

.services-title-bgmark img {
  width: 55%;
  object-fit: contain;
  display: block;
}

.services-title-ja {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 48px;
  font-weight: bold;
  color: #1E4377;
  line-height: 1.2;
}

.services-title-en {
  font-family: 'Roboto', sans-serif;
  font-size: 24px;
  font-weight: normal;
  color: #1E4377;
  line-height: 1.2;
}

section.privacy-section {
  margin: 0 32px;
  margin-top: 160px;
}

.privacy-container {
  max-width: 1000px;
  margin: auto;
  background: #FFF;
  padding: 32px;
  margin-bottom: 80px;
}

h2.privacy-title {
  text-align: center;
  color: #1E4377;
}
h3.privacy-content__title {
  margin-bottom: 8px;
}
p.privacy-content__text {
  font-size: 1rem;
  margin-top: 8px;
  margin-bottom: 24px;
}


/* レスポンシブ対応 */
@media (max-width: 900px) {
  .services-title-area {
    position: relative;
    width: 100vw;
    min-width: 320px;
    height: auto;
    min-height: 180px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    opacity: 0;
    animation: titleAreaFadeIn 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.2s forwards;
  }
  
  .services-title-whiteband {
    position: relative;
    width: 95vw;
    background: #fff;
    z-index: 2;
    display: flex;
    align-items: center;
    overflow: hidden;
    height: auto;
    border-radius: 0;
    min-height: 80px;
    flex: 1 1 auto;
    transform: translateX(-25%);
    opacity: 0;
    animation: whiteBandSlideIn 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.4s forwards;
  }
  
  .services-title-blueband {
    position: absolute;
    right: 0;
    top: 50%;
    width: 95vw;
    height: 100%;
    background: linear-gradient(90deg, #387CDD 0%, #1E4377 100%);
    z-index: 1;
    border-radius: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    pointer-events: none;
    transform: translateX(25%);
    opacity: 0;
    animation: blueBandSlideIn 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.3s forwards;
  }
  
  .services-title-bgmark {
    position: absolute;
    right: -22rem;
    top: 50%;
    transform: translateY(-50%) scale(0.9);
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: unset;
    height: 60px;
    opacity: 0;
    animation: logoScaleIn 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) 1.0s forwards;
  }
  
  .services-title-bgmark img {
    width: 45%;
  }
  
  .services-title-texts {
    margin-left: 6vw;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding-top: 24px;
    padding-bottom: 24px;
    opacity: 0;
    transform: translateY(15px);
    animation: whiteTextSlideUp 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.6s forwards;
  }
  
  .services-title-blueband-text {
    opacity: 0;
    animation: blueTextFadeIn 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.8s forwards;
  }
  
  .services-title-ja {
    font-size: 32px;
  }
  
  .services-title-en {
    font-size: 18px;
  }
}

@media (max-width: 600px) {
  .services-title-blueband-text {
    font-size: 1rem;
    left: 3vw;
    padding-right: 48px;
  }
  
  .services-title-texts {
    margin-left: 7vw;
  }
  
  .services-title-ja {
    font-size: 28px;
  }
  
  .services-title-en {
    font-size: 16px;
  }

  .services-title-bgmark {
    right: -16rem;
  }
  
  .services-title-bgmark img {
    width: 55%;
    opacity: 0.5;
  }

  section.privacy-section {
    margin: 0 16px;
    margin-top: 128px;
  }
  .privacy-container {
    padding: 32px 16px;
}
p.privacy-content__text {
  font-size: 0.9rem;
}

} 