/* ホームページ専用スタイル */

/* ヒーローセクション */
.hero-section {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 50px;
  overflow: hidden;
}

.hero-section .container {
  margin: 0;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  height: 100%;
  gap: 2rem;
}

.hero-text {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  padding: 60px 50px;
  width: 500px;
  text-align: center;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  animation: fadeInUp 1s ease-out;
}

.hero-title {
  margin-bottom: 40px;
}

.title-main {
  display: block;
  font-size: var(--font-size-4xl);
  font-weight: bold;
  color: #2c5530;
  letter-spacing: 0.2em;
  margin-bottom: 15px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.title-sub {
  display: block;
  font-size: var(--font-size-3xl);
  font-weight: 600;
  color: #2c5530;
  margin-bottom: 15px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.title-description {
  display: block;
  font-size: 1.2rem;
  font-weight: 600;
  color: #4a5c4e;
  letter-spacing: 0.1em;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.hero-cta {
  margin-top: 30px;
}

.hero-text .btn-primary {
  background-color: var(--primary-color);
  color: var(--white);
  border-color: var(--primary-color);
}

.hero-text .btn-primary:hover {
  background-color: var(--secondary-color);
  color: var(--white);
  border-color: var(--secondary-color);
}

.hero-guide {
  background: rgba(101, 182, 136, 0.9);
  border-radius: 500px;
  width: 500px;
  padding: 2rem;
  height: auto;
  text-align: center;
  box-shadow: var(--box-shadow);
  animation: fadeInUp 1s ease-out;
  overflow: hidden;
  position: relative;
  text-decoration: none;
  display: block;
  transition: all 0.3s ease;
  cursor: pointer;
  border: var(--secondary-color) solid 5px;
}

.hero-guide::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('https://zarvid-international-law-firm.web.app/home/btn-texture.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.7;
  border-radius: 20px;
  z-index: 1;
  transition: all 0.3s;
}

.hero-guide:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
  background: rgba(101, 182, 136, 1);
}

.hero-guide:hover::before {
  opacity: 0.9;
}

.hero-guide:active {
  transform: translateY(-2px);
  transition: all 0.1s ease;
}

.hero-guide::after {
  position: absolute;
  content: '';
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.85) 45%, rgba(255, 255, 255, 0) 100%);
  transform: skewX(-45deg);
  animation: kirakira 2.5s cubic-bezier(0.55, 0.085, 0.68, 0.53) infinite;
}

@keyframes kirakira {
  0% {
    left: -100%;
  }

  25% {
    left: 100%;
  }

  100% {
    left: 100%;
  }
}

.hero-guide .btnTitle {
  display: block;
  font-size: var(--font-size-2xl);
  font-weight: bold;
  color: var(--text-white);
  letter-spacing: 0.2em;
  margin-bottom: 15px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  position: relative;
  z-index: 2;
}

.hero-guide .btnSub {
  display: block;
  font-size: var(--font-size-lg);
  font-weight: 600;
  letter-spacing: 5px;
  color: var(--text-white);
  margin-bottom: 15px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  position: relative;
  z-index: 2;
}

/* アニメーション */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* レスポンシブ */
@media (max-width: 768px) {
  .hero-section {
    padding: 0;
    justify-content: center;
    align-items: center;
  }

  .hero-content {
    justify-content: center;
  }

  .hero-text {
    padding: 40px 0;
    width: 90vw;
    max-width: 450px;
  }

  .hero-guide {
    padding: 1rem 1.5rem;
    width: 90vw;
    max-width: 450px;
  }

  .hero-guide::before {
    opacity: 0.4;
  }

  .hero-guide .btnTitle {
    font-size: var(--font-size-xl);
    letter-spacing: normal;
  }

  .hero-guide .btnSub {
    letter-spacing: 2px;
    word-break: keep-all;
    font-size: var(--font-size-sm);
  }

  .title-main {
    font-size: 2rem;
    letter-spacing: 0.1em;
  }

  .title-sub {
    font-size: 1.5rem;
  }

  .title-description {
    font-size: 1rem;
  }

  .btn {
    padding: 12px 30px;
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .title-main {
    font-size: 1.8rem;
  }

  .title-sub {
    font-size: 1.3rem;
  }

  .title-description {
    font-size: 0.9rem;
  }
}

/* 律師紹介セクション */
.lawyer-intro-section {
  padding: 3rem 0;
  background-color: var(--white);
}

.lawyer-intro {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
  max-width: 900px;
  margin: 0 auto;
}

.lawyer-photo {
  text-align: center;
}

.lawyer-img {
  object-fit: cover;
  box-shadow: var(--box-shadow-lg);
}

.lawyer-info {
  text-align: center;
}

.lawyer-name {
  font-size: var(--font-size-4xl);
  font-weight: var(--font-weight-bold);
  color: var(--text-color);
  margin-bottom: 0.5rem;
}

.lawyer-title {
  font-size: var(--font-size-xl);
  color: var(--primary-color);
  font-weight: var(--font-weight-medium);
  margin-bottom: 0.5rem;
}

.lawyer-name-en {
  font-size: var(--font-size-lg);
  color: var(--text-light);
  margin-bottom: 2rem;
  font-weight: var(--font-weight-medium);
}

.lawyer-description {
  margin-bottom: 2rem;
}

.lawyer-description p {
  font-size: var(--font-size-lg);
  line-height: 1.8;
  color: var(--text-color);
  margin-bottom: 1rem;
}

.lawyer-intro-section .btn-primary {
  background-color: var(--primary-color);
  color: var(--white);
  border-color: var(--primary-color);
}

.lawyer-intro-section .btn-primary:hover {
  background-color: var(--secondary-color);
  color: var(--white);
  border-color: var(--secondary-color);
}

/* ZARVID理念セクション */
.zarvid-philosophy-section {
  background: #2c2c2c;
  padding: 0;
  overflow: hidden;
}

.zarvid-philosophy-section .container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 80px;
}

.philosophy-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0;
  height: 400px;
}

.philosophy-item {
  position: relative;
  background: #2c2c2c;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  text-align: center;
  cursor: default;
  overflow: hidden;
  transition: all 0.8s ease;
}

.philosophy-item:hover {
  background: #65B688;
}

.philosophy-letter {
  font-size: 4rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 15px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  transition: all 0.6s ease;
}

.philosophy-word {
  font-size: 1.3rem;
  font-weight: 500;
  color: #ffffff;
  font-style: italic;
  margin-bottom: 15px;
  opacity: 0.9;
}

.philosophy-description {
  font-size: 0.9rem;
  color: #ffffff;
  line-height: 1.4;
  margin-bottom: 20px;
  opacity: 0.8;
  word-break: keep-all;
}

.philosophy-icon {
  font-size: 2.5rem;
  color: #ffffff;
  opacity: 0.7;
  transition: all 0.6s ease;
}

.philosophy-item:hover .philosophy-icon {
  opacity: 1;
  transform: scale(1.1);
}

.philosophy-item:hover .philosophy-letter {
  transform: scale(1.05);
}

/* レスポンシブ対応 - PC以外は完全に縦配置 */
@media (max-width: 1024px) {
  .zarvid-philosophy-section .container {
    padding: 0;
  }

  .philosophy-grid {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(6, auto);
    height: auto;
    gap: 0;
  }

  .philosophy-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 30px 40px;
    text-align: left;
    min-height: 120px;
  }

  .philosophy-content {
    display: flex;
    align-items: center;
    flex: 1;
  }

  .philosophy-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-right: 30px;
    min-width: 100px;
  }

  .philosophy-center {
    flex: 1;
    margin-left: 10px;
  }

  .philosophy-letter {
    font-size: 3.5rem;
    margin-bottom: 5px;
  }

  .philosophy-word {
    font-size: 1.1rem;
    margin-bottom: 0;
    font-style: italic;
  }

  .philosophy-description {
    font-size: 1.2rem;
    margin-bottom: 0;
    line-height: 1.4;
  }

  .philosophy-icon {
    font-size: 2.5rem;
    margin-left: 20px;
  }
}

@media (max-width: 768px) {
  .philosophy-item {
    padding: 25px 30px;
    min-height: 100px;
  }

  .philosophy-left {
    margin-right: 20px;
    min-width: 80px;
  }

  .philosophy-letter {
    font-size: 3rem;
  }

  .philosophy-word {
    font-size: 1rem;
  }

  .philosophy-description {
    font-size: 1.1rem;
  }

  .philosophy-icon {
    font-size: 2.2rem;
    margin-left: 15px;
  }
}

@media (max-width: 480px) {
  .philosophy-item {
    padding: 20px 20px;
    min-height: 90px;
  }

  .philosophy-left {
    margin-right: 15px;
    min-width: 70px;
  }

  .philosophy-letter {
    font-size: 2.5rem;
  }

  .philosophy-word {
    font-size: 0.9rem;
  }

  .philosophy-description {
    font-size: 0.9rem;
  }

  .philosophy-icon {
    font-size: 2rem;
    margin-left: 10px;
  }
}

/* CTAセクション */
.cta-section .btn {
  position: relative;
  z-index: 10;
  margin: 1rem;
  overflow: hidden;
}

.cta-section .btn-outline {
  background-color: var(--secondary-color);
}

.cta-section .btn-outline::after {
  position: absolute;
  content: '';
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.85) 45%, rgba(255, 255, 255, 0) 100%);
  transform: skewX(-45deg);
  animation: kirakira 2.5s cubic-bezier(0.55, 0.085, 0.68, 0.53) infinite;
}

/* サービス項目セクション */
.services-section {
  padding: 5rem 0;
  background-color: var(--white);
}

.services-section .btn-primary {
  background-color: var(--primary-color);
  color: var(--white);
  border-color: var(--primary-color);
}

.services-section .btn-primary:hover {
  background-color: var(--secondary-color);
  color: var(--white);
  border-color: var(--secondary-color);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.service-item {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 0;
  padding-bottom: 1rem;
  background-color: var(--background-light);
  border-radius: var(--border-radius);
  text-align: center;
  transition: var(--transition);
  border: 2px solid transparent;
  position: relative;
  margin: 0 auto;
  width: 75vw;
  height: 30vh;
  min-width: 300px;
  min-height: 125px;
  max-width: 480px;
  max-height: 200px;
  overflow: hidden;
  cursor: pointer;
}

.service-item:hover {
  border-color: var(--primary-color);
  transform: translateY(-3px);
  box-shadow: var(--box-shadow-lg);
}

.service-item-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  filter: grayscale(0.3) brightness(0.7);
  opacity: 0.8;
  transition: all 0.3s ease;
}

.service-item-background a {
  display: block;
  width: 100%;
  height: 100%;
}

.service-item-background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  user-select: none;
  pointer-events: none;
}

.service-item:hover .service-item-background {
  filter: grayscale(0) brightness(1);
  opacity: 1;
}

.service-item:nth-child(2):hover .service-item-background {
  filter: grayscale(0) brightness(0.8);
  opacity: 1;
}

.service-item h3 {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-bold);
  color: var(--text-white);
  position: relative;
  z-index: 1;
  user-select: none;
}

.service-subtitle {
  font-size: var(--font-size-xs);
  color: var(--text-white);
  font-style: italic;
  white-space: nowrap;
  position: relative;
  z-index: 1;
  user-select: none;
}

.service-item:nth-child(4):hover h3,
.service-item:nth-child(4):hover .service-subtitle {
  color: var(--text-gray);
}

.services-cta {
  text-align: center;
}

/* 最新記事セクション */
.latest-articles-section {
  padding: 5rem 0;
  background-color: var(--background-light);
}

.latest-articles-section .btn-primary {
  background-color: var(--primary-color);
  color: var(--white);
  border-color: var(--primary-color);
}

.latest-articles-section .btn-primary:hover {
  background-color: var(--secondary-color);
  color: var(--white);
  border-color: var(--secondary-color);
}

.articles-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}

.article-card {
  background-color: var(--white);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

.article-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--box-shadow-lg);
}

.article-image {
  position: relative;
  overflow: hidden;
  height: 200px;
}

.article-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.article-card:hover .article-image img {
  transform: scale(1.05);
}

.article-content {
  padding: 1.5rem;
}

.article-title {
  margin-bottom: 1rem;
}

.article-title a {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
  color: var(--text-color);
  text-decoration: none;
  line-height: 1.4;
  transition: var(--transition);
}

.article-title a:hover {
  color: var(--primary-color);
}

.article-excerpt {
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--font-size-sm);
  color: var(--text-light);
}

.article-date {
  font-weight: var(--font-weight-medium);
}

.article-category {
  background-color: var(--primary-color);
  color: var(--white);
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-medium);
}

.articles-placeholder {
  text-align: center;
  padding: 3rem 2rem;
  background-color: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

.articles-placeholder p {
  font-size: var(--font-size-lg);
  color: var(--text-light);
  margin-bottom: 0.5rem;
}

.articles-cta {
  text-align: center;
}

/* タブレット対応 */
@media (min-width: 768px) {
  .lawyer-intro {
    grid-template-columns: 1fr 2fr;
  }

  .lawyer-info {
    text-align: left;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .service-item {
    width: 44vw;
    height: 23vh;
    max-width: 360px;
    max-height: 150px;
  }

  .articles-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}

/* デスクトップ対応 */
@media (min-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .service-item {
    width: 30vw;
    height: 21vh;
    max-width: 330px;
    max-height: 138px;
  }

  .articles-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .lawyer-intro-section,
  .services-section,
  .latest-articles-section {
    padding: 6rem 0;
  }
}

/* 大画面対応 */
@media (min-width: 1280px) {
  .services-grid {
    gap: 1.5rem;
  }

  .service-item {
    width: 24vw;
    height: 22vh;
    max-width: 360px;
    max-height: 150px;
  }

  .service-item h3 {
    font-size: var(--font-size-base);
  }
}