/* 横スクロール防止とヘッダー修正 */
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;
}

/* ハンバーガーメニューの修正（servicesページ専用） */
.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;
  padding-right: 150px;
}

@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);
  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;
  -webkit-text-stroke-width: 2px;
  -webkit-text-stroke-color: #fff;
  paint-order: stroke;
}

.services-title-en {
  font-family: 'Roboto', sans-serif;
  font-size: 24px;
  font-weight: normal;
  color: #1E4377;
  line-height: 1.2;
}

/* サービスカードグリッド */
.services-cards {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 64px 0;
  margin-top: 160px;
}

.services-cards__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  max-width: 1440px;
  width: 100%;
  margin-left: 10vw;
  margin-right: 10vw;
}

.service-card--page {
  min-width: 0;
  width: 100%;
  position: relative;
  overflow: hidden;
  min-height: 320px;
}

.service-card__bgimg {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  z-index: 1;
}

.service-card__overlay--page {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 2;
}

.service-card__inner-block {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  height: 90%;
  background: transparent;
  border: 2px solid transparent;
  border-radius: 8px;
  z-index: 3;
  transition: all 0.3s ease;
  opacity: 0;
}

.service-card__content {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 40px 32px 56px 32px;
  text-align: center;
}

.service-card__content p span{
  display: inline-block;
}

.service-card__icon {
  width: 100px;
  height: 100px;
  margin-bottom: 0;
  transition: transform 0.3s ease;
  transform-origin: center bottom;
}

/* ロゴの跳ね上がりアニメーション */
@keyframes logo-bounce {
  0% {
    transform: translateY(0) scale(1);
  }
  25% {
    transform: translateY(-15px) scale(1.1);
  }
  50% {
    transform: translateY(-25px) scale(1.05);
  }
  75% {
    transform: translateY(-10px) scale(1.08);
  }
  100% {
    transform: translateY(0) scale(1);
  }
}

.service-card--page:hover .service-card__icon {
  animation: logo-bounce 0.6s ease-out;
}

.service-card__content h3 {
  font-size: 1.6rem;
  color: #fff;
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 700;
  margin-top: 0;
  margin-bottom: 8px;
  text-align: center;
}

.service-card__en {
  display: inline-block;
  color: #fff;
  font-family: 'Roboto', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  border-radius: 4px;
  padding: 4px 16px;
  margin: 8px 0 32px 0;
  text-align: center;
}

.service-card__en--tax { background: #E63946; }
.service-card__en--accounting { background: #2E86AB; }
.service-card__en--cloud { background: #A23B72; }
.service-card__en--mas1 { background: #F18F01; }
.service-card__en--business { background: #4A7C59; }
.service-card__en--visa { background: #7209B7; }
.service-card__en--ma { background: #C73E1D; }

.service-card__content p {
  color: #fff;
  font-size: 1.1rem;
  margin: 0;
  line-height: 1.8;
  text-align: center;
  max-width: 95%;
}

.service-card__content span.link-memo {
  color: #fff;
  font-size: 0.9rem;
  margin: 0;
  line-height: 1.8;
  text-align: center;
  max-width: 95%;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  text-align: center;
  padding-bottom: 52px;
  justify-self: center;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}
.externallinks__icon{
    width: 5%;
    margin-right: 8px;
    max-width: 40px;
}


.service-card__arrow-wrap {
  position: static !important;
  right: auto !important;
  bottom: auto !important;
  z-index: auto !important;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  margin-top: 16px;
  margin-left: 0;
}

.service-card--page .service-card__arrow {
  width: 40px;
  height: 40px;
  background: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: static;
  margin-left: 0 !important;
  margin-right: 0;
  border: none;
  color: #1E4377;
  font-size: 1.4rem;
  transition: margin-left 0.6s cubic-bezier(0.77,0,0.175,1);
  align-self: flex-start !important;
}

/* サービスカードのホバー時の内側ブロックアニメーション */
.service-card--page:hover .service-card__inner-block {
  opacity: 1;
}

/* 各サービスカードのホバー時の内側ブロック色 */
.service-card--tax:hover .service-card__inner-block {
  background: rgba(230, 57, 70, 0.9);
  border-color: rgba(230, 57, 70, 1);
}

.service-card--accounting:hover .service-card__inner-block {
  background: rgba(46, 134, 171, 0.9);
  border-color: rgba(46, 134, 171, 1);
}

.service-card--cloud:hover .service-card__inner-block {
  background: rgba(162, 59, 114, 0.9);
  border-color: rgba(162, 59, 114, 1);
}

.service-card--mas:hover .service-card__inner-block {
  background: rgba(241, 143, 1, 0.9);
  border-color: rgba(241, 143, 1, 1);
}

.service-card--business:hover .service-card__inner-block {
  background: rgba(74, 124, 89, 0.9);
  border-color: rgba(74, 124, 89, 1);
}

.service-card--visa:hover .service-card__inner-block {
  background: rgba(114, 9, 183, 0.9);
  border-color: rgba(114, 9, 183, 1);
}

.service-card--ma:hover .service-card__inner-block {
  background: rgba(199, 62, 29, 0.9);
  border-color: rgba(199, 62, 29, 1);
}

/*矢印ボタン*/
.voice__animate-item:nth-child(4).animate {
  transition-delay: 300ms;
}
.voice__animate-item.animate {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.8s cubic-bezier(0.4, 0.0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0.0, 0.2, 1);
}
.service__more {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: none;
  color: #ffffff;
  font-weight: 700;
  border-radius: 50px;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  cursor: pointer;
  z-index: 3;
  text-decoration: none;
  overflow: hidden;
  align-self: self-end;
  padding: 16px 32px 0px 16px;;
}
.service__more-arrow {
  display: none;
}

.service__more::after {
  content: '→';
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: bold;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  background: transparent;
  border: 2px solid #FFF;
  transition: transform 0.3s ease;
  margin-left: 32px;
}
/*
.service__more:hover {
  background: none;
}

.service__more:hover::after {
  transform: translateX(8px);
  background: transparent;
  border-color: #FFF;
}
*/

.service-card--tax:hover .service__more {
  transform: translateX(8px);
  background: transparent;
  border-color: #FFF;
}
.service-card--accounting:hover .service__more {
  transform: translateX(8px);
  background: transparent;
  border-color: #FFF;
}
.service-card--accounting:hover .service__more {
  transform: translateX(8px);
  background: transparent;
  border-color: #FFF;
}
.service-card--cloud:hover .service__more {
  transform: translateX(8px);
  background: transparent;
  border-color: #FFF;
}
.service-card--mas:hover .service__more {
  transform: translateX(8px);
  background: transparent;
  border-color: #FFF;
}
.service-card--business:hover .service__more {
  transform: translateX(8px);
  background: transparent;
  border-color: #FFF;
}
.service-card--visa:hover .service__more {
  transform: translateX(8px);
  background: transparent;
  border-color: #FFF;
}
.service-card--ma:hover .service__more {
  transform: translateX(8px);
  background: transparent;
  border-color: #FFF;
}

/* レスポンシブ対応 */
@media (max-width: 1100px) {
  .service__more {
    padding: 16px 8px 0px 16px;
}
}
@media (max-width: 1000px) {
  .services-cards__grid {
    grid-template-columns: 1fr;
    gap: 0px;
    width: 98vw;
    max-width: none;
}
}
@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;
    padding-right: 80px;
  }
  
  .services-title-ja {
    font-size: 32px;
  }
  
  .services-title-en {
    font-size: 18px;
  }
  
  .services-cards {
    margin-top: 80px;
    padding: 32px 0;
  }
  
  
  .service-card--page {
    min-height: 280px;
  }
  
  .service-card__content {
    padding: 24px 16px;
  }
  
  .service-card__icon {
    width: 64px;
    height: 64px;
  }
  
  .service-card__content h3 {
    font-size: 1.3rem;
  }
  
  .service-card__en {
    font-size: 1rem;
    padding: 3px 12px;
    margin: 6px 0 24px 0;
  }
  
  .service-card__content p {
    font-size: 1rem;
  }

  .service-card__content span.link-memo {
    padding-bottom: 24px;
  }

  
  /* モバイルでのロゴアニメーションを無効化 */
  .service-card--page:hover .service-card__icon {
    animation: none;
  }
  
  /* モバイルでのホバー効果を無効化（タッチデバイス用） */
  .service-card--page:hover .service-card__inner-block {
    opacity: 0;
  }
}

@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;
  }
  
  .services-cards {
    margin-top: 120px;
    padding: 24px 0;
  }
  
  .service-card--page {
    min-height: 240px;
  }
  
  .service-card__content {
    padding: 20px 12px;
  }
  
  .service-card__icon {
    width: 56px;
    height: 56px;
  }
  
  .service-card__content h3 {
    font-size: 1.2rem;
    margin-bottom: 6px;
  }
  
  .service-card__en {
    font-size: 0.9rem;
    padding: 2px 10px;
    margin: 4px 0 20px 0;
  }
  
  .service-card__content p {
    font-size: 0.95rem;
    line-height: 1.6;
  }

  .service-card__content span.link-memo {
    padding-bottom: 24px;
    font-size: 0.7rem;
    justify-content: center;
  }
} 
