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

/* 検索・フィルターセクション */
.blog-search-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0px 16px 0px 16px;
  margin-top: 160px;
}

.blog-search-container {
  padding: 32px;
}

/* 検索ボックス */
.blog-search-box {
  margin-bottom: 32px;
}

.blog-search-input-wrapper {
  position: relative;
  max-width: 600px;
  margin: 0 auto;
}

.blog-search-input {
  width: 100%;
  padding: 16px 56px 16px 20px;
  border: 2px solid #E5E7EB;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
  box-sizing: border-box;
}

.blog-search-input:focus {
  outline: none;
  border-color: #1E4377;
}

.blog-search-btn {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px 16px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
    background-color: #1E4377;
    border-radius: 0px 8px 8px 0px;
    height: 100%;
    font-size: 0.5rem;
    font-size: 1rem;
    color: #fff;
    border: 2px solid #E5E7EB;
    border-left: transparent;
}

.blog-search-btn:hover {
  background-color: #24508d;
}

.search-icon {
  font-size: 1rem;
}

/* タグフィルター */
.blog-tags-section {
  /*border-top: 1px solid #E5E7EB;
  padding-top: 24px;*/
}

.blog-tags-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #1E4377;
  margin-bottom: 16px;
  text-align: center;
}

.blog-tags-container {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.blog-tag {
  padding: 8px 16px;
  border: 2px solid #E5E7EB;
  border-radius: 20px;
  background: #fff;
  color: #666;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.blog-tag:hover {
  border-color: #1E4377;
  color: #1E4377;
}

.blog-tag--active {
  background: #1E4377;
  border-color: #1E4377;
  color: #fff;
}

/* ブログ一覧セクション */
.blog-list-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px 80px 16px;
}

.blog-list-container {
  padding: 32px;
}

.blog-list-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
  padding-bottom: 16px;
  border-bottom: 1px solid #E5E7EB;
}

.blog-list-count {
  font-size: 1rem;
  color: #666;
}

.blog-list-count span {
  font-weight: 600;
  color: #1E4377;
}

.blog-sort-select {
  padding: 8px 16px;
  border: 2px solid #E5E7EB;
  border-radius: 8px;
  font-size: 0.9rem;
  background: #fff;
  cursor: pointer;
}

.blog-sort-select:focus {
  outline: none;
  border-color: #1E4377;
}

/* ブログカードグリッド */
.blog-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 32px;
  margin-bottom: 48px;
}

/* PC表示時：カード幅を固定して1件でも横幅いっぱいに伸びないようにする */
@media (min-width: 901px) {
  .blog-cards-grid {
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    justify-content: start;
  }
}

.blog-card {
  border: 1px solid #E5E7EB;
  border-radius: 4px;
  overflow: hidden;
  transition: all 0.3s ease;
  background: #fff;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(30,67,119,0.12);
}

.blog-card__image {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.blog-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.blog-card:hover .blog-card__image img {
  transform: scale(1.05);
}

.blog-card__tags {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.blog-card__tag {
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #fff;
}

.blog-card__tag--tax { background: #E63946; }
.blog-card__tag--accounting { background: #2E86AB; }
.blog-card__tag--business { background: #4A7C59; }
.blog-card__tag--cloud { background: #A23B72; }
.blog-card__tag--news { background: #F18F01; }
.blog-card__tag--tips { background: #7209B7; }

.blog-card__content {
  padding: 20px;
}

.blog-card__meta {
  display: flex;
  justify-content: start;
  align-items: center;
  margin-bottom: 12px;
  gap: 8px;
}

.blog-card__date {
  font-size: 0.85rem;
  color: #666;
}

.blog-card__category {
  font-size: 0.8rem;
  color: #1E4377;
  font-weight: 600;
  padding: 2px 8px;
  background: #F0F4FF;
  border-radius: 4px;
}

.blog-card__title {
  margin-bottom: 12px;
}

.blog-card__link {
  color: #1E4377;
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.4;
  transition: color 0.3s ease;
}

.blog-card__link:hover {
  color: #387CDD;
}

.blog-card__excerpt {
  font-size: 0.9rem;
  color: #666;
  line-height: 1.6;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: #999;
}

.blog-card__author {
  font-weight: 500;
}

/* ページネーション */
.blog-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
}

.pagination-btn {
  padding: 8px 16px;
  border: 2px solid #E5E7EB;
  border-radius: 8px;
  background: #fff;
  color: #666;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.pagination-btn:hover:not(:disabled) {
  border-color: #1E4377;
  color: #1E4377;
}

.pagination-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.pagination-numbers {
  display: flex;
  gap: 8px;
}

.pagination-number {
  width: 40px;
  height: 40px;
  border: 2px solid #E5E7EB;
  border-radius: 8px;
  background: #fff;
  color: #666;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pagination-number:hover {
  border-color: #1E4377;
  color: #1E4377;
}

.pagination-number--active {
  background: #1E4377;
  border-color: #1E4377;
  color: #fff;
}

/* レスポンシブ対応 */
@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: 32px;
  }
  
  .services-title-ja {
    font-size: 32px;
  }
  
  .services-title-en {
    font-size: 18px;
  }
  
  .blog-search-section {
    padding: 32px 16px 24px 16px;
    margin-top: 128px;
  }
  
  .blog-search-container {
    padding: 24px;
  }
  
  .blog-tags-container {
    gap: 8px;
  }
  
  .blog-tag {
    padding: 6px 12px;
    font-size: 0.85rem;
  }
  
  .blog-list-section {
    padding: 0 16px 64px 16px;
  }
  
  .blog-list-container {
    padding: 24px;
  }
  
  .blog-list-header {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }
  
  .blog-cards-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .blog-card__image {
    height: 180px;
  }
  
  .blog-card__content {
    padding: 16px;
  }
  
  .blog-card__title .blog-card__link {
    font-size: 1rem;
  }
}

@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;
  }
  
  .blog-search-section {
    padding: 24px 8px 16px 8px;
  }
  
  .blog-search-container {
    padding: 20px;
  }
  
  .blog-search-input {
    padding: 12px 48px 12px 16px;
    font-size: 0.95rem;
  }
  
  .blog-tags-container {
    justify-content: flex-start;
  }
  
  .blog-list-section {
    padding: 0 8px 48px 8px;
  }
  
  .blog-list-container {
    padding: 20px 8px;
  }
  
  .blog-cards-grid {
    gap: 20px;
  }
  
  .blog-card__image {
    height: 160px;
  }
  
  .blog-card__content {
    padding: 12px;
  }
  
  .blog-card__excerpt {
    -webkit-line-clamp: 2;
  }
  
  .blog-pagination {
    gap: 12px;
  }
  
  .pagination-number {
    width: 36px;
    height: 36px;
    font-size: 0.85rem;
  }
} 