/* Base Styles */
:root {
  --color-black: #000;
  --color-white: #fff;
  --color-zinc-900: #18181b;
  --color-zinc-800: #27272a;
  --color-zinc-700: #3f3f46;
  --color-zinc-500: #71717a;
  --color-zinc-400: #a1a1aa;
  --color-blue-400: #60a5fa;
  --color-blue-500: #3b82f6;
  --color-blue-600: #2563eb;
  --color-brand-primary: #6164f5;
  --color-pink-500: #ec4899;
  --color-purple-500: #a855f7;
  --gradient-primary: linear-gradient(90deg, #7b60f6 0%, #4969f5 100%);
  --slider-item-width-mobile: 85vw;
  --slider-padding-left-mobile: calc(50% - var(--slider-item-width-mobile) / 2);
}

html {
  overflow-x: hidden;
  max-width: 100vw;
}

body {
  font-family: "Inter", "Noto Sans JP", sans-serif;
  background-color: var(--color-black);
  color: var(--color-white);
  margin: 0;
  overflow-x: hidden;
  max-width: 100vw;
}

.l-app {
  max-width: 100vw;
  overflow-x: hidden;
  position: relative;
}

::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--color-black);
}
::-webkit-scrollbar-thumb {
  background: var(--color-zinc-800);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-zinc-700);
}

/* BEM: Layout & Global */
.selection-pink::selection {
  background: var(--color-pink-500);
  color: white;
}

/* BEM: Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: transparent;
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.header__logo {
  height: 2rem;
  display: flex;
  align-items: center;
  text-decoration: none;
}
.header__logo-img {
  height: 100%;
  width: auto;
  object-fit: contain;
}

.header__lang {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-white);
  letter-spacing: 0.05em;
}
/* .header__lang-item は Google Translate セクションにまとめて定義 */
.header__lang-item--active {
  opacity: 1;
  font-weight: 700;
}
.header__lang-sep {
  opacity: 0.3;
  user-select: none;
}

/* BEM: Hero */
.hero {
  position: relative;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  padding-bottom: 0;
  overflow: hidden;
  perspective: 1000px;
}
@media (min-width: 768px) {
  .hero {
    justify-content: flex-start;
    padding-top: 45vh;
  }
}

.hero__grid {
  position: absolute;
  inset: -100%;
  z-index: 0;
  opacity: 0.5;
  display: grid;
  grid-template-columns: repeat(20, 1fr);
  gap: 0.5rem;
  transform: rotate(12deg) scale(1.4);
  pointer-events: none;
  animation: hero-pan 45s linear infinite;
}

.hero__grid-item {
  width: 20rem;
  height: 12.5rem;
  background: var(--color-zinc-800);
  border-radius: 0.6rem;
  overflow: visible;
  border: 1px solid var(--color-zinc-700);
  flex-shrink: 0;
  position: relative;
  transform-style: preserve-3d;
  animation: hero-card-flip 10s ease-in-out infinite;
}

.hero__grid-front,
.hero__grid-back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  border-radius: 0.6rem;
  overflow: hidden;
}

.hero__grid-back {
  transform: rotateY(180deg);
}

.hero__grid-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    transparent 30%,
    rgba(0, 0, 0, 0.6) 50%,
    var(--color-black) 100%
  );
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 10;
  text-align: left;
  padding: 0 1.5rem;
  max-width: calc(100% - 4vw);
  margin-left: 2vw;
  transition: all 0.3s ease;
  font-size: 1rem;
  box-sizing: border-box;
  margin-bottom: 10vh;
}
@media (min-width: 768px) {
  .hero__content {
    margin-left: 5vw;
    max-width: 90vw;
    font-size: 1rem;
    margin-bottom: 0;
  }
}

.hero__subtitle {
  font-size: 1.125rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  color: var(--color-white);
  animation: fade-in 1s ease-out;
}
.hero__title {
  font-size: clamp(2.3rem, 14.5vw, 3.75rem);
  font-weight: 900;
  margin: 2rem 0;
  letter-spacing: 0.02em;
  line-height: 1.1;
  color: var(--color-white);
  animation: fade-in 1s ease-out 0.2s forwards;
  opacity: 0;
  white-space: normal;
  overflow-wrap: break-word;
}
.hero__title br {
  display: block;
}
.hero__title span {
  white-space: normal;
  display: inline-block;
  max-width: 100%;
}

@media (min-width: 768px) {
  .hero__title {
    font-size: clamp(4rem, 15vw, 8rem);
    line-height: 1;
  }
  .hero__title span {
    white-space: normal;
  }
}

/* BEM: Section */
.section {
  padding: 2rem 0;
  background: var(--color-black);
}
@media (min-width: 768px) {
  .section {
    padding: 6rem 0;
  }
}

.section--intro {
  padding-top: 1rem;
  padding-bottom: 3rem;
}
@media (min-width: 768px) {
  .section--intro {
    padding-top: 0;
    padding-bottom: 6rem;
  }
}
.section--intro .section__title {
  text-align: center;
}
.section--intro .section__subtitle {
  text-align: center;
}
.section--intro .section__text {
  text-align: center;
}

.section--pricing {
  background: #1d1d1f;
}
.section--faq {
  background: transparent;
  position: relative;
  z-index: 10;
}
.section__container {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.section__header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 1rem;
}
@media (min-width: 768px) {
  .section__header {
    margin-bottom: 4rem;
  }
}

.section__header--row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  width: 100%;
  padding-left: var(--slider-padding-left-mobile);
  padding-bottom: 0;
  margin-bottom: 4rem;
}
@media (min-width: 768px) {
  .section__header--row {
    padding-left: 25vw;
    padding-bottom: 1rem;
    max-width: 100%;
  }
}
.section__header--center {
  text-align: center;
  width: 100%;
  padding-bottom: 1rem;
}
@media (min-width: 768px) {
  .section__header--center {
    padding-bottom: 2rem;
    max-width: 100%;
  }
}
.section__subtitle {
  color: var(--color-brand-primary);
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: 0.1em;
  font-size: 0.875rem;
  text-transform: uppercase;
}
.section__title {
  font-size: 1.7rem;
  font-weight: 900;
  margin-top: 0;
  margin-bottom: 0.5em;
  line-height: 1.4;
}
@media (min-width: 768px) {
  .section__title {
    font-size: 3.75rem;
    line-height: 1.2;
    margin: 0.5em 0 0.5em 0;
  }
}

.slider-title {
  font-size: 1.65rem !important;
  font-weight: 700 !important;
  margin-top: 0;
  margin-bottom: 0.2em;
}
@media (min-width: 768px) {
  .slider-title {
    font-size: 2.75rem !important;
    margin: .5em 0;
  }
}

.section__title--medium {
  font-size: 2rem;
}
@media (min-width: 768px) {
  .section__title--medium {
    font-size: 3rem;
  }
}

/* セクションタイトル小サイズ（機能説明・価格表など） */
.section__title--sm {
  text-align: center;
  font-size: 1.875rem;
  margin-bottom: 0;
}
@media (min-width: 768px) {
  .section__title--sm {
    font-size: 1.875rem; /* デスクトップでも固定サイズを維持 */
    line-height: 1.4;
    margin-bottom: .5em;
  }
}

/* ギャラリーセクション */
.section--gallery {
    overflow: hidden;
}
.section--gallery .section__text {
  text-align: center;
}

/* ユーティリティ */
.mb-12 {
  margin-bottom: 0;
}

@media (min-width: 768px) {
  .mb-12 {
    margin-bottom: .5em;
  }
}

.section__text {
  color: var(--color-white);
  font-size: 1rem;
  line-height: 1.6;
  max-width: 56rem;
  margin: 0 auto;
  text-align: left;
}
@media (min-width: 768px) {
  .section__text {
    font-size: 1.12rem;
    text-align: center;
  }
}

.section--quality {
  padding: 13rem 0;
}
@media (min-width: 768px) {
  .section--quality {
    padding: 18rem 0;
  }
}

/* BEM: Slider */
.slider {
  overflow: hidden;
  padding: 2rem 0;
}
@media (min-width: 768px) {
  .slider {
    padding: 6rem 0;
  }
}

.slider__container {
  display: flex;
  overflow-x: auto;
  -ms-overflow-style: none;
  scrollbar-width: none;
  padding-left: var(--slider-padding-left-mobile);
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
}
@media (max-width: 767px) {
  .slider__container {
    scroll-padding-left: var(--slider-padding-left-mobile);
  }
}
@media (min-width: 768px) {
  .slider__container {
    padding-left: 25vw;
    scroll-padding-left: 25vw;
  }
}
.slider__container::-webkit-scrollbar {
  display: none;
}
.slider__controls {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  padding-right: 5vw;
}
.slider__button {
  padding: 0.75rem;
  border-radius: 9999px;
  background: var(--color-zinc-800);
  color: var(--color-white);
  border: none;
  cursor: pointer;
  transition: background 0.3s;
}
.slider__button:hover {
  background: var(--color-zinc-700);
}
.slider__button:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.slider__item {
  scroll-snap-align: center;
  flex-shrink: 0;
  width: var(--slider-item-width-mobile);
  margin-right: 1.5rem;
  padding: 1rem 0;
  position: relative;
}
@media (min-width: 768px) {
  .slider__item {
    scroll-snap-align: start;
    width: 775px;
    margin-right: 3rem;
  }
}

.slider__card {
  border-radius: 40px;
  overflow: hidden;
  background: var(--color-zinc-900);
  aspect-ratio: 16/9;
  position: relative;
  border: 1px solid var(--color-zinc-800);
  width: 100%;
  z-index: 10;
}

.slider__card--plain {
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
}
.slider__card--plain .slider__image {
  object-fit: contain;
  opacity: 1;
  transform: none !important;
}

.slider__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.8;
  transition: transform 0.7s;
}
.slider__card:not(.slider__card--plain):hover .slider__image {
  transform: scale(1.05);
}

.slider__number {
  font-size: 9.216rem;
  font-weight: 200;
  color: rgba(255, 255, 255, 0.12);
  position: absolute;
  bottom: 11rem;
  right: 0.5rem;
  line-height: 0.8;
  user-select: none;
  pointer-events: none;
  z-index: 15;
}
@media (min-width: 768px) {
  .slider__number {
    font-size: 13.312rem;
    bottom: 6.5rem;
    right: 1.5rem;
  }
}

.slider__info {
  position: relative;
  z-index: 20;
  width: 100%;
  margin-top: 1.5rem;
}
.slider__card-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
}
@media (min-width: 768px) {
  .slider__card-title {
    font-size: 1.5rem;
  }
}
.slider__card-text {
  color: var(--color-zinc-300);
  font-size: 0.875rem;
  line-height: 1.6;
  width: 100%;
}
@media (min-width: 768px) {
  .slider__card-text {
    font-size: 1rem;
  }
}

/* HowTo Specific Overrides */
.slider--howto {
  padding: 0 !important;
}
@media (max-width: 767px) {
  .slider--howto {
    padding: 1rem 0 !important;
  }
  .slider--howto .slider__card {
    aspect-ratio: auto !important;
    height: auto !important;
  }
  .slider--howto .slider__image {
    height: auto !important;
  }
  #howto .section__header--row {
    margin-bottom: 0 !important;
  }
}

@media (min-width: 768px) {
  .slider--howto .slider__card-title {
    text-align: center;
  }
  .slider--howto .slider__info {
    margin-top: 3.5rem;
  }
}

/* Gallery */
.gallery {
  position: relative;
  display: flex;
  overflow: hidden;
  width: 100%;
}

.gallery__marquee {
  display: flex;
  gap: 1.5rem;
  padding: 1rem 0;
  animation: marquee 60s linear infinite;
  -webkit-animation: marquee 60s linear infinite;
  animation-delay: 0s;
  animation-play-state: running;
  animation-fill-mode: both;
  white-space: nowrap;
  will-change: transform;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform: translate3d(0, 0, 0);
  -webkit-transform: translate3d(0, 0, 0);
}

.gallery__item {
  width: var(--slider-item-width-mobile);
  aspect-ratio: 16/9;
  border-radius: 1.5rem;
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid var(--color-zinc-800);
  cursor: pointer;
  /* 高さを確保（画像読み込み前も表示） */
  min-height: 200px;
  /* 背景色を設定（画像読み込み中も見える） */
  background-color: #18181b;
  /* GPU加速 */
  transform: translate3d(0, 0, 0);
  -webkit-transform: translate3d(0, 0, 0);
}

@media (min-width: 768px) {
  .gallery__item {
    width: 775px;
    min-height: 435px;
  }
}

.gallery__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  min-height: 200px;
  /* 画像デコードを非同期に */
  decoding: async;
}

@media (min-width: 768px) {
  .gallery__image {
    min-height: 435px;
  }
}

/* マーキーアニメーション */
@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-20%);
  }
}

@-webkit-keyframes marquee {
  0% {
    -webkit-transform: translateX(0);
    transform: translateX(0);
  }
  100% {
    -webkit-transform: translateX(-20%);
    transform: translateX(-20%);
  }
}

#galleryMarquee {
  display: flex;
  width: max-content;
  transform: translateX(0);
}

/* 初期状態は止める */
#galleryMarquee:not(.is-start) {
  animation: none;
}

/* スタート後 */
#galleryMarquee.is-start {
  animation: marquee 30s linear infinite;
}
@media (min-width: 768px) {
  #galleryMarquee.is-start {
    animation: marquee 60s linear infinite;
  }
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Safari/Chrome用 */
@-webkit-keyframes marquee {
  0% {
    -webkit-transform: translateX(0);
    transform: translateX(0);
  }
  100% {
    -webkit-transform: translateX(-20%);
    transform: translateX(-20%);
  }
}

/* BEM: Function */
.function__tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 3rem;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}
@media (min-width: 1024px) {
  .function__tags {
    width: 60%;
  }
}

.function__tag {
  padding: 0.4rem 0.8rem;
  border-radius: 9999px;
  border: 1px solid var(--color-zinc-700);
  font-size: 0.8rem;
  font-weight: 500;
  background: transparent;
  color: var(--color-white);
  cursor: pointer;
  transition: all 0.3s;
}
@media (min-width: 768px) {
  .function__tag {
    padding: 0.5rem 1.5rem;
    font-size: 0.875rem;
  }
}
.function__tag:hover {
  border-color: var(--color-zinc-500);
}
.function__tag--active {
  background: var(--color-white);
  color: var(--color-black);
  border-color: var(--color-white);
}
.function__preview {
  border-radius: 1.5rem;
  overflow: hidden;
  background: var(--color-zinc-900);
  aspect-ratio: 16/9;
  max-width: 64rem;
  margin: 0 auto;
  border: 1px solid var(--color-zinc-800);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  position: relative;
}
.function__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* BEM: Pricing */
.pricing__toggle-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
}
@media (min-width: 768px) {
  .pricing__toggle-wrapper {
    margin-bottom: 5rem;
  }
}
.pricing__toggle-container {
  background: #18181b;
  border: 1px solid #3f3f46;
  border-radius: 9999px;
  padding: 4px;
  display: flex;
  min-width: 320px;
}
.pricing__toggle-btn {
  flex: 1;
  padding: 12px 24px;
  border-radius: 9999px;
  border: none;
  background: transparent;
  color: #71717a;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.pricing__toggle-btn--active {
  background: #ffffff;
  color: #000000;
}

.pricing__grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
  align-items: flex-end;
}
@media (min-width: 1024px) {
  .pricing__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
}

.pricing__card {
  background: #ffffff;
  color: #000000;
  padding: 2.5rem 2rem;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition:
    transform 0.3s,
    padding-bottom 0.3s;
}
@media (min-width: 768px) {
  .pricing__card {
    padding: 3rem 2.5rem;
  }
}

.pricing__card:hover {
  transform: translateY(-8px);
}

.pricing__badge {
  position: absolute;
  top: -12px;
  right: 20px;
  background: var(--gradient-primary);
  color: #ffffff;
  padding: 6px 20px;
  border-radius: 23.429px 23.429px 23.429px 0px;
  font-weight: 700;
  font-size: 0.875rem;
  z-index: 10;
}

.pricing__name {
  font-size: 2.5rem;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 0.5rem;
  margin-block-start: 0;
  margin-block-end: 0;
}
.pricing__subtitle {
  color: #52525b;
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
  font-weight: 500;
}
@media (min-width: 768px) {
  .pricing__subtitle {
    margin-bottom: 2rem;
  }
}

.pricing__price-row {
  display: flex;
  align-items: baseline;
  margin-bottom: 1.5rem;
}
@media (min-width: 768px) {
  .pricing__price-row {
    margin-bottom: 2.5rem;
  }
}
.pricing__price-symbol {
  font-size: 2.5rem;
  font-weight: 900;
  margin-right: 2px;
}
.pricing__price-amount {
  font-size: 4rem;
  font-weight: 900;
  line-height: 1;
}
.pricing__price-unit {
  font-size: 1.5rem;
  font-weight: 900;
  color: #000;
}

.pricing__button {
  width: 100%;
  padding: 1.25rem;
  border-radius: 5px;
  background: var(--gradient-primary);
  color: #ffffff;
  font-weight: 700;
  font-size: 1.125rem;
  border: none;
  cursor: pointer;
  margin-bottom: 3rem;
  transition:
    opacity 0.3s,
    transform 0.2s;
}
.pricing__button:hover {
  opacity: 0.9;
  transform: scale(1.02);
}

.pricing__features {
  list-style: none;
  padding: 0;
  width: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.pricing__feature {
  display: flex;
  align-items: center;
  color: #000;
  font-size: 0.9375rem;
  font-weight: 500;
}
@media (min-width: 768px) {
  .pricing__features {
    gap: 0.875rem;
  }
  .pricing__feature {
    font-size: 1.0625rem;
  }
}
.pricing__feature-icon {
  width: 1.25rem;
  height: 1.25rem;
  color: #5d5fef;
  margin-right: 0.75rem;
  flex-shrink: 0;
}

/* FAQ */
.faq {
  max-width: 90rem;
  margin: 0 auto;
  position: relative;
}
.faq__tabs {
  display: flex;
  justify-content: flex-start; 
  gap: 0.5rem; 
  margin-bottom: 3rem;
  flex-wrap: wrap;
  padding-bottom: 20px;
}
@media (min-width: 768px) {
  .faq__tabs {
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 5.5rem;
  }
}
.faq__tab {
  padding: 0.75rem 1rem;
  text-align: center;
  font-weight: 700;
  cursor: pointer;
  position: relative;
  transition: all 0.3s;
  color: #000000;
  background: #ffffff;
  font-size: .8125rem;
  border: none;
  flex: 0 0 calc(50% - 0.25rem);
}
@media (min-width: 768px) {
  .faq__tab {
    padding: 1.5rem 1rem;
    font-size: 1rem;
    max-width: 220px;
    width: 100%;
  }
}
.faq__tab--active {
  background: #4a4a4a;
  color: #ffffff;
}
.faq__tab--active::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 14px solid transparent;
  border-right: 14px solid transparent;
  border-top: 14px solid #4a4a4a;
  z-index: 20;
  display: none;
}
@media (min-width: 768px) {
  .faq__tab--active::after {
    display: block;
  }
}
.faq__list {
  max-width: 64rem;
  margin: 0 auto;
}
.faq__item {
  border-bottom: 1px solid var(--color-zinc-800);
}
.faq__toggle {
  width: 100%;
  padding: 2rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: transparent;
  border: none;
  color: var(--color-white);
  cursor: pointer;
  text-align: left;
  transition: color 0.3s;
}
.faq__toggle:hover {
  color: var(--color-brand-primary);
}
.faq__question {
  font-weight: 700;
  font-size: 0.9375rem;
  flex: 1;
}
@media (min-width: 768px) {
  .faq__question {
    font-size: 1.125rem;
  }
}
.faq__icon {
  transition: transform 0.3s;
  margin-left: 1rem;
}
.faq__answer {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: all 0.3s ease-out;
  font-size: 0.9375rem;
  color: var(--color-zinc-400);
  line-height: 1.8;
}
@media (min-width: 768px) {
  .faq__answer {
    font-size: 1rem;
  }
}
.faq__answer p {
  display: inline;
}
.faq__answer-label {
  font-weight: 700;
  margin-right: 0.5rem;
}
.faq__item--active .faq__answer {
  max-height: 40rem;
  opacity: 1;
  padding-bottom: 2.5rem;
}
.faq__item--active .faq__icon {
  transform: rotate(180deg);
}

/* BEM: Background Wrapper (Group FAQ and CTA) */
.bg-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: var(--color-black);
}
.bg-wrapper__img {
  position: absolute;
  inset: 0;
  width: 100%;
  object-fit: cover;
  opacity: 1;
  z-index: 0;
  top: 74%;
  left: 50%;
  transform: translate(-50%, -50%) scale(1.1);
}
.bg-wrapper__img-lowerpage {
  position: absolute;
  inset: 0;
  width: 100%;
  object-fit: cover;
  opacity: 1;
  z-index: 0;
  top: 12%;
  left: 50%;
  transform: translate(-50%, -50%) scale(1.1);
}
.bg-wrapper__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.2);
  z-index: 1;
}
@media (min-width: 768px) {
  .bg-wrapper__img {
    top: 80%;
    transform: translate(-50%, -50%) scale(1);
  }
}
@media (min-width: 768px) {
  .bg-wrapper__img-lowerpage {
    top: 35%;
    transform: translate(-50%, -50%) scale(1);
  }
}

/* bg-wrapper内のセクションは背景を透明にして、bg-wrapper__imgが途切れないようにする */
.bg-wrapper .section {
  background: transparent;
}

.bg-wrapper .section--faq,
.bg-wrapper .section--contact {
  background: transparent;
}

/* 下層ページ用のシンプルなフッター */
.footer--simple {
  background: var(--color-black);
  padding: 4rem 0 6rem;
}

/* BEM: CTA */
.cta {
  position: relative;
  z-index: 10;
  width: 100%;
  text-align: center;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  padding: 6rem 0;
}
@media (min-width: 768px) {
  .cta {
    height: 500px;
  }
}
@media (min-width: 768px) {
  .cta-lowerpage {
    height: 900px;
  }
}

.cta__content {
  position: relative;
  z-index: 10;
  width: 100%;
  padding: 0 1.5rem;
}
.cta__title {
  font-size: 2.2rem;
  font-weight: 900;
  margin-bottom: 2.5rem;
  line-height: 1.4;
}
@media (min-width: 768px) {
  .cta__title {
    font-size: 4.5rem;
    line-height: 1.2;
    margin-bottom: 3.5rem;
  }
}
.cta__button {
  background: var(--gradient-primary);
  color: var(--color-white);
  padding: 1.25rem 3rem;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 1.125rem;
  border: none;
  cursor: pointer;
  transition:
    transform 0.3s,
    box-shadow 0.3s;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}
.cta__button:hover {
  transform: scale(1.05);
}

/* BEM: Footer */
.footer {
  position: relative;
  z-index: 10;
  padding: 4rem 0 6rem;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(0, 0, 0, 0.7) 30%,
    rgba(0, 0, 0, 1) 70%
  );
  text-align: center;
}
.footer__logo {
  margin-bottom: 4rem;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 20;
}
@media (min-width: 768px) {
  .footer {
    padding-top: 2rem;
  }
}
.footer__logo-img {
  max-width: 1311px;
  width: 100%;
  height: auto;
  object-fit: contain;
  opacity: 1;
}

.footer__actions {
  position: relative;
  z-index: 20;
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}
.footer__action-btn {
  position: relative;
  background: transparent;
  border: 1px solid #ffffff;
  border-radius: 0;
  color: #ffffff;
  padding: 0.75rem 2rem;
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
  min-width: 140px;
  transition: all 0.3s;
  cursor: pointer;
  overflow: hidden;
}
.footer__action-btn::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 0 10px 10px;
  border-color: transparent transparent #ffffff transparent;
  transition: border-color 0.3s;
}
.footer__action-btn:hover {
  background: #ffffff;
  color: #000000;
}
.footer__action-btn:hover::after {
  border-color: transparent transparent #000000 transparent;
}

.footer__nav {
  position: relative;
  z-index: 20;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
  padding: 2rem 1rem 0;
}
@media (min-width: 768px) {
  .footer__nav {
    gap: 3rem;
  }
}
.footer__nav-link {
  color: var(--color-zinc-400);
  font-size: 0.8125rem;
  text-decoration: none;
  transition: color 0.3s;
  white-space: nowrap;
}
@media (min-width: 768px) {
  .footer__nav-link {
    font-size: 0.875rem;
  }
}
.footer__nav-link:hover {
  color: var(--color-white);
}

.footer__copy {
  position: relative;
  z-index: 20;
  color: #ffffff;
  font-size: 0.75rem;
  margin-bottom: 2rem;
}

/* Animations */
@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes hero-pan {
  0% {
    transform: rotate(12deg) translate(0, 0) scale(1.4);
  }
  100% {
    transform: rotate(12deg) translate(-25%, -15%) scale(1.4);
  }
}

@keyframes hero-card-flip {
  0%,
  45%,
  100% {
    transform: rotateY(0deg);
  }
  50%,
  95% {
    transform: rotateY(180deg);
  }
}

/* ================================================== */
/* Subpage Styles */
/* ================================================== */

/* Common Subpage Styles */
.page-container {
  max-width: 900px;
  margin: 100px auto 60px;
  padding: 0 20px;
}

.page-title {
  font-size: 2.5rem;
  font-weight: 900;
  text-align: center;
  margin-bottom: 80px;
}

/* Pagination（旧・サブページ用 — BEM版は後述の「BEM: Pagination」セクションを参照）
   NOTE: .pagination の基本スタイルが2箇所に定義されています。
   下層ページ用の旧実装（.pagination-item等）と BEM実装（.pagination__button等）で
   HTMLクラスが異なるため共存していますが、.pagination 自体のスタイルは後勝ちになります。 */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 60px;
}

.pagination-item {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #71717a;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s;
}

.pagination-item--active {
  background: #3f3f46;
  color: #fff;
}

.pagination-arrow {
  color: #3f3f46;
}

/* News Page Styles */
.news-list {
  border-top: 1px solid #27272a;
}

.news-item {
  padding: 32px 0;
  border-bottom: 1px solid #27272a;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-decoration: none;
  transition: background 0.3s;
}

.news-item:hover {
  background: rgba(255, 255, 255, 0.02);
}

.news-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.news-date {
  color: #71717a;
  font-size: 0.875rem;
  font-weight: 700;
}

.news-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: #fff;
  padding-right: 1rem;
}

.news-arrow {
  color: #fff;
}

.article-footer {
  text-align: center;
  margin-top: 3rem;
}

@media (min-width: 768px) {
  .article-footer {
    margin-top: 8rem;
  }
}

.back-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 2rem 0.75rem 1.5rem;
  border-radius: 5px;
  background-color: var(--color-zinc-800);
  color: var(--color-white);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 1px solid var(--color-zinc-700);
  cursor: pointer;
}

.back-link:hover {
  background-color: var(--color-zinc-700);
  transform: scale(1.05);
}

/* Blog Page Styles */
/* Blog Archive Styles */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* タブレット: 2列 */
@media (min-width: 640px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
  }
}

/* デスクトップ: 3列 */
@media (min-width: 1024px) {
  .blog-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
  }
}

.blog-item {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-decoration: none;
  transition: transform 0.3s ease;
}

.blog-item:hover {
  transform: translateY(-4px);
}

.blog-thumb {
  aspect-ratio: 16/9;
  background: #27272a;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

/* サムネイル画像のスタイル */
.blog-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.3s ease;
}

.blog-item:hover .blog-thumb img {
  transform: scale(1.05);
}

/* Coming Soon表示 */
.blog-thumb span {
  color: #a1a1aa;
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.blog-badge {
  position: absolute;
  top: -20px;
  left: -20px;
  width: 64px;
  height: 64px;
  background: #c7d2fe;
  opacity: 0.8;
  color: #4f46e5;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 0.875rem;
  z-index: 10;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.blog-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.5;
  transition: color 0.3s;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-item:hover .blog-title {
  color: #6164f5;
}

/* 投稿が少ない時（1-2個）の対応 */
@media (min-width: 640px) {
  .blog-grid:has(.blog-item:nth-child(1):nth-last-child(1)) {
    /* 1個の場合: 中央に1列 */
    grid-template-columns: minmax(300px, 400px);
    justify-content: center;
  }

  .blog-grid:has(.blog-item:nth-child(2):nth-last-child(1)) {
    /* 2個の場合: 2列 */
    grid-template-columns: repeat(2, 1fr);
    max-width: 800px;
  }
}

@media (min-width: 1024px) {
  .blog-grid:has(.blog-item:nth-child(1):nth-last-child(1)) {
    /* 1個の場合: 中央に1列 */
    grid-template-columns: minmax(320px, 400px);
    justify-content: center;
  }

  .blog-grid:has(.blog-item:nth-child(2):nth-last-child(1)) {
    /* 2個の場合: 中央に2列 */
    grid-template-columns: repeat(2, 1fr);
    max-width: 820px;
    justify-content: center;
  }
}

/* Company/Info Page Styles */
.info-item {
  display: flex;
  flex-wrap: wrap;
  padding: 24px 0;
  border-bottom: 1px solid #27272a;
}

.info-label {
  width: 100%;
  font-weight: 700;
  color: #a1a1aa;
  margin-bottom: 8px;
}

.info-content {
  width: 100%;
  line-height: 1.8;
}

@media (min-width: 768px) {
  .info-label {
    width: 200px;
    margin-bottom: 0;
  }

  .info-content {
    width: calc(100% - 200px);
  }
}

/* Detail Page Styles */
.detail-date {
  color: #71717a;
  font-size: 0.875rem;
  font-weight: 700;
  margin-bottom: 12px;
  display: block;
}

.detail-title {
  font-size: 2.25rem;
  font-weight: 900;
  margin-bottom: 60px;
  line-height: 1.3;
}

.detail-img-box {
  width: 100%;
  aspect-ratio: 16/9;
  background: #3f3f46;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 60px;
}

.detail-img-box span {
  font-size: 2.5rem;
  font-weight: 700;
  color: #fff;
}

.detail-content {
  font-size: 1rem;
  color: #fff;
  margin-bottom: 80px;
  letter-spacing: 0.02em;
}

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #3f3f46;
  color: #fff;
  padding: 12px 32px;
  border-radius: 4px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.3s;
  margin: 0 auto;
  width: fit-content;
}

.back-btn:hover {
  background: #52525b;
}

/* Subpage Header Override */
/* .header { 
  background: #000; 
  border-bottom: 1px solid #27272a; 
} */

/* Legal Pages Styles */
.legal-content {
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.8;
  color: #ffffff;
}

.legal-content h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-top: 3rem;
  margin-bottom: 1.5rem;
  color: #ffffff;
}

.legal-content h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: #ffffff;
}

.legal-content p {
  margin-bottom: 1.5rem;
  color: #ffffff;
}

.legal-content ul,
.legal-content ol {
  margin-bottom: 1.5rem;
  padding-left: 2rem;
  color: #ffffff;
}

.legal-content li {
  margin-bottom: 0.5rem;
}

.legal-content table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 2rem;
}

.legal-content table th,
.legal-content table td {
  padding: 1rem;
  border: 1px solid #3f3f46;
  text-align: left;
}

.legal-content table th {
  background-color: #27272a;
  font-weight: 700;
  color: #ffffff;
  width: 30%;
}

.legal-content table td {
  background-color: rgba(39, 39, 42, 0.5);
  color: #ffffff;
}

.legal-content a {
  color: #ffffff;
  text-decoration: underline;
  transition: color 0.3s;
}

.legal-content a:hover {
  color: #a1a1aa;
}

/* テーブル用のレスポンシブ対応 */
@media (max-width: 767px) {
  .legal-content table,
  .legal-content table thead,
  .legal-content table tbody,
  .legal-content table th,
  .legal-content table td,
  .legal-content table tr {
    display: block;
  }

  .legal-content table thead {
    display: none;
  }

  .legal-content table tr {
    margin-bottom: 1rem;
    border: 1px solid #3f3f46;
  }

  .legal-content table td {
    border: none;
    position: relative;
    padding-left: 40%;
  }

  .legal-content table td::before {
    content: attr(data-label);
    position: absolute;
    left: 1rem;
    width: calc(40% - 2rem);
    font-weight: 700;
    color: #ffffff;
  }
}

/* Contact Form 7 Custom Styles for photo81 Theme */

/* フォームコンテナ */
.cf7-form-container {
  max-width: 600px;
  margin: 0 auto;
  padding: 0;
}

/* フォームグループ */
.cf7-form-group {
  margin-bottom: 2rem;
}

/* ラベル */
.cf7-label {
  display: block;
  color: #ffffff;
  font-size: 0.875rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  letter-spacing: 0.05em;
}

/* 必須マーク */
.cf7-required {
  color: #ec4899;
  margin-left: 0.25rem;
}

/* 任意マーク */
.cf7-optional {
  color: #a1a1aa;
  font-weight: 400;
  font-size: 0.75rem;
}

/* テキスト入力、メール入力 */
.cf7-input,
.cf7-select,
.cf7-textarea {
  width: 100%;
  background-color: #27272a;
  border: 1px solid #3f3f46;
  border-radius: 8px;
  color: #ffffff;
  padding: 0.875rem 1rem;
  font-size: 1rem;
  font-family: "Inter", "Noto Sans JP", sans-serif;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.cf7-input:focus,
.cf7-select:focus,
.cf7-textarea:focus {
  outline: none;
  border-color: #6164f5;
  box-shadow: 0 0 0 3px rgba(97, 100, 245, 0.1);
}

.cf7-input::placeholder,
.cf7-textarea::placeholder {
  color: #71717a;
}

/* セレクトボックス */
.cf7-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23FFFFFF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 20px;
  padding-right: 3rem;
  cursor: pointer;
}

.cf7-select option {
  background-color: #27272a;
  color: #ffffff;
}

/* テキストエリア */
.cf7-textarea {
  min-height: 150px;
  resize: vertical;
  line-height: 1.6;
}

/* ラジオボタングループ */
.cf7-radio-group {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.cf7-radio {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}

.cf7-radio input[type="radio"] {
  appearance: none;
  width: 20px;
  height: 20px;
  border: 2px solid #3f3f46;
  border-radius: 50%;
  background-color: #27272a;
  cursor: pointer;
  position: relative;
  transition: all 0.3s ease;
}

.cf7-radio input[type="radio"]:checked {
  border-color: #6164f5;
  background-color: #6164f5;
}

.cf7-radio input[type="radio"]:checked::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #ffffff;
}

.cf7-radio span {
  color: #ffffff;
  font-size: 1rem;
  cursor: pointer;
}

/* チェックボックスグループ */
.cf7-checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.cf7-checkbox input[type="checkbox"] {
  appearance: none;
  width: 20px;
  height: 20px;
  min-width: 20px;
  border: 2px solid #3f3f46;
  border-radius: 4px;
  background-color: #27272a;
  cursor: pointer;
  position: relative;
  transition: all 0.3s ease;
  margin-top: 0.125rem;
}

.cf7-checkbox input[type="checkbox"]:checked {
  border-color: #6164f5;
  background-color: #6164f5;
}

.cf7-checkbox input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 6px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.cf7-checkbox-label {
  color: #ffffff;
  font-size: 0.875rem;
  line-height: 1.6;
  cursor: pointer;
  flex: 1;
}

.cf7-link {
  color: #6164f5;
  text-decoration: underline;
  transition: color 0.3s ease;
}

.cf7-link:hover {
  color: #7b60f6;
}

/* 送信ボタン */
.cf7-form-submit {
  margin-top: 3rem;
}

.cf7-submit-btn {
  width: 100%;
  background: linear-gradient(90deg, #7b60f6 0%, #4969f5 100%);
  color: #ffffff;
  font-size: 1rem;
  font-weight: 700;
  padding: 1rem 2rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  letter-spacing: 0.05em;
  font-family: "Inter", "Noto Sans JP", sans-serif;
}

.cf7-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(97, 100, 245, 0.3);
}

.cf7-submit-btn:active {
  transform: translateY(0);
}

/* エラーメッセージ */
.wpcf7-not-valid-tip {
  color: #ec4899;
  font-size: 0.75rem;
  margin-top: 0.5rem;
  display: block;
}

.wpcf7-response-output {
  border: none;
  padding: 1rem;
  margin: 2rem 0 0;
  border-radius: 8px;
  font-size: 0.875rem;
}

.wpcf7-validation-errors {
  background-color: rgba(236, 72, 153, 0.1);
  border-left: 4px solid #ec4899;
  color: #ec4899;
}

.wpcf7-mail-sent-ok {
  background-color: rgba(34, 197, 94, 0.1);
  border-left: 4px solid #22c55e;
  color: #22c55e;
}

.wpcf7-spam-blocked {
  background-color: rgba(251, 146, 60, 0.1);
  border-left: 4px solid #fb923c;
  color: #fb923c;
}

/* 送信中のスピナー */
.wpcf7-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #ffffff;
  animation: cf7-spin 0.6s linear infinite;
  margin-left: 1rem;
  vertical-align: middle;
}

@keyframes cf7-spin {
  to {
    transform: rotate(360deg);
  }
}

/* レスポンシブ対応 */
@media (max-width: 767px) {
  .cf7-form-container {
    padding: 0 1rem;
  }

  .cf7-radio-group {
    flex-direction: column;
    gap: 1rem;
  }

  .cf7-submit-btn {
    font-size: 0.875rem;
    padding: 0.875rem 1.5rem;
  }
}

/* Contact Form 7のデフォルトスタイルを無効化 */
.wpcf7 form {
  padding: 0;
  margin: 0;
}

.wpcf7 form p {
  margin: 0;
}

.wpcf7 br {
  display: none;
}

/* アクセシビリティ */
.cf7-input:focus-visible,
.cf7-select:focus-visible,
.cf7-textarea:focus-visible,
.cf7-radio input:focus-visible,
.cf7-checkbox input:focus-visible {
  outline: 2px solid #6164f5;
  outline-offset: 2px;
}

/* Contact Form on Front Page */
.section--contact {
  max-width: 100%;
  position: relative;
  z-index: 10;
}

.contact-form-wrapper {
  max-width: 600px;
  margin: 0 auto;
  background-color: rgba(39, 39, 42, 0.8);
  padding: 3rem 2.5rem;
  border-radius: 12px;
  border: 1px solid rgba(63, 63, 70, 0.5);
  backdrop-filter: blur(10px);
}

@media (max-width: 767px) {
  .contact-form-wrapper {
    padding: 2rem 0;
  }
}

.contact-intro {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
  margin-bottom: 3rem;
}

@media (max-width: 767px) {
  .contact-intro {
    max-width: 600px;
    text-align: left;
    margin-bottom: 2rem;
  }
}


/* ================================================== */
/* Google Translate Styles */
/* ================================================== */
/* Google Translate Custom Styles */
/* Google翻訳のデフォルトUIを非表示 */
#google_translate_element {
  position: absolute;
  left: -9999px;
  top: -9999px;
  visibility: hidden;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.goog-te-banner-frame.skiptranslate,
.goog-te-gadget-icon {
  display: none !important;
}

body {
  top: 0 !important;
}

.skiptranslate iframe {
  visibility: hidden !important;
  height: 0 !important;
  width: 0 !important;
}

/* 言語切り替えボタンのコンテナ */
.lang-switch {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

/* BEM: Header - 言語切り替えボタン */
.header__lang-item {
  background-color: transparent;
  border: none;
  color: #ffffff;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.3s, font-weight 0.3s, all 0.3s ease;
  border-radius: 4px;
  font-family: "Inter", "Noto Sans JP", sans-serif;
  letter-spacing: 0.05em;
}

.header__lang-item:hover {
  opacity: 1;
  color: #ffffff;
}

/* アクティブな言語ボタン */
/* .header__lang-item--active {
  color: #FFFFFF;
} */

.header__lang-item--active:hover {
  color: #ffffff;
}

/* レスポンシブ対応 */
@media (max-width: 767px) {
  .lang-switch {
    gap: 0.375rem;
  }

  .header__lang-item {
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
  }
}

/* Google翻訳のツールチップを非表示 */
.goog-tooltip {
  display: none !important;
}

.goog-tooltip:hover {
  display: none !important;
}

.goog-text-highlight {
  background-color: transparent !important;
  box-shadow: none !important;
}

/* Google翻訳のフレームを完全に非表示 */
iframe.goog-te-banner-frame {
  display: none !important;
}

.goog-te-balloon-frame {
  display: none !important;
}

/* ページ上部の余白を削除（Google翻訳バナー対策） */
body.translated-ltr {
  margin-top: 0 !important;
}

body.translated-rtl {
  margin-top: 0 !important;
}

/* ==========================================
   GTranslate
   ========================================== */
.gtranslate_wrapper {
  display: flex;
  align-items: center;
}

.gtranslate_wrapper .glink[data-gt-lang="ja"] {
  order: 1;
}

.gtranslate_wrapper .glink[data-gt-lang="en"] {
  order: 2;
}

.gtranslate_wrapper .glink[data-gt-lang="ja"]::after {
  content: " / ";
  margin: 0 4px;
  color: rgba(255, 255, 255, 0.6);
}

.notranslate {
  color: rgba(255, 255, 255, 0.6);
}

.gt-current-lang {
  color: #fff;
}

/* ==========================================
   BEM: Pagination
   ========================================== */

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 4rem 0 2rem;
  padding: 0 1rem;
}

.pagination__button,
.pagination__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  background-color: var(--color-zinc-800);
  color: var(--color-white);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 1px solid var(--color-zinc-700);
  cursor: pointer;
}

.pagination__button:hover:not(.pagination__button--disabled),
.pagination__number:hover:not(.pagination__number--current) {
  background-color: var(--color-zinc-700);
  transform: scale(1.05);
}

.pagination__number--current {
  background-color: var(--color-white);
  color: var(--color-black);
  font-weight: 700;
  cursor: default;
  border-color: var(--color-white);
}

.pagination__button--disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.pagination__button--disabled:hover {
  transform: none;
}

/* 前へ/次へボタンの矢印（CSSで実装） */
.pagination__button--prev::before,
.pagination__button--next::before {
  content: "";
  display: inline-block;
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1;
}

.pagination__button--prev::before {
  content: "‹";
}

.pagination__button--next::before {
  content: "›";
}

.pagination__dots {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  color: var(--color-zinc-500);
  font-weight: 700;
  user-select: none;
}

/* レスポンシブ対応 */
@media (max-width: 767px) {
  .pagination {
    gap: 0.375rem;
  }

  .pagination__button,
  .pagination__number {
    width: 2.25rem;
    height: 2.25rem;
    font-size: 0.8125rem;
  }

  .pagination__dots {
    width: 2.25rem;
    height: 2.25rem;
  }
}

@media (min-width: 768px) {
  .pagination {
    gap: 0.75rem;
  }

  .pagination__button,
  .pagination__number {
    width: 3rem;
    height: 3rem;
    font-size: 1rem;
  }

  .pagination__dots {
    width: 3rem;
    height: 3rem;
  }
}
